Hustle – Pop-Ups, Slide-ins and Email Opt-ins - Version 5.1.3.2

Version Description

  • Improved compatibility with PHP 5.2 and 5.3.
  • Improved the display for MailChimp Groups on frontend.
Download this release

Release Info

Developer diobethray
Plugin Icon 128x128 Hustle – Pop-Ups, Slide-ins and Email Opt-ins
Version 5.1.3.2
Comparing to
See all releases

Code changes from version 5.1.3.1 to 5.1.3.2

assets/js/front.min.js CHANGED
@@ -1,4 +1,4 @@
1
  !function(t){var e="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(i,n,s){e.Backbone=t(e,s,i,n)});else if("undefined"!=typeof exports){var i,n=require("underscore");try{i=require("jquery")}catch(s){}t(e,exports,n,i)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(function(t,e,i,n){var s=t.Backbone,o=Array.prototype.slice;e.VERSION="1.3.3",e.$=n,e.noConflict=function(){return t.Backbone=s,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=function(t,e,n){switch(t){case 1:return function(){return i[e](this[n])};case 2:return function(t){return i[e](this[n],t)};case 3:return function(t,s){return i[e](this[n],l(t,this),s)};case 4:return function(t,s,o){return i[e](this[n],l(t,this),s,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[n]),i[e].apply(i,t)}}},r=function(t,e,n){i.each(e,function(e,s){i[s]&&(t.prototype[s]=a(e,s,n))})},l=function(t,e){return i.isFunction(t)?t:i.isObject(t)&&!e._isModel(t)?c(t):i.isString(t)?function(e){return e.get(t)}:t},c=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}},h=e.Events={},d=/\s+/,_=function(t,e,n,s,o){var a,r=0;if(n&&"object"==typeof n){void 0!==s&&"context"in o&&void 0===o.context&&(o.context=s);for(a=i.keys(n);r<a.length;r++)e=_(t,e,a[r],n[a[r]],o)}else if(n&&d.test(n))for(a=n.split(d);r<a.length;r++)e=t(e,a[r],s,o);else e=t(e,n,s,o);return e};h.on=function(t,e,i){return p(this,t,e,i)};var p=function(t,e,i,n,s){if(t._events=_(u,t._events||{},e,i,{context:n,ctx:t,listening:s}),s){var o=t._listeners||(t._listeners={});o[s.id]=s}return t};h.listenTo=function(t,e,n){if(!t)return this;var s=t._listenId||(t._listenId=i.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),a=o[s];if(!a){var r=this._listenId||(this._listenId=i.uniqueId("l"));a=o[s]={obj:t,objId:s,id:r,listeningTo:o,count:0}}return p(t,e,n,this,a),this};var u=function(t,e,i,n){if(i){var s=t[e]||(t[e]=[]),o=n.context,a=n.ctx,r=n.listening;r&&r.count++,s.push({callback:i,context:o,ctx:o||a,listening:r})}return t};h.off=function(t,e,i){return this._events?(this._events=_(g,this._events,t,e,{context:i,listeners:this._listeners}),this):this},h.stopListening=function(t,e,n){var s=this._listeningTo;if(!s)return this;for(var o=t?[t._listenId]:i.keys(s),a=0;a<o.length;a++){var r=s[o[a]];if(!r)break;r.obj.off(e,n,this)}return this};var g=function(t,e,n,s){if(t){var o,a=0,r=s.context,l=s.listeners;if(e||n||r){for(var c=e?[e]:i.keys(t);a<c.length;a++){e=c[a];var h=t[e];if(!h)break;for(var d=[],_=0;_<h.length;_++){var p=h[_];n&&n!==p.callback&&n!==p.callback._callback||r&&r!==p.context?d.push(p):(o=p.listening,o&&0===--o.count&&(delete l[o.id],delete o.listeningTo[o.objId]))}d.length?t[e]=d:delete t[e]}return t}for(var u=i.keys(l);a<u.length;a++)o=l[u[a]],delete l[o.id],delete o.listeningTo[o.objId]}};h.once=function(t,e,n){var s=_(f,{},t,e,i.bind(this.off,this));return"string"==typeof t&&null==n&&(e=void 0),this.on(s,e,n)},h.listenToOnce=function(t,e,n){var s=_(f,{},e,n,i.bind(this.stopListening,this,t));return this.listenTo(t,s)};var f=function(t,e,n,s){if(n){var o=t[e]=i.once(function(){s(e,o),n.apply(this,arguments)});o._callback=n}return t};h.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];return _(m,this._events,t,void 0,i),this};var m=function(t,e,i,n){if(t){var s=t[e],o=t.all;s&&o&&(o=o.slice()),s&&v(s,n),o&&v(o,[e].concat(n))}return t},v=function(t,e){var i,n=-1,s=t.length,o=e[0],a=e[1],r=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,o);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,o,a);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,o,a,r);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}};h.bind=h.on,h.unbind=h.off,i.extend(e,h);var w=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{});var s=i.result(this,"defaults");n=i.defaults(i.extend({},s,n),s),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(w.prototype,h,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,n){if(null==t)return this;var s;if("object"==typeof t?(s=t,n=e):(s={})[t]=e,n||(n={}),!this._validate(s,n))return!1;var o=n.unset,a=n.silent,r=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=i.clone(this.attributes),this.changed={});var c=this.attributes,h=this.changed,d=this._previousAttributes;for(var _ in s)e=s[_],i.isEqual(c[_],e)||r.push(_),i.isEqual(d[_],e)?delete h[_]:h[_]=e,o?delete c[_]:c[_]=e;if(this.idAttribute in s&&(this.id=this.get(this.idAttribute)),!a){r.length&&(this._pending=n);for(var p=0;p<r.length;p++)this.trigger("change:"+r[p],this,c[r[p]],n)}if(l)return this;if(!a)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,n={};for(var s in t){var o=t[s];i.isEqual(e[s],o)||(n[s]=o)}return!!i.size(n)&&n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:!0},t);var e=this,n=t.success;return t.success=function(i){var s=t.parse?e.parse(i,t):i;return!!e.set(s,t)&&(n&&n.call(t.context,e,i,t),void e.trigger("sync",e,i,t))},F(this,t),this.sync("read",this,t)},save:function(t,e,n){var s;null==t||"object"==typeof t?(s=t,n=e):(s={})[t]=e,n=i.extend({validate:!0,parse:!0},n);var o=n.wait;if(s&&!o){if(!this.set(s,n))return!1}else if(!this._validate(s,n))return!1;var a=this,r=n.success,l=this.attributes;n.success=function(t){a.attributes=l;var e=n.parse?a.parse(t,n):t;return o&&(e=i.extend({},s,e)),!(e&&!a.set(e,n))&&(r&&r.call(n.context,a,t,n),void a.trigger("sync",a,t,n))},F(this,n),s&&o&&(this.attributes=i.extend({},l,s));var c=this.isNew()?"create":n.patch?"patch":"update";"patch"!==c||n.attrs||(n.attrs=s);var h=this.sync(c,this,n);return this.attributes=l,h},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,s=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(i){s&&o(),n&&n.call(t.context,e,i,t),e.isNew()||e.trigger("sync",e,i,t)};var a=!1;return this.isNew()?i.defer(t.success):(F(this,t),a=this.sync("delete",this,t)),s||o(),a},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||M();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1)}});var y={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};r(w,y,"attributes");var k=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,i.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},x={add:!0,remove:!1},C=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var n,s=Array(t.length-i),o=e.length;for(n=0;n<s.length;n++)s[n]=t[n+i];for(n=0;n<o;n++)t[n+i]=e[n];for(n=0;n<s.length;n++)t[n+o+i]=s[n]};i.extend(k.prototype,h,{model:w,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,x))},remove:function(t,e){e=i.extend({},e);var n=!i.isArray(t);t=n?[t]:t.slice();var s=this._removeModels(t,e);return!e.silent&&s.length&&(e.changes={added:[],merged:[],removed:s},this.trigger("update",this,e)),n?s[0]:s},set:function(t,e){if(null!=t){e=i.extend({},b,e),e.parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var n=!i.isArray(t);t=n?[t]:t.slice();var s=e.at;null!=s&&(s=+s),s>this.length&&(s=this.length),s<0&&(s+=this.length+1);var o,a,r=[],l=[],c=[],h=[],d={},_=e.add,p=e.merge,u=e.remove,g=!1,f=this.comparator&&null==s&&e.sort!==!1,m=i.isString(this.comparator)?this.comparator:null;for(a=0;a<t.length;a++){o=t[a];var v=this.get(o);if(v){if(p&&o!==v){var w=this._isModel(o)?o.attributes:o;e.parse&&(w=v.parse(w,e)),v.set(w,e),c.push(v),f&&!g&&(g=v.hasChanged(m))}d[v.cid]||(d[v.cid]=!0,r.push(v)),t[a]=v}else _&&(o=t[a]=this._prepareModel(o,e),o&&(l.push(o),this._addReference(o,e),d[o.cid]=!0,r.push(o)))}if(u){for(a=0;a<this.length;a++)o=this.models[a],d[o.cid]||h.push(o);h.length&&this._removeModels(h,e)}var y=!1,k=!f&&_&&u;if(r.length&&k?(y=this.length!==r.length||i.some(this.models,function(t,e){return t!==r[e]}),this.models.length=0,C(this.models,r,0),this.length=this.models.length):l.length&&(f&&(g=!0),C(this.models,l,null==s?this.length:s),this.length=this.models.length),g&&this.sort({silent:!0}),!e.silent){for(a=0;a<l.length;a++)null!=s&&(e.index=s+a),o=l[a],o.trigger("add",o,this,e);(g||y)&&this.trigger("sort",this,e),(l.length||h.length||c.length)&&(e.changes={added:l,removed:h,merged:c},this.trigger("update",this,e))}return n?t[0]:t}},reset:function(t,e){e=e?i.clone(e):{};for(var n=0;n<this.models.length;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var n=e.length;return i.isFunction(e)&&(e=i.bind(e,this)),1===n||i.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){t=i.extend({parse:!0},t);var e=t.success,n=this;return t.success=function(i){var s=t.reset?"reset":"set";n[s](i,t),e&&e.call(t.context,n,i,t),n.trigger("sync",n,i,t)},F(this,t),this.sync("read",this,t)},create:function(t,e){e=e?i.clone(e):{};var n=e.wait;if(t=this._prepareModel(t,e),!t)return!1;n||this.add(t,e);var s=this,o=e.success;return e.success=function(t,e,i){n&&s.add(t,i),o&&o.call(i.context,t,e,i)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?i.clone(e):{},e.collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=this.get(t[n]);if(s){var o=this.indexOf(s);this.models.splice(o,1),this.length--,delete this._byId[s.cid];var a=this.modelId(s.attributes);null!=a&&delete this._byId[a],e.silent||(e.index=o,s.trigger("remove",s,this,e)),i.push(s),this._removeReference(s,e)}}return i},_isModel:function(t){return t instanceof w},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;if("destroy"===t&&this.remove(e,n),"change"===t){var s=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);s!==o&&(null!=s&&delete this._byId[s],null!=o&&(this._byId[o]=e))}}this.trigger.apply(this,arguments)}});var O={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};r(k,O,"models");var S=e.View=function(t){this.cid=i.uniqueId("view"),i.extend(this,i.pick(t,I)),this._ensureElement(),this.initialize.apply(this,arguments)},E=/^(\S+)\s*(.*)$/,I=["model","collection","el","id","attributes","className","tagName","events"];i.extend(S.prototype,h,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=i.result(this,"events")),!t)return this;this.undelegateEvents();for(var e in t){var n=t[e];if(i.isFunction(n)||(n=this[n]),n){var s=e.match(E);this.delegate(s[1],s[2],i.bind(n,this))}}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"));else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t["class"]=i.result(this,"className")),this.setElement(this._createElement(i.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,n,s){var o=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:o,dataType:"json"};if(s.url||(a.url=i.result(n,"url")||M()),null!=s.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(a.contentType="application/json",a.data=JSON.stringify(s.attrs||n.toJSON(s))),s.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),s.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){a.type="POST",s.emulateJSON&&(a.data._method=o);var r=s.beforeSend;s.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),r)return r.apply(this,arguments)}}"GET"===a.type||s.emulateJSON||(a.processData=!1);var l=s.error;s.error=function(t,e,i){s.textStatus=e,s.errorThrown=i,l&&l.call(s.context,t,e,i)};var c=s.xhr=e.ajax(i.extend(a,s));return n.trigger("request",n,c,s),c};var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var H=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},$=/\((.*?)\)/g,P=/(\(\?)?:\w+/g,j=/\*\w+/g,z=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(H.prototype,h,{initialize:function(){},route:function(t,n,s){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(s=n,n=""),s||(s=this[n]);var o=this;return e.history.route(t,function(i){var a=o._extractParameters(t,i);o.execute(s,a,n)!==!1&&(o.trigger.apply(o,["route:"+n].concat(a)),o.trigger("route",n,a),e.history.trigger("route",o,n,a))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(z,"\\$&").replace($,"(?:$1)?").replace(P,function(t,e){return e?t:"([^/?]+)"}).replace(j,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[],this.checkUrl=i.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},A=/^[#\/]|\s+$/g,R=/^\/+|\/+$/g,U=/#.*$/;N.started=!1,i.extend(N.prototype,h,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(A,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");if(N.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(R,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,s=n.insertBefore(this.iframe,n.firstChild).contentWindow;s.document.open(),s.document.close(),s.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),N.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e!==this.fragment&&(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),i.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!N.started)return!1;e&&e!==!0||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root;""!==t&&"?"!==t.charAt(0)||(i=i.slice(0,-1)||"/");var n=i+t;if(t=this.decodeFragment(t.replace(U,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var s=this.iframe.contentWindow;e.replace||(s.document.open(),s.document.close()),this._updateHash(s.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new N;var L=function(t,e){var n,s=this;return n=t&&i.has(t,"constructor")?t.constructor:function(){return s.apply(this,arguments)},i.extend(n,s,e),n.prototype=i.create(s.prototype,t),n.prototype.constructor=n,n.__super__=s.prototype,n};w.extend=k.extend=H.extend=S.extend=N.extend=L;var M=function(){throw new Error('A "url" property or function must be specified')},F=function(t,e){var i=e.error;e.error=function(n){i&&i.call(e.context,t,n,e),t.trigger("error",t,n,e)}};return e}),function(t){"use strict";window.Hustle=function(t,e,i){var n={},s={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g},o=function(s,o){var a=s.split(".");if(a.length){var r=function(n,s){var a=n.split("."),l=a.splice(0,1)[0];if(l){if(a.length)s[l]=s[l]||{};else{var c=o.call(null,t,e,i);s[l]=_.isFunction(c)||"undefined"==typeof c?c:_.extend(s[l]||{},c)}a.length&&l&&r(a.join("."),s[l])}};r(s,n)}else{var l=n[s]||{};n[s]=_.extend(l,o.call(null,t,e,i))}},a=function(){return n},r=function(t){if(t.split(".").length){var e=!1,i=function(t,n){var s=t.split("."),o=s.splice(0,1)[0];e=n[o],s.length&&i(s.join("."),n[o])};return i(t,n),e}return n[t]||!1},l=_.extend({},Backbone.Events),c=Backbone.View.extend({__base_events:{"click .wph-tabs--wrap .wph-tabs--nav li label":"__base_toggle_tab"},initialize:function(){this.events=_.extend({},this.events,this.__base_events),_.isFunction(this.init_mix)&&this.init_mix.apply(this,arguments),this.render&&(this.render=_.wrap(this.render,function(t){this.trigger("before_render"),t.call(this),l.trigger("view.rendered",this),this.trigger("rendered")})),_.isFunction(this.init)&&this.init.apply(this,arguments)},__base_toggle_tab:function(t){var e=this.$(t.target),i=(e.attr("href")||"").replace(/^\#/,""),n=!!i&&this.$("#"+i),s=e.closest(".wph-tabs--wrap"),o=e.closest("li");n&&n.length&&(s.find(".wph-tabs--content").not(n).removeClass("current"),n.addClass("current"),o.addClass("current"),o.siblings().removeClass("current"))}}),h=_.memoize(function(t){var e;return function(i){return e=e||_.template(document.getElementById(t).innerHTML,null,s),e(i).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}}),d=_.memoize(function(t){var e;return function(i){return(e=e||_.template(t,null,s))(i)}}),p=function(){return t.extend(!0,{},s)},u=function(){var e=function(t){var e,i,n,s=document.cookie.split(";");for(n=t+"=",e=0;e<s.length;e+=1){for(i=s[e];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n)){var o=i.substring(n.length,i.length);return o?JSON.parse(o):o}}return null},i=function(e,i,n){var s,o;i=t.isArray(i)||t.isPlainObject(i)?JSON.stringify(i):i,isNaN(n)?o="":(s=new Date,s.setTime(s.getTime()+24*n*60*60*1e3),o="; expires="+s.toGMTString()),document.cookie=e+"="+i+o+"; path=/"};return{set:i,get:e}}(),g=function(){return{Never_See_Aagain_Prefix:"hustle_never_see_again-",Module_Show_Count:"hustle_module_show_count-",Slide_Cookie_Prefix:"hustle_slide_in_prefix-",Slide_Cookie_Hide_All:"hustle_slide_in_hide_all-",SS_Module_Show_Count:"hustle_ss_module_show_count-"}}();return{define:o,get_modules:a,get:r,Events:l,View:c,template:h,create_template:d,get_template_options:p,cookie:u,consts:g}}(jQuery,document,window)}(jQuery);var Optin=Optin||{};Optin.View={},Optin.Models={},Optin.Events={},"undefined"!=typeof Backbone&&_.extend(Optin.Events,Backbone.Events),function(t){"use strict";Optin.COOKIE_PREFIX="inc_optin_long_hidden-",Optin.POPUP_COOKIE_PREFIX="inc_optin_popup_long_hidden-",Optin.SLIDE_IN_COOKIE_PREFIX="inc_optin_slide_in_long_hidden-",Optin.SLIDE_IN_COOKIE_HIDE_ALL="inc_optin_slide_in_hide_all",Optin.global_mixin=function(){_.mixin({log:function(){console.log(arguments)},toBool:function(t){return _.isBoolean(t)?t:_.isString(t)&&["true","false","1"].indexOf(t.toLowerCase())!==-1?"true"===t.toLowerCase()||"1"===t.toLowerCase():_.isNumber(t)?!!t:!(_.isUndefined(t)||_.isNull(t)||_.isNaN(t))&&t},isTrue:function(t){return!(_.isUndefined(t)||_.isNull(t)||_.isNaN(t))&&(_.isNumber(t)?0!==t:(t=t.toString().toLowerCase(),["1","true","on"].indexOf(t)!==-1))},isFalse:function(t){return!_.isTrue(t)},control_base:function(t,e,i){return i=_.isUndefined(i)?"checked":i,t=_.toBool(t),e=_.isBoolean(t)?_.isTrue(e):e,_.isEqual(t,e)?i+"="+i:""},checked:function(t,e){return _.control_base(t,e,"checked")},selected:function(t,e){return _.control_base(t,e,"selected")},disabled:function(t,e){return _.control_base(t,e,"disabled")},"class":function(t,e,i){return _.isTrue(t)?e:"undefined"!=typeof i?i:""},add_class:function(t,e,i){return"class={class}".replace("{class}",_["class"](t,e,i))},toUpperCase:function(t){return _.isString(t)?t.toUpperCase():""}}),_.findKey||_.mixin({findKey:function(t,e,i){e=cb(e,i);for(var n,s=_.keys(t),o=0,a=s.length;o<a;o++)if(n=s[o],e(t[n],n,t))return n}})},Optin.global_mixin(),Backbone.Model.prototype.toJSON=function(){var t=_.clone(this.attributes);for(var e in t)(t[e]instanceof Backbone.Model||Backbone.Collection&&t[e]instanceof Backbone.Collection)&&(t[e]=t[e].toJSON());return t},String.prototype.toInt=function(){return parseInt(this,10)},String.prototype.isEmpty=function(){return 0===this.length||!this.trim()},Optin.template=_.memoize(function(e){var i,n={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g};return function(s){return i=i||_.template(t("#"+e).html(),null,n),i(s).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}}),Optin.template_compat=_.memoize(function(e){var i;return function(n){return i=i||_.template(t("#"+e).html()),i(n).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}}),Optin.cookie=Hustle.cookie,t(document).on("blur","input, textarea, select",function(){var e=t(this);e.is(":input[type=button], :input[type=submit], :input[type=reset]")||(e.val()&&e.val().trim&&""!==e.val().trim()?e.parent().addClass("wpoi-filled"):e.parent().removeClass("wpoi-filled"))}),Optin.Mixins={_mixins:{},_services_mixins:{},_desing_mixins:{},_display_mixins:{},add:function(t,e){this._mixins[t]=e},get_mixins:function(){return this._mixins},add_services_mixin:function(t,e){this._services_mixins[t]=e},get_services_mixins:function(){return this._services_mixins}}}(jQuery),Hustle.define("Modal",function(t){"use strict";return Backbone.View.extend({template:Optin.template("hustle-modal-tpl"),$mask:t('<div class="wph-modal--mask"></div>'),opts:{},data:{id:"",type:"popup",style:"",title:"",subtitle:"",content:"Content",animation_in:"",animation_out:"",position:""},events:{"click .wph-modal--close a":"hide","submit form":"fire_conversion_event","click .wph-modal--cta":"fire_conversion_event","click .wph-modal-never-see-again":"never_see_again"},initialize:function(t){return this.opts=_.extend({},this.opts,t),t.template&&(this.template=t.template),this.render(),this},render:function(){var t=_.extend({},this.data,this.model.toJSON());if(this.type_data=t.types[t.type],this.animation_in=t.animation_in=t.types[t.type].animation_in||t.animation_in,this.animation_out=t.animation_out=t.types[t.type].animation_out||t.animation_out,t.position=t.types[t.type].position||t.position,t=this.sanitize_cta_url(t),t=this.enable_fullscreen(t),t=this.handle_custom_size_cc(t),this.setElement(this.template(t)),this.$mask=this.$mask.clone(),this.$mask.on("click",_.bind(this.clicked_background,this)),this.$el.find("form").on("submit",_.bind(this.on_form_submit,this)),this.enable_body_scroll(t),window.hasOwnProperty("optin_vars")){var e=this.$el.find("a.wph-icon.i-close");e.length&&e.parent().hide()}return this},hide:function(e){var i=this;e&&e.preventDefault(),i.animation_in!==i.animation_out&&i.$el.removeClass(i.animation_in),_.delay(function(){i.animation_out&&!i.$el.hasClass(i.animation_out)&&i.$el.addClass(i.animation_out),_.delay(function(){i.$el.removeClass("wph-modal-show"),i.$el.prev(".wph-modal--mask").remove(),Hustle.Events.trigger("hide_modal",i),i.trigger("hidden"),_.isTrue(i.type_data.close_btn_as_never_see)&&e&&t(e.target).hasClass("wph-icon i-close")&&i.never_see_again(e)},550)},350),t("html").removeClass("no-scroll")},clicked_background:function(t){_.isTrue(this.type_data.not_close_on_background_click)||this.hide(t)},show:function(){var t=this;if(!window.hasOwnProperty("optin_vars")){var e=Hustle.consts.Module_Show_Count+this.model.get("type")+"-"+this.model.get("id"),i=Hustle.cookie.get(e);Hustle.cookie.set(e,i+1,90)}t.animation_in!==t.animation_out&&t.$el.removeClass(t.animation_out),_.delay(function(){t.$el.addClass("wph-modal-show"),t.trigger("shown",t,t.model.get("type")),Hustle.Events.trigger("show_modal",t,t.model.get("type")),_.delay(function(){t.animation_in&&!t.$el.hasClass(t.animation_in)&&t.$el.addClass(t.animation_in)},350)},550)},sanitize_cta_url:function(t){return t.cta_url&&(/^(f|ht)tps?:\/\//i.test(t.cta_url)||(t.cta_url="http://"+t.cta_url)),t},enable_fullscreen:function(t){if(t.fullscreen="",!t||"undefined"==typeof t.optin_provider||"undefined"==typeof t.type)return t;if("custom_content"==t.optin_provider&&"popup"==t.type){if("undefined"==typeof this.type_data.make_fullscreen)return t;_.isTrue(this.type_data.make_fullscreen)&&(t.fullscreen="wph-modal-popup-fullscreen")}return t},handle_custom_size_cc:function(t){return t.custom_size_attr="",t.custom_size_class="",t&&"undefined"!=typeof t.optin_provider?("custom_content"==t.optin_provider&&(_.isTrue(t.customize_size)&&(t.custom_size_class="wph-modal--custom",t.custom_size_attr+="data-custom_width="+t.custom_width+" data-custom_height="+t.custom_height),_.isTrue(t.border)&&(t.custom_size_attr+=" data-border="+t.border_weight)),t):t},enable_body_scroll:function(e){if(e&&"undefined"!=typeof e.optin_provider&&"undefined"!=typeof e.type&&"custom_content"==e.optin_provider&&"popup"==e.type){if("undefined"==typeof this.type_data.allow_scroll_page)return;_.isTrue(this.type_data.allow_scroll_page)?t("html").addClass("can-scroll"):t("html").addClass("no-scroll")}},fire_conversion_event:function(e){var i=t(e.target).hasClass("wph-modal--cta")?"cta":"form";Hustle.Events.trigger("cc_modal_converted",this,i),
2
- this.trigger("converted",this,i)},never_see_again:function(e){e&&e.preventDefault(),window.hasOwnProperty("optin_vars")||Hustle.cookie.set(Hustle.consts.Never_See_Aagain_Prefix+this.model.get("type")+"-"+this.model.get("id"),this.model.get("id"),this.type_data.expiration_days),e&&!t(e.target).hasClass("wph-icon i-close")&&this.hide()},on_form_submit:function(e){var i=this,n=t(e.target),s=this.type_data.on_submit;switch(s){case"close":i.hide();break;case"redirect":window.location.replace(n.attr("action"));break;case"default":}}})}),function(t,e,i){var n=function(t,e,i){if("immediately"===e.trigger_on_time&&i.display(),"time"===e.trigger_on_time){var n;switch(e.appear_after_time_unit){case"minutes":n=60*parseInt(e.appear_after_time_val,10)*1e3;break;case"hours":n=60*parseInt(e.appear_after_time_val,10)*60*1e3;break;default:n=1e3*parseInt(e.appear_after_time_val,10)}_.delay(function(){i.display()},n)}},s=function(n,s,o){var a=!1;if("scrolled"===s.appear_after&&t(i).scroll(_.debounce(function(){a||100*i.pageYOffset/t(e).height()>=parseInt(s.appear_after_page_portion_val,10)&&(o.display(),a=!0)},50)),"selector"===s.appear_after){var r=t(s.appear_after_element_val);r.length&&t(i).scroll(_.debounce(function(){a||i.pageYOffset>=r.position().top&&(o.display(),a=!0)},50))}},o=function(i,n,s){if(""!==t.trim(n.trigger_on_element_click)){var o=t(t.trim(n.trigger_on_element_click));o.length&&t(e).on("click",t.trim(n.trigger_on_element_click),s.display)}t(e).on("click",".inc_opt_hustle_shortcode_trigger",function(e){e.preventDefault(),t(this).data("id")==i.data.optin_id&&s.display()})},a=function(i,n,s){_.isTrue(n.trigger_on_exit)&&(Optin.listen_to_exit_intend(),_.isTrue(n.on_exit_trigger_once_per_session)?t(e).one("wpoi:exit_intended",s.display):t(e).on("wpoi:exit_intended",s.display))},r=function(t,e,i){if(_.isTrue(e.trigger_on_adblock)){if(!Optin.is_adblock_enabled())return;if(_.isTrue(e.trigger_on_adblock_timed)){var n;switch(e.trigger_on_adblock_timed_unit){case"minutes":n=60*parseInt(e.trigger_on_adblock_timed_val,10)*1e3;break;case"hours":n=60*parseInt(e.trigger_on_adblock_timed_val,10)*60*1e3;break;default:n=1e3*parseInt(e.trigger_on_adblock_timed_val,10)}_.delay(function(){i.display()},n)}else i.display()}};Optin.Triggers={time:n,scroll:s,scrolled:s,click:o,exit_intent:a,adblock:r}}(jQuery,document,window),function(t){t(document).on("wpoi:display",function(e,i,n,s){var o="wpoi-optin-{type}-shown-count-".replace("{type}",i)+s.data.optin_id,a=Optin.cookie.get(o)||0;i&&s.settings[i].is_test;Optin.cookie.set(o,a+1,30),null!=s.data.tracking_types&&_.isTrue(s.data.tracking_types[i])&&t.ajax({type:"POST",url:inc_opt.ajaxurl,dataType:"json",data:{action:"inc_opt_optin_viewed",data:{optin_id:s.data.optin_id,page_type:inc_opt.page_type,page_id:inc_opt.page_id,type:i,uri:encodeURI(window.location.href)}},success:function(t){}})}),t(document).on("wpoi:cc_shortcode_or_widget_viewed",function(t,e,i){"undefined"!=typeof Optin.CC_log_view&&(Optin.CC_log_view.set("type",e),Optin.CC_log_view.set("id",i),Optin.CC_log_view.save())})}(jQuery),function(t){Optin=Optin||{},Optin.handle_scroll=function(e,i,n){var s=t(window),o=t(document);s.on("scroll",_.debounce(function(t){var a=e[0],r=a.getBoundingClientRect();r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)&&(s.off(t),e.addClass("wpoi-show"),o.trigger("wpoi:display",[i,e,n]))},5,!0))},Optin.handle_cc_scroll=function(e,i,n){var s=t(window),o=t(document);s.on("scroll",_.debounce(function(t){var a=e[0],r=a.getBoundingClientRect();if(r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)){s.off(t);var l=_.find(Hustle_Custom_Contents,function(t){return n==t.content.optin_id});if(!l)return;null!=l.tracking_types&&_.isTrue(l.tracking_types[i])&&o.trigger("wpoi:cc_shortcode_or_widget_viewed",[i,n])}},5,!0))}}(jQuery),function(t){function e(e,i){var n=e.find(".required"),s=(t('<i class="wphi-font wphi-error"></i>'),[]);return t(".wpoi-field-error").remove(),n.each(function(){var e=t(this),n=e.attr("name")+"_error";return i?(e.next("label").find("i.wphi-font").addClass("wphi-error"),s.push(e),s):void(_.isEmpty(this.value)||e.is("[type='email']")&&!this.value.trim().match(/^[\S]+\@[a-zA-Z0-9\-]+\.[\S]{2,}$/gi)?(e.next("label").find("i.wphi-font").addClass("wphi-error"),s.push(e)):t("."+n).remove())}),0===s.length}t(document).on("submit",".inc_optin form",function(i){i.preventDefault();var n=t(i.target),s=n.find("button"),o=n.closest(".inc_optin"),a=o.data("handle"),r=o.data("delay_id"),l=Optins[a],c=this,h=(t(this).closest(".wpoi-optin > .wpoi-container"),n.closest(".inc_optin").data("type")),d=h&&l.settings[h].is_test,p=t("<span class='wpoi-submit-failure'>"+inc_opt.l10n.submit_failure+"</span>");n.parent().find(".wpoi-submit-failure").remove(),_.isUndefined(r)||clearTimeout(r),!n.data("sending")&&e(n,d)&&(s.attr("disabled",!0),s.addClass("loading"),n.addClass("loading"),n.data("sending",!0),t.ajax({type:"POST",url:inc_opt.ajaxurl,dataType:"json",data:{action:"inc_opt_submit_opt_in",data:{form:n.serialize(),optin_id:l.data.optin_id,page_type:inc_opt.page_type,page_id:inc_opt.page_id,uri:encodeURI(window.location.href),type:h}},success:function(e){if(e&&e.success){var i=n.closest(".wpoi-hustle");if(l.design.hasOwnProperty("on_submit")&&"page_redirect"===l.design.on_submit)window.location.replace(l.design.page_redirect_url);else if("mailchimp"===l.data.optin_provider&&"undefined"!=typeof e.data.existing&&i.find(".wpoi-success-message .wpoi-content p").html(e.data.message),i.find(".wpoi-success-message").addClass("wpoi-show-message"),l.design.hasOwnProperty("on_success")&&"autoclose"===l.design.on_success){var s=parseInt(l.design.on_success_time),o=l.design.on_success_unit;"m"===o&&(s*=60),s*=1e3,_.delay(function(){var e=t(c).closest(".inc_optin").find(".inc-opt-close-popup");e.length>0?e.trigger("click"):i.find(".wpoi-success-message").removeClass("wpoi-show-message")},s)}}else{var a="";a=e.data?t.isArray(e.data)?e.data.pop():e.data:inc_opt.l10n.submit_failure,p.html(a?a:inc_opt.l10n.submit_failure),n.after(p)}},error:function(){n.after(p)},complete:function(){s.attr("disabled",!1),n.removeClass("loading"),s.removeClass("loading"),n.data("sending",!1)}}))});var i=function(){var e=t(this),i=e.parents(".wpoi-hustle"),n=(t("form",i),t(".wpoi-success-message",i));n.removeClass("wpoi-show-message")};t(document).on("click",".wpoi-success-close",i)}(jQuery);var Optin=Optin||{};!function(t,e){"use strict";function i(){var e=a.height(),i=a.scrollTop(),n=i+e;t.each(o,function(){var e=t(this),s=e.outerHeight(),o=e.offset().top,a=o+s;a>=i&&o<=n?e.addClass("in-view"):e.removeClass("in-view")})}function n(e,i,n,s){"wpoi:display"!==e.type&&"wpoi:cc_display"!==e.type||"popup"!==i?(t(".wpoi-hustle").each(function(){var e=t("popup"===i?window:this),n=t(this);e.width()<=405?n.find(".wpoi-optin").addClass("wpoi-small"):n.find(".wpoi-optin").removeClass("wpoi-small"),e.width()<=585&&e.width()>405?n.find(".wpoi-optin").addClass("wpoi-medium"):n.find(".wpoi-optin").removeClass("wpoi-medium")}),t(".wph-modal").each(function(){var e=t(this).parent(),i=t(this);"widget"!==e.data("type")&&"shortcode"!==e.data("type")||(e.width()<=405?i.addClass("wph-modal--small"):i.removeClass("wph-modal--small"))})):!function(){var e=t("popup"===i?window:this),s=n.find(".wpoi-hustle");e.width()<=405?s.find(".wpoi-optin").addClass("wpoi-small"):s.find(".wpoi-optin").removeClass("wpoi-small"),e.width()<=585&&e.width()>405?s.find(".wpoi-optin").addClass("wpoi-medium"):s.find(".wpoi-optin").removeClass("wpoi-medium")}(),t(".wpoi-mcg-select").each(function(){t(this).parent(".wpoi-provider-args > .wpoi-container > .wpoi-element:nth-child(2) > .wpoi-container > .wpoi-element").css({padding:"0",background:"transparent"})}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small) .nocontent:not(.noimage)").each(function(){var e=t(this),i=e.find(".wpoi-aside-x").prev(".wpoi-element"),n=e.find(".wpoi-aside-x").prev(".wpoi-element").find(".wpoi-container.wpoi-col");n.css("height",i.height())}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-x"),n=e.find(".wpoi-image").next(".wpoi-element"),s=i.prev(".wpoi-element"),o=e.find(".wpoi-content"),a=s.find(".wpoi-col"),r=e.find("form");r.height()>o.height()&&(a.css("height",i.height()+"px"),n.addClass("wpoi-align"),o.addClass("wpoi-align-element")),r.height()<o.height()&&(i.css("height",s.height()+"px"),i.addClass("wpoi-align"),r.addClass("wpoi-align-element"))}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-x"),n=i.prev(".wpoi-element"),s=e.find("form");s.height()<n.height()&&(i.css("height",n.height()),i.addClass("wpoi-align"),s.addClass("wpoi-align-element"))}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small)").each(function(){var e=t(this),i=e.find("form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)");i.addClass("wpoi-grouped-element");for(var n=0;n<i.length;n+=2)i.slice(n,n+2).wrapAll('<div class="wpoi-element wpoi-grouped-element" style="background-color: transparent;"><div class="wpoi-container"></div></div>')}),t(".wpoi-layout-four .wpoi-optin:not(.wpoi-small)").each(function(){var e=t(this),i=e.find("form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)");i.addClass("wpoi-grouped-element");for(var n=0;n<i.length;n+=2)i.slice(n,n+2).wrapAll('<div class="wpoi-element wpoi-grouped-element" style="background-color: transparent;"><div class="wpoi-container"></div></div>')}),t(".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-xl"),n=e.find(".wpoi-aside-xl > .wpoi-container"),s=i.find(".wpoi-form"),o=i.find("form"),a=i.next(".wpoi-element"),r=a.find(".wpoi-content");r.height()>o.height()&&(n.css("height",i.height()+"px"),s.addClass("wpoi-align"),o.addClass("wpoi-align-element")),r.height()<o.height()&&(a.css("height",n.height()+"px"),a.addClass("wpoi-align"),r.addClass("wpoi-align-element"))}),t(".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-xl"),n=e.find(".wpoi-aside-xl > .wpoi-container"),s=e.find(".wpoi-image"),o=i.find(".wpoi-form"),a=i.find("form"),r=i.next(".wpoi-element"),l=e.find(".wpoi-content");l.height()>n.height()&&(n.css("height",i.height()+"px"),o.css("height",n.height()-s.height()),o.addClass("wpoi-align"),a.addClass("wpoi-align-element")),l.height()<n.height()&&(r.css("height",i.height()+"px"),r.addClass("wpoi-align"),l.addClass("wpoi-align-element"))}),t(".wph-modal").each(function(){var e=t(this),i=e.find(".wph-modal--content"),n=e.find(".wph-modal--content > section"),s=i.find("section > figure"),o=e.find(".wph-modal--content > figure"),a=s.find("img"),r=o.find("img"),l=e.hasClass("wph-modal--cabriolet")&&(s.hasClass("wph-modal--image_full")||s.hasClass("wph-modal--image")&&a.height()<s.height()),c=e.hasClass("wph-modal--simple")&&(o.hasClass("wph-modal--image_full")||o.hasClass("wph-modal--image")&&r.height()<o.height()),h=e.hasClass("wph-modal--minimal")&&(s.hasClass("wph-modal--image_full")||s.hasClass("wph-modal--image")&&a.height()<s.height());(l||h)&&a.css({height:n.height()+"px",width:n.width()+"px"}),c&&r.css({height:i.height()+"px",width:i.width()+"px"});var d=e.find(".wph-modal--content header"),_=e.find(".wph-modal--content footer"),p=e.find(".wph-modal--content"),u=e.find(".wph-modal--content .wph-modal--message"),g=e.find(".wph-modal--content section"),f=e.find(".wph-modal--content .wph-modal--image"),m=e.find(".wph-modal--content .wph-modal--image img"),v=parseInt(e.data("custom_width")),w=parseInt(e.data("custom_height")),y=2*parseInt(e.data("border"));y=isNaN(y)?0:y,v&&w&&(e.css("width",v+"px"),e.css("max-width","none"),e.hasClass("wph-modal--cabriolet")&&(u.outerHeight(w-d.outerHeight(!0)-y),f.outerHeight(u.outerHeight(!0)),m.outerHeight(u.outerHeight(!0))),e.hasClass("wph-modal--simple")&&(p.outerHeight(w),f.outerHeight(p.height()),m.outerHeight(p.height())),e.hasClass("wph-modal--minimal")&&(g.outerHeight(w-(d.outerHeight(!0)+_.outerHeight(!0))-y),f.outerHeight(g.outerHeight(!0)),m.outerHeight(g.outerHeight(!0))))}),t(".wph-cc-shortcode").each(function(){var e=t(this),i=e.find(".wph-cc-shortcode--content"),n=e.find(".wph-cc-shortcode--content > section"),s=i.find("section > figure"),o=e.find(".wph-cc-shortcode--content > figure"),a=s.find("img"),r=o.find("img"),l=e.hasClass("wph-cc-shortcode--cabriolet")&&(s.hasClass("wph-cc-shortcode--image_full")||s.hasClass("wph-cc-shortcode--image")&&a.height()<s.height()),c=e.hasClass("wph-cc-shortcode--simple")&&(o.hasClass("wph-cc-shortcode--image_full")||o.hasClass("wph-cc-shortcode--image")&&r.height()<o.height()),h=e.hasClass("wph-cc-shortcode--minimal")&&(s.hasClass("wph-cc-shortcode--image_full")||s.hasClass("wph-cc-shortcode--image")&&a.height()<s.height());(l||h)&&a.css({height:n.height()+"px",width:n.width()+"px"}),c&&r.css({height:i.height()+"px",width:i.width()+"px"})})}function s(t){var e={};return e.custom_size_attr="",e.custom_size_class="",t.customize_size&&_.isTrue(t.customize_size)&&(e.custom_size_class="wph-modal--custom",e.custom_size_attr+="data-custom_width="+t.custom_width+" data-custom_height="+t.custom_height),t.border&&_.isTrue(t.border)&&(e.custom_size_attr+=" data-border="+t.border_weight),e}t.each(["show","hide"],function(e,i){var n=t.fn[i];t.fn[i]=function(){return this.trigger(i),n.apply(this,arguments)}}),Optin.popup_overlay_delay=750,Optin.get_tpl=function(t,e){var i=["optin-layout-one","optin-layout-two","optin-layout-three","optin-layout-four"];return e?Optin.template_compat(i[t]):Optin.template(i[t])},Optin.popup={shown:[],hidden:[],long_hidden:[],is_already_shown:function(t){return-1!==this.shown.indexOf(t)},is_long_hidden:function(t){return!!Optin.cookie.get(Optin.POPUP_COOKIE_PREFIX+t.id)},show:function(t){return!this.is_long_hidden(t)&&(this.is_already_shown(t.id)?void 0:t.show())}};var o=t(".inc_opt_inline_wrap"),a=t(window);t(e).on("wpoi:display",_.debounce(n,100,!1)),t(e).on("wpoi:cc_display",_.debounce(n,100,!1)),t(window).on("resize",_.debounce(n,100,!1)),a.on("scroll resize",_.debounce(i,100,!1)),a.trigger("scroll"),t(document).on("blur","input, textarea, select",function(){var e=t(this);e.is(":input[type=button], :input[type=submit], :input[type=reset]")||(""!==e.val().trim()?e.parent().addClass("wpoi-filled"):e.parent().removeClass("wpoi-filled"))}),t(document).on("focus",".wpoi-optin input.required",function(){t(this).next("label").find("i.wphi-font").removeClass("i-error")}),Optin.render_provider_args=function(e){if(_.isEmpty(e.provider_args)||_.isEmpty(e.data.optin_provider))return"";var i=Optin.template("optin-"+e.data.optin_provider+"-args");return e.provider_args.cta_button=e.design.cta_button,t("#optin-"+e.data.optin_provider+"-args").length?i(e.provider_args):""},Optin.render_optin=function(i,n){var s=!("undefined"==typeof n||!n),o=_.templateSettings;s&&(Optin.global_mixin(),_.templateSettings={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});var a=parseInt(i.design.form_location),r=Optin.get_tpl(a,s),l=function(){return!("mailchimp"!==i.data.optin_provider||!i.provider_args)},c=_.extend({image_style:"",has_args:l()},i.design,i.design.borders,i.data),h=r(c);return s&&(_.templateSettings=o),t(e).trigger("wpoi:layout:rendered"),h},Optin.render_cc_shortcode=function(i,n){var o=!("undefined"==typeof n||!n),a=[],r=_.templateSettings;a[i.type]={add_never_see_link:""},o&&(Optin.global_mixin(),_.templateSettings={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});var l=o?Optin.template_compat("hustle-modal-tpl"):Optin.template("hustle-modal-tpl"),c=l(_.extend({type:i.type,id:i.content.optin_id,position:"",animation_in:"",fullscreen:"",types:a},i.content,i.design,s(i.design)));return o&&(_.templateSettings=r),t(e).trigger("wpoi:layout:rendered"),t(e).trigger("wpoi:cc_display",i.type),c};var r=!1;Optin.listen_to_exit_intend=function(){r||(t(e).on("mouseleave",_.debounce(function(i){t(e).trigger("wpoi:exit_intended",i)},100,!0)),r=!0)};var l=!1;Optin.is_adblock_enabled=function(){if(!l)return!t("#hustle_optin_adBlock_detector").length}}(jQuery,document),function(t,e,i){"use strict";inc_opt.is_upfront||(Optin.View=Backbone.View.extend({isCC:!1,display_id:"display",showClass:"wpoi-show",maskShowClass:"inc_optin_",optin_id:"",type:"",settings:{},data:{},add_never_see_again:!1,appear_after:"time",mask:!1,should_remove:!1,parent:"body",anim_in_time:Optin.popup_overlay_delay,anim_out_time:2e3,viewed:!1,events:{click:"click","click .inc-opt-close-btn":"closed","click .inc_opt_never_see_again":"closed"},click:_.noop,initialize:function(t){this.key=t.key,this.opt=Optins[this.key],this.settings=this.opt.settings[this.type],this.data=this.opt.data,this.optin_id=this.data.optin_id,this.maskClass="inc_optin_"+this.optin_id+" "+this.maskClass,this.add_never_see_again=_.isTrue(this.settings.add_never_see_this_message),this.appear_after=this.settings.appear_after,this.cookie_key=("popup"===this.type?Optin.POPUP_COOKIE_PREFIX:Optin.SLIDE_IN_COOKIE_PREFIX)+this.optin_id,this.expiration_days=parseInt(this.settings.never_see_expiry,10),this.triggers={on_time:this.settings.trigger_on_time,on_time_delay:this.settings.appear_after_time_val,on_time_unit:this.settings.appear_after_time_unit,on_scroll:this.settings.appear_after_scroll,on_scroll_page_percent:parseInt(this.settings.appear_after_page_portion_val),on_scroll_css_selector:this.settings.appear_after_element_val,on_click_element:this.settings.trigger_on_element_click,on_exit_intent:this.settings.trigger_on_exit,on_exit_intent_per_session:this.settings.on_exit_trigger_once_per_session,on_adblock:this.settings.trigger_on_adblock,on_adblock_delayed:this.settings.trigger_on_adblock_timed,on_adblock_delayed_time:this.settings.trigger_on_adblock_timed_val,on_adblock_delayed_unit:this.settings.trigger_on_adblock_timed_unit},this.should_display()&&((_.contains(["time","scrolled","adblock"],this.appear_after)||"exit_intent"===this.appear_after&&_.isTrue(this.settings.on_exit_trigger_once_per_session))&&(this.should_remove=!0),this.render())},should_display:function(){return _.isTrue(this.settings.display)&&!_.isTrue(Optin.cookie.get(this.cookie_key))},never_see_again:function(){Optin.cookie.set(this.cookie_key,this.optin_id,this.expiration_days)},fit:function(){var e=t(i).height(),n=e/100*65,s=this.$("header").outerHeight(),o=this.$(".wph-modal--message, .wph-modal--image"),a=n-s;if(this.$el.css("max-height",n),o.css("max-height",a),"popup"===this.type&&"cabriolet"!==this.settings.style){var r=(e-n)/2;r-=1.5*r,this.$el.css("margin-top",r+"px")}},render:function(){var e='<a href="#" aria-label="Close" class="inc-opt-close-btn inc-opt-close-'+this.type+'">&times;</a>';e+=Optin.render_optin(this.opt);var i={handle:this.key,type:this.type,popup:this.opt};this.add_never_see_again&&(e+='<div class="wpoi-nsa"><a class="inc_opt_never_see_again">%s</a></div>'.replace("%s",inc_opt.l10n.never_see_again)),this.settings.animation_in&&this.$el.addClass(this.settings.animation_in),this.$el.addClass(" inc_optin_"+this.optin_id),this.$el.html(e);var n=this.$(".wpoi-provider-args");return n.length&&n.html(Optin.render_provider_args(this.opt)),this.$el.appendTo(this.parent),this.$el.display=t.proxy(this,"display"),this.$el.on("show",t.proxy(this,"onShow")),this.$el.on("hide",t.proxy(this,"onHide")),this.$el.data(i),this.html=this.$el.html(),this[this.appear_after+"_trigger"](),this},display:function(){this.viewed=!0,this.$el.is("."+this.showClass)||(this.$el.html(this.html),this.$el.removeClass(this.settings.animation_out),this.add_mask(),this.animation_in(),this.$el.trigger("show",this))},add_mask:function(){var e=_.isFalse(this.settings.allow_scroll_page),i=_.isFalse(this.settings.not_close_on_background_click);_.delay(t.proxy(function(){e&&t("html").addClass("no-scroll"),this.mask?this.mask.addClass("wpoi-show"):(this.mask=t('<div class="'+this.maskClass+' wpoi-overlay-mask wpoi-animate fadein"><div class="wpoi-'+this.type+'-overlay"></div></div>'),this.mask.insertBefore(this.$el).addClass("wpoi-show"),i&&this.mask.on("click",t.proxy(this,"closed")))},this),Optin.popup_overlay_delay)},animation_in:function(){var t=this,e=_.isFalse(t.viewed);this.settings.animation_in&&this.$el.addClass(this.settings.animation_in),_.delay(function(){e||(t.$el.addClass(t.showClass),t.settings.animation_out?t.settings.animation_in?_.delay(function(){t.$el.removeClass(t.settings.animation_in),t.$el.addClass(t.settings.animation_out)},350):t.$el.addClass(t.settings.animation_out):t.settings.animation_in&&_.delay(function(){t.$el.removeClass(t.settings.animation_in)},350))},Optin.popup_overlay_delay)},time_trigger:function(){if("immediately"==this.triggers.on_time)this.display();else{var e=1e3*parseInt(this.triggers.on_time_delay,10);"minutes"===this.triggers.on_time_unit?e*=60:"hours"===this.triggers.on_time_unit&&(e*=3600),_.delay(t.proxy(this,"display"),e)}},click_trigger:function(){var i=this,n="";if(""!==(n=t.trim(this.triggers.on_click_element))){var s=t(n);s.length&&t(e).on("click",n,function(t){t.preventDefault(),i.display()})}t(e).on("click",".inc_opt_hustle_shortcode_trigger",function(e){e.preventDefault(),t(this).data("id")==i.data.optin_id&&t(this).data("type")==i.type&&i.display()})},scroll_trigger:function(){var n=this,s=!1;if("scrolled"===this.triggers.on_scroll&&t(i).scroll(_.debounce(function(){s||100*i.pageYOffset/t(e).height()>=parseFloat(n.triggers.on_scroll_page_percent)&&(n.display(),s=!0)},50)),"selector"===this.triggers.on_scroll){var o=t(this.triggers.on_scroll_css_selector);o.length&&t(i).scroll(_.debounce(function(){s||i.pageYOffset>=o.position().top&&(n.display(),s=!0)},50))}},scrolled_trigger:function(){return this.scroll_trigger()},exit_intent_trigger:function(){_.isTrue(this.triggers.on_exit_intent)&&(_.isTrue(this.triggers.on_exit_intent_per_session)?Hustle.Events.once("exit_intended",t.proxy(this,"display")):Hustle.Events.on("exit_intended",t.proxy(this,"display")))},adblock_trigger:function(){var e=!t("#hustle_optin_adBlock_detector").length;if(e&&_.isTrue(this.triggers.on_adblock))if(_.isFalse(this.triggers.on_adblock_delayed))this.display();else{var i=1e3*parseInt(this.triggers.on_adblock_delayed_time,10);"minutes"===this.triggers.on_adblock_delayed_unit?i*=60:"hours"===this.triggers.on_adblock_delayed_unit&&(i*=3600),_.delay(t.proxy(this,"display"),i)}},closed:function(i){var n=this,s=t(i.currentTarget),o=this.isCC?_.isTrue(this.settings.close_btn_as_never_see):_.isTrue(this.settings.close_button_acts_as_never_see_again);return this.viewed=!1,this.$el.removeClass("wpoi-show"),(s.is(".wph-modal--close .wph-icon, .inc-opt-close-"+this.type)&&o||s.is(".inc_opt_never_see_again,.wph-modal-never-see-again"))&&this.never_see_again(),_.delay(function(){n.viewed||(n.$el.removeClass(n.showClass),"undefined"!=typeof n.mask&&n.mask&&n.mask.removeClass("wpoi-show"))},Optin.popup_overlay_delay),this.settings.animation_in&&(this.settings.animation_out?_.delay(function(){n.viewed||(n.$el.removeClass(n.settings.animation_out),n.$el.addClass(n.settings.animation_in))},1e3):this.$el.addClass(this.settings.animation_in)),this.settings.animation_out||(this.$el.hide(),_.defer(function(){(n.$el[0].style||{}).display=""})),_.isTrue(this.settings.close_button_acts_as_never_see_again)&&_.isTrue(this.settings.trigger_on_exit)&&t(e).off("wpoi:exit_intended"),this.settings.animation_out?_.delay(function(){n.viewed||n.clean()},1100):n.clean(),_.isFalse(this.settings.allow_scroll_page)&&t("html").removeClass("no-scroll"),this.$el.trigger("hide",this),!1},clean:function(){this.$el.html(""),this.should_remove&&(this.$el.remove(),"undefined"!=typeof this.mask&&this.mask&&this.mask.remove())},onShow:function(){t(document).trigger("wpoi:"+this.display_id,[this.type,this.$el,this.opt])},onHide:function(){t(document).trigger("wpoi:hide",[this.type,this.$el,this.opt])}}))}(jQuery,document,window),function(t,e,i){"use strict";if(!inc_opt.is_upfront){var n=window.Optin||{},s=Backbone.Model.extend({url:inc_opt.ajaxurl+"?action=hustle_custom_content_viewed",defaults:{page_type:inc_opt.page_type,page_id:inc_opt.page_id,type:"",uri:encodeURI(window.location.href)},parse:function(t){t.success?console.log("Log success!"):console.log("Log failed!")}}),o=s.extend({url:inc_opt.ajaxurl+"?action=hustle_custom_content_converted"});s=new s,o=new o,n.CC_log_view=s,n.CC_log_conversion=o,n.CCPopUp=n.View.extend({isCC:!0,display_id:"cc_display",showClass:"wph-modal-show",maskClass:"wph-modal--mask",cookie_key:Hustle.consts.Never_See_Aagain_Prefix,events:{click:"click","click .wph-modal--close .wph-icon":"closed","click .wph-modal--cta":"fire_conversion_event","click .wph-modal-never-see-again":"closed","submit form":"on_form_submit"},initialize:function(t){this.opt=t,this.type=t.type,this.data=t.content,this.optin_id=this.data.optin_id,this.settings=t[this.type],this.triggers=this.settings.triggers,this.tracking_types=t.tracking_types,this.appear_after=this.triggers.trigger+"_trigger",this.cookie_key+=this.type+"-"+this.optin_id,this.expiration_days=this.settings.expiration_days?parseInt(this.settings.expiration_days):0,this.settings.display=this.opt.should_display[this.type],this.should_display()&&(this.model=_.extend(this.settings,t.design,this.data,{id:this.optin_id,type:this.type,position:this.settings.position,types:{popup:t.popup,slide_in:t.slide_in,after_content:t.after_content}}),(_.contains(["time","scrolled","adblock"],this.triggers.trigger)||"exit_intent_trigger"===this.appear_after&&_.isTrue(this.settings.on_exit_intent_per_session))&&(this.should_remove=!0),this.render())},render:function(){this.model=_.extend(this.model,this.handle_custom_size(this.model),this.enable_fullscreen(this.model),this.sanitize_cta_url(this.model));var e=n.template("hustle-modal-tpl");e=e(this.model),this.setElement(e),this.$el.appendTo(this.parent),this.$el.display=t.proxy(this,"display"),this.$el.on("show",t.proxy(this,"onShow")),this.$el.on("show",t.proxy(Hustle.Events,"trigger","cc_modal_shown",this,this.type)),this.$el.on("hide",t.proxy(this,"onHide")),this.html=this.$el.html(),null!=this.tracking_types&&_.isTrue(this.tracking_types[this.type])&&Hustle.Events.once("cc_modal_shown",this.logView,this),Hustle.Events.once("cc_modal_shown",this.update_view_count_cookie,this),Hustle.Events.on("cc_modal_shown",this.fit,this),Hustle.Events.on("hustle_resize",this.fit,this),this[this.appear_after](),this.caldera_form_compat()},caldera_form_compat:function(){inc_opt.is_caldera_active&&"undefined"!=typeof calders_forms_init_conditions&&(calders_forms_init_conditions(),t(".caldera_forms_form").find("[data-field]").first().trigger("change"))},logView:function(){s.set("type",this.type),s.set("id",this.optin_id),s.save()},update_view_count_cookie:function(){if(!window.hasOwnProperty("optin_vars")){var t=Hustle.consts.Module_Show_Count+this.model.type+"-"+this.model.id,e=Hustle.cookie.get(t);Hustle.cookie.set(t,e+1,90)}},sanitize_cta_url:function(t){return t.cta_url&&(/^(f|ht)tps?:\/\//i.test(t.cta_url)||(t.cta_url="http://"+t.cta_url)),t},fire_conversion_event:function(e){var i=t(e.currentTarget).hasClass("wph-modal--cta")?"cta":"form";null!=this.tracking_types&&_.isTrue(this.tracking_types[this.type])&&(Hustle.Events.trigger("cc_modal_converted",this,i),o.set("id",this.optin_id),o.set("type",this.type),o.set("source",i),o.save())},enable_fullscreen:function(t){return t.fullscreen="","popup"===this.type&&this.settings.make_fullscreen&&(t.fullscreen="wph-modal-popup-fullscreen"),t},handle_custom_size:function(t){return t.custom_size_attr="",t.custom_size_class="",t.customize_size&&_.isTrue(t.customize_size)&&(t.custom_size_class="wph-modal--custom",t.custom_size_attr+="data-custom_width="+t.custom_width+" data-custom_height="+t.custom_height),t.border&&_.isTrue(t.border)&&(t.custom_size_attr+=" data-border="+t.border_weight),t},on_form_submit:function(e){var i=t(e.target),n=this.settings.on_submit;window.setTimeout(t.proxy(function(){if(!i.hasClass("wpcf7-form")||!i.hasClass("invalid"))switch(n){default:case"refresh_or_close":this.closed(e);break;case"close":case"close_after_form_submit":this.closed(e);break;case"redirect":case"redirect_to_form_target":window.location.replace(i.attr("action"));break;case"refresh_or_nothing":}},this),1500)}}),n.CCSlideIn=n.CCPopUp.extend({key_prefix:"",hide_all_key:"",delay_time:0,should_display:function(){this.key_prefix=Hustle.consts.Slide_Cookie_Prefix+this.optin_id,this.hide_all_key=Hustle.consts.Slide_Cookie_Hide_All+this.optin_id,this.delay_time="minutes"===this.settings.hide_after_unit?60*parseInt(this.settings.hide_after_val,10)*1e3:1e3*parseInt(this.settings.hide_after_val,10);var t=n.cookie.get(this.cookie_key);return _.isFalse(t)&&(t=n.cookie.get(this.key_prefix)),_.isFalse(t)&&(t=n.cookie.get(this.hide_all_key)),"keep_showing"===this.settings.after_close&&t&&(t=!1,n.cookie.set(this.cookie_key,this.optin_id,0),n.cookie.set(this.key_prefix,this.optin_id,0),n.cookie.set(this.hide_all_key,this.optin_id,0)),this.add_mask=_.noop,this.opt.should_display[this.type]&&!_.isTrue(t)},onShow:function(){if(_.isTrue(this.settings.hide_after)){var t=this;_.delay(function(){t.prevent_hide_after||(t.$el.removeClass(t.showClass),t.mask&&t.mask.trigger("click"))},this.delay_time)}n.CCPopUp.prototype.onShow.apply(this,arguments)},onHide:function(){var t=!1;"hide_all"===this.settings.after_close&&(n.cookie.set(this.key_prefix,this.optin_id,30),t=!0),"no_show"===this.settings.after_close&&(n.cookie.set(this.hide_all_key,this.optin_id,30),t=!0),t&&(this.mask&&this.mask.remove(),this.remove())},click:function(){this.prevent_hide_after=!0}}),n.CCAfterContent=n.CCPopUp.extend({should_display:function(){return _.isFalse(this.settings.animate)?this.settings.animation_in=this.settings.animation_out=!1:this.settings.animation_in=this.settings.animation_out=this.settings.animation,this.add_mask=_.noop,this.parent="#cc-"+this.opt.uniq_id,!0}})}}(jQuery,document,window),function(t){"use strict";inc_opt.is_upfront||(Optin=window.Optin||{},Optin.AfterContent=function(){var e,i=t(this),n=i.data("id");e=_.find(Optins,function(t){return n==t.data.optin_id}),i.data("handle",_.findKey(Optins,e)),i.data("type","after_content"),i.html(Optin.render_optin(e)),e.settings.after_content.animate&&"true"==e.settings.after_content.animate&&(i.addClass(e.settings.after_content.animation),_.delay(function(){i.addClass("wpoi-show")},750)),i.find(".wpoi-provider-args").html(Optin.render_provider_args(e)),t(document).trigger("wpoi:display",["after_content",i,e])})}(jQuery),function(t,e,i){"use strict";inc_opt.is_upfront||(Optin=window.Optin||{},Optin.PopUp=Optin.View.extend({className:"inc_opt_popup wpoi-animate inc_optin",type:"popup"}))}(jQuery,document,window),function(t,e,i){"use strict";inc_opt.is_upfront||(Optin=window.Optin||{},Optin.SlideIn=Optin.View.extend({className:"inc_opt_slidein inc_optin wpoi-slide",type:"slide_in",prevent_hide_after:!1,delay_time:0,should_display:function(){var t="popup"===this.type?Optin.POPUP_COOKIE_PREFIX:Optin.SLIDE_IN_COOKIE_PREFIX;t+=this.optin_id;var e=Optin.cookie.get(t);return this.add_mask=_.noop,e||(e=Optin.cookie.get(Optin.SLIDE_IN_COOKIE_PREFIX+this.optin_id)),e||(e=Optin.cookie.get(Optin.SLIDE_IN_COOKIE_HIDE_ALL+this.optin_id)),"keep_showing"===this.settings.after_close&&e&&(e=!1,Optin.cookie.set(Optin.SLIDE_IN_COOKIE_PREFIX+this.optin_id,this.optin_id,0),Optin.cookie.set(Optin.SLIDE_IN_COOKIE_HIDE_ALL+this.optin_id,this.optin_id,0),Optin.cookie.set(t,this.optin_id,0)),
3
- _.isTrue(this.settings.display)&&!_.isTrue(e)},render:function(){var t="inc_opt_slidein inc_opt_slidein_"+this.settings.position+" inc_optin wpoi-slide";this.delay_time="minutes"===this.settings.hide_after_unit?60*parseInt(this.settings.hide_after_val,10)*1e3:1e3*parseInt(this.settings.hide_after_val,10),this.$el.addClass(t),Optin.View.prototype.render.apply(this,arguments)},onShow:function(){if(this.mask&&this.mask.removeClass("wpoi-show"),_.isTrue(this.settings.hide_after)){var t=this;_.delay(function(){t.prevent_hide_after||(t.$el.removeClass("wpoi-show"),t.$el.trigger("hide"))},this.delay_time)}Optin.View.prototype.onShow.apply(this,arguments)},onHide:function(){var t=!1;"hide_all"===this.settings.after_close&&(Optin.cookie.set(Optin.SLIDE_IN_COOKIE_HIDE_ALL,this.optin_id,30),t=!0),"no_show"===this.settings.after_close&&(Optin.cookie.set(Optin.SLIDE_IN_COOKIE_PREFIX+this.optin_id,this.optin_id,30),t=!0),t&&(this.mask&&this.mask.remove(),this.remove())},click:function(){this.prevent_hide_after=!0}}))}(jQuery,document,window),function(t,e,i){"use strict";var n=window.Optin||{};n.SS_log_view=Backbone.Model.extend({url:inc_opt.ajaxurl+"?action=hustle_social_sharing_viewed",defaults:{page_type:inc_opt.page_type,page_id:inc_opt.page_id,type:"",uri:encodeURI(window.location.href)},parse:function(t){t.success?console.log("Log success!"):console.log("Log failed!")}}),n.SS_log_conversion=n.SS_log_view.extend({url:inc_opt.ajaxurl+"?action=hustle_social_sharing_converted"}),n.SS_native_share_enpoints={facebook:"https://www.facebook.com/sharer/sharer.php?u=",twitter:"https://twitter.com/intent/tweet?url=",google:"https://plus.google.com/share?url=",pinterest:"https://www.pinterest.com/pin/create/button/?url=",reddit:"https://www.reddit.com/submit?url=",linkedin:"https://www.linkedin.com/shareArticle?mini=true&url=",vkontakte:"https://vk.com/share.php?url="},n.Social_Sharing=Backbone.View.extend({template:n.template("hustle-social-tpl"),events:{"click a.native-social-share":"click_social_native","click a.linked-social-share":"click_social_linked"},initialize:function(t){this.opts=t,this.optin_id=t.optin_id,this.services=t.services,this.appearance=t.appearance,this.floating_social=t.floating_social,this.is_compat="undefined"!=typeof t.is_compat,"undefined"!=typeof t.parent&&(this.parent=t.parent),this.model_json=_.extend({id:this.optin_id,display_type:this.display_type},this.services,this.appearance,this.floating_social),this.render()},render:function(e){var i=this.parent,s=this.model_json.location_align_x,o=this.model_json.location_align_y,a=_.templateSettings;if(this.is_compat&&(n.global_mixin(),_.templateSettings={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g}),this.setElement(this.template(_.extend({},this.model_json))),"floating_social"==this.module_display_type&&(i=t("content"==this.model_json.location_type?"#content":"selector"==this.model_json.location_type?this.model_json.location_target:"body")),0!=i.length){this.$el.appendTo(i);var r=t(".inc_social_sharing_widget_wrap .wph-social-sharing, .inc_social_sharing_shortcode_wrap .wph-social-sharing"),l="floating_social"===this.module_display_type?t(i).find(".wph-social-sharing-"+this.model_json.id).not(r):t(i).find(".wph-social-sharing-"+this.model_json.id),c=l.find(".wph-sshare--container");this._handle_icons_order(),_.each(this.model_json.social_icons,t.proxy(function(t,e){var i="one"==this.model_json.icon_style?n.template("wpoi-sshare-"+e+"-one-svg-front"):n.template("wpoi-sshare-"+e+"-svg-front"),s="native"==this.model_json.service_type?"#":this.sanitize_url(t.link),o="native"==this.model_json.service_type?"":'target="_blank"',a="linked-social-share",r=i();"native"==this.model_json.service_type&&(a="native-social-share",_.isTrue(this.model_json.click_counter)&&(r+='<div class="wph-sshare_social_counter"><span>'+t.counter+"</span></div>"));var l='<a data-social="'+e+'" class="'+a+'" href="'+s+'" '+o+" >"+r+"</a>";c.append(l)},this)),"floating_social"==this.module_display_type&&(l.addClass("wph-social-sharing-float"),"left"==s?l.css("left",this.model_json.location_left+"px"):l.css("right",this.model_json.location_right+"px"),"top"==o?l.css("top",this.model_json.location_top+"px"):l.css("bottom",this.model_json.location_bottom+"px")),"native"==this.model_json.service_type&&("floating_social"==this.module_display_type?"1"==this.model_json.floating_inline_count?c.addClass("wph-sshare--count_inline"):c.addClass("wph-sshare--count_block"):"1"==this.model_json.widget_inline_count?c.addClass("wph-sshare--count_inline"):c.addClass("wph-sshare--count_block")),this.is_compat&&(_.templateSettings=a),this.html=this.$el.html(),this.log_view(this.module_display_type,this.opts)}},_handle_icons_order:function(){var t={},e=this.model_json.social_icons,i=this.model_json.icons_order,n=i.split(",");i&&n.length&&(_.each(n,function(i,n){"undefined"!=typeof e[i]&&(t[i]=e[i],e=_.pick(e,function(t,e){if(i!==e)return e=t}))}),Object.keys(e).length&&(t=_.extend(t,_.pick(e,function(t,e){if("undefined"!=typeof t)return e=t}))),this.model_json.social_icons=t)},sanitize_url:function(t){return t&&(/^(f|ht)tps?:\/\//i.test(t)||(t="http://"+t)),t},click_social_native:function(e){e.preventDefault();var i=this,s=this.$(e.target),o=s.closest("a.native-social-share"),a=o.data("social");this._update_social_counter(o),t('a[data-social="'+a+'"]').not(o).each(function(){i._update_social_counter(t(this))}),this.log_conversion(this.module_display_type,this.opts,a,"native"),a&&"undefined"!=typeof n.SS_native_share_enpoints[a]&&window.open(n.SS_native_share_enpoints[a]+hustle_vars.current_url,"MsgWindow","menubar=no,toolbar=no,resizable=yes,scrollbars=yes")},click_social_linked:function(t){var e=this.$(t.target),i=e.closest("a.linked-social-share"),n=i.data("social");null!=this.opts.tracking_types&&_.isTrue(this.opts.tracking_types[this.module_display_type])&&this.log_conversion(this.module_display_type,this.opts,n,"linked")},_update_social_counter:function(t){_.delay(function(){var e=t.find(".wph-sshare_social_counter span");if(e.length){var i=parseInt(e.text())+1;e.text(i)}},5e3)},log_view:function(t,e){if(null!=e.tracking_types&&_.isTrue(e.tracking_types[t])&&"undefined"!=typeof n.SS_log_view){var i=new n.SS_log_view;i.set("type",t),i.set("id",e.optin_id),i.save()}if(!window.hasOwnProperty("optin_vars")){var s=Hustle.consts.SS_Module_Show_Count+t+"-"+e.optin_id,o=Hustle.cookie.get(s);Hustle.cookie.set(s,o+1,90)}},log_conversion:function(t,e,i,s){var o=!(null==e.tracking_types||!_.isTrue(e.tracking_types[t]));if("undefined"!=typeof n.SS_log_conversion){var a=new n.SS_log_conversion;a.set("type",t),a.set("id",e.optin_id),a.set("source",i+"_icon"),a.set("track",o),a.set("service_type",s),a.save()}}}),n.SS_floating=n.Social_Sharing.extend({module_display_type:"floating_social",display_type:"column"}),n.SS_widget=n.Social_Sharing.extend({module_display_type:"widget",display_type:"row"}),n.SS_shortcode=n.Social_Sharing.extend({module_display_type:"shortcode",display_type:"row"})}(jQuery,document,window),function(t){"use strict";Optin=Optin||{},Optin.handle_cc_shortcode_conversion=function(e,i){var n=(t(window),t(document));t(n).on("click","a.wph-cc-shortcode--cta",function(t){"undefined"!=typeof Optin.CC_log_conversion&&(Optin.CC_log_conversion.set("id",e),Optin.CC_log_conversion.set("type",i),Optin.CC_log_conversion.set("source","cta"),Optin.CC_log_conversion.save())})},Optin.inc_opt_render_widgets=function(e){t(".inc_cc_widget_wrap, .inc_cc_shortcode_wrap").each(function(){var i=t(this),n=i.data("id"),s=i.is(".inc_cc_widget_wrap")?"widget":"shortcode";if(n){var o=_.find(Hustle_Custom_Contents,function(t){return n==t.content.optin_id});if(o){var a=t.parseJSON(o.settings);if(null!==a&&_.isTrue(a[s].enabled)){i.data("handle",_.findKey(Hustle_Custom_Contents,o)),i.data("type",s),o.design.cta_url&&(/^(f|ht)tps?:\/\//i.test(o.design.cta_url)||(o.design.cta_url="http://"+o.design.cta_url)),o.type=s;var r=Optin.render_cc_shortcode(o,e);i.html(r),null!==o.tracking_types&&_.isTrue(o.tracking_types[s])&&(_.delay(function(){t(document).trigger("wpoi:cc_shortcode_or_widget_viewed",[s,n])},_.random(0,300)),Optin.handle_cc_shortcode_conversion(n,s))}}}}),t(".inc_opt_widget_wrap, .inc_opt_shortcode_wrap").each(function(){var i=t(this),n=i.data("id"),s=i.is(".inc_opt_widget_wrap")?"widget":"shortcode";if(n){var o=_.find(Optins,function(t){return n==t.data.optin_id});if(o){i.data("handle",_.findKey(Optins,o)),i.data("type",s);var a=Optin.render_optin(o,e);i.html(a),i.find(".wpoi-provider-args").html(Optin.render_provider_args(o)),_.delay(function(){t(document).trigger("wpoi:display",[s,i,o])},_.random(0,300))}}}),t(".inc_social_sharing_widget_wrap, .inc_social_sharing_shortcode_wrap").each(function(){var i=t(this),n=i.data("id"),s=i.is(".inc_social_sharing_widget_wrap")?"widget":"shortcode";if(n){var o=_.find(Hustle_SS_Modules,function(t){return n==t.optin_id});if(o){var a=t.parseJSON(o.settings);null!==a&&_.isTrue(a[s].enabled)&&(o.parent=i,"undefined"!=typeof e&&e&&(o.is_compat=!0),i.html(""),"widget"==s?new Optin.SS_widget(o):new Optin.SS_shortcode(o))}}})},Optin.inc_opt_render_widgets(!1),Hustle.Events.on("upfront:editor:widget:render",function(t){Optin.inc_opt_render_widgets(!0)}),Hustle.Events.on("upfront:editor:shortcode:render",function(t){Optin.inc_opt_render_widgets(!0)})}(jQuery),function(t,e,i){"use strict";inc_opt.is_upfront||(t(e).on("mouseleave",t.proxy(Hustle.Events,"trigger","exit_intended")),t(window).on("resize",t.proxy(Hustle.Events,"trigger","hustle_resize")),t.each(_.keys(Optins),function(e,i){var n=Optins[i],s=n.settings,o=n.data.optin_id,a={key:i};if(s.popup&&s.popup.enabled&&!_.isTrue(Optin.cookie.get(Optin.POPUP_COOKIE_PREFIX+o))&&new Optin.PopUp(a),s.slide_in&&s.slide_in.enabled&&!_.isTrue(Optin.cookie.get(Optin.SLIDE_IN_COOKIE_HIDE_ALL))&&new Optin.SlideIn(a),s.after_content&&s.after_content.enabled){var r=t('[data-id="'+o+'"]').filter(function(){return t(this).is(".inc_opt_after_content_wrap")});r.length&&r.each(Optin.AfterContent)}}),t.each(Hustle_Custom_Contents,function(t,e){e.id=t,e.should_display&&(_.isTrue(e.should_display.popup)&&_.isTrue(e.popup.enabled)&&(e.type="popup",new Optin.CCPopUp(e)),_.isTrue(e.should_display.slide_in)&&_.isTrue(e.slide_in.enabled)&&(e.type="slide_in",new Optin.CCSlideIn(e)),e.after_content&&_.isTrue(e.should_display.after_content)&&_.isTrue(e.after_content.enabled)&&(e.type="after_content",e.uniq_id=t,new Optin.CCAfterContent(e)))}),_.each(Hustle_SS_Modules,function(t,e){_.isTrue(t.floating_social.enabled)&&_.isTrue(t.is_floating_social_allowed)&&new Optin.SS_floating(t)}))}(jQuery,document,window);
4
  //# sourceMappingURL=maps/front.min.js.map
1
  !function(t){var e="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(i,n,s){e.Backbone=t(e,s,i,n)});else if("undefined"!=typeof exports){var i,n=require("underscore");try{i=require("jquery")}catch(s){}t(e,exports,n,i)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(function(t,e,i,n){var s=t.Backbone,o=Array.prototype.slice;e.VERSION="1.3.3",e.$=n,e.noConflict=function(){return t.Backbone=s,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=function(t,e,n){switch(t){case 1:return function(){return i[e](this[n])};case 2:return function(t){return i[e](this[n],t)};case 3:return function(t,s){return i[e](this[n],l(t,this),s)};case 4:return function(t,s,o){return i[e](this[n],l(t,this),s,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[n]),i[e].apply(i,t)}}},r=function(t,e,n){i.each(e,function(e,s){i[s]&&(t.prototype[s]=a(e,s,n))})},l=function(t,e){return i.isFunction(t)?t:i.isObject(t)&&!e._isModel(t)?c(t):i.isString(t)?function(e){return e.get(t)}:t},c=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}},h=e.Events={},d=/\s+/,_=function(t,e,n,s,o){var a,r=0;if(n&&"object"==typeof n){void 0!==s&&"context"in o&&void 0===o.context&&(o.context=s);for(a=i.keys(n);r<a.length;r++)e=_(t,e,a[r],n[a[r]],o)}else if(n&&d.test(n))for(a=n.split(d);r<a.length;r++)e=t(e,a[r],s,o);else e=t(e,n,s,o);return e};h.on=function(t,e,i){return p(this,t,e,i)};var p=function(t,e,i,n,s){if(t._events=_(u,t._events||{},e,i,{context:n,ctx:t,listening:s}),s){var o=t._listeners||(t._listeners={});o[s.id]=s}return t};h.listenTo=function(t,e,n){if(!t)return this;var s=t._listenId||(t._listenId=i.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),a=o[s];if(!a){var r=this._listenId||(this._listenId=i.uniqueId("l"));a=o[s]={obj:t,objId:s,id:r,listeningTo:o,count:0}}return p(t,e,n,this,a),this};var u=function(t,e,i,n){if(i){var s=t[e]||(t[e]=[]),o=n.context,a=n.ctx,r=n.listening;r&&r.count++,s.push({callback:i,context:o,ctx:o||a,listening:r})}return t};h.off=function(t,e,i){return this._events?(this._events=_(g,this._events,t,e,{context:i,listeners:this._listeners}),this):this},h.stopListening=function(t,e,n){var s=this._listeningTo;if(!s)return this;for(var o=t?[t._listenId]:i.keys(s),a=0;a<o.length;a++){var r=s[o[a]];if(!r)break;r.obj.off(e,n,this)}return this};var g=function(t,e,n,s){if(t){var o,a=0,r=s.context,l=s.listeners;if(e||n||r){for(var c=e?[e]:i.keys(t);a<c.length;a++){e=c[a];var h=t[e];if(!h)break;for(var d=[],_=0;_<h.length;_++){var p=h[_];n&&n!==p.callback&&n!==p.callback._callback||r&&r!==p.context?d.push(p):(o=p.listening,o&&0===--o.count&&(delete l[o.id],delete o.listeningTo[o.objId]))}d.length?t[e]=d:delete t[e]}return t}for(var u=i.keys(l);a<u.length;a++)o=l[u[a]],delete l[o.id],delete o.listeningTo[o.objId]}};h.once=function(t,e,n){var s=_(f,{},t,e,i.bind(this.off,this));return"string"==typeof t&&null==n&&(e=void 0),this.on(s,e,n)},h.listenToOnce=function(t,e,n){var s=_(f,{},e,n,i.bind(this.stopListening,this,t));return this.listenTo(t,s)};var f=function(t,e,n,s){if(n){var o=t[e]=i.once(function(){s(e,o),n.apply(this,arguments)});o._callback=n}return t};h.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];return _(m,this._events,t,void 0,i),this};var m=function(t,e,i,n){if(t){var s=t[e],o=t.all;s&&o&&(o=o.slice()),s&&v(s,n),o&&v(o,[e].concat(n))}return t},v=function(t,e){var i,n=-1,s=t.length,o=e[0],a=e[1],r=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,o);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,o,a);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,o,a,r);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}};h.bind=h.on,h.unbind=h.off,i.extend(e,h);var w=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{});var s=i.result(this,"defaults");n=i.defaults(i.extend({},s,n),s),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(w.prototype,h,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,n){if(null==t)return this;var s;if("object"==typeof t?(s=t,n=e):(s={})[t]=e,n||(n={}),!this._validate(s,n))return!1;var o=n.unset,a=n.silent,r=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=i.clone(this.attributes),this.changed={});var c=this.attributes,h=this.changed,d=this._previousAttributes;for(var _ in s)e=s[_],i.isEqual(c[_],e)||r.push(_),i.isEqual(d[_],e)?delete h[_]:h[_]=e,o?delete c[_]:c[_]=e;if(this.idAttribute in s&&(this.id=this.get(this.idAttribute)),!a){r.length&&(this._pending=n);for(var p=0;p<r.length;p++)this.trigger("change:"+r[p],this,c[r[p]],n)}if(l)return this;if(!a)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e=this._changing?this._previousAttributes:this.attributes,n={};for(var s in t){var o=t[s];i.isEqual(e[s],o)||(n[s]=o)}return!!i.size(n)&&n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:!0},t);var e=this,n=t.success;return t.success=function(i){var s=t.parse?e.parse(i,t):i;return!!e.set(s,t)&&(n&&n.call(t.context,e,i,t),void e.trigger("sync",e,i,t))},F(this,t),this.sync("read",this,t)},save:function(t,e,n){var s;null==t||"object"==typeof t?(s=t,n=e):(s={})[t]=e,n=i.extend({validate:!0,parse:!0},n);var o=n.wait;if(s&&!o){if(!this.set(s,n))return!1}else if(!this._validate(s,n))return!1;var a=this,r=n.success,l=this.attributes;n.success=function(t){a.attributes=l;var e=n.parse?a.parse(t,n):t;return o&&(e=i.extend({},s,e)),!(e&&!a.set(e,n))&&(r&&r.call(n.context,a,t,n),void a.trigger("sync",a,t,n))},F(this,n),s&&o&&(this.attributes=i.extend({},l,s));var c=this.isNew()?"create":n.patch?"patch":"update";"patch"!==c||n.attrs||(n.attrs=s);var h=this.sync(c,this,n);return this.attributes=l,h},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,s=t.wait,o=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(i){s&&o(),n&&n.call(t.context,e,i,t),e.isNew()||e.trigger("sync",e,i,t)};var a=!1;return this.isNew()?i.defer(t.success):(F(this,t),a=this.sync("delete",this,t)),s||o(),a},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||M();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1)}});var y={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};r(w,y,"attributes");var k=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,i.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},x={add:!0,remove:!1},C=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var n,s=Array(t.length-i),o=e.length;for(n=0;n<s.length;n++)s[n]=t[n+i];for(n=0;n<o;n++)t[n+i]=e[n];for(n=0;n<s.length;n++)t[n+o+i]=s[n]};i.extend(k.prototype,h,{model:w,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,x))},remove:function(t,e){e=i.extend({},e);var n=!i.isArray(t);t=n?[t]:t.slice();var s=this._removeModels(t,e);return!e.silent&&s.length&&(e.changes={added:[],merged:[],removed:s},this.trigger("update",this,e)),n?s[0]:s},set:function(t,e){if(null!=t){e=i.extend({},b,e),e.parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var n=!i.isArray(t);t=n?[t]:t.slice();var s=e.at;null!=s&&(s=+s),s>this.length&&(s=this.length),s<0&&(s+=this.length+1);var o,a,r=[],l=[],c=[],h=[],d={},_=e.add,p=e.merge,u=e.remove,g=!1,f=this.comparator&&null==s&&e.sort!==!1,m=i.isString(this.comparator)?this.comparator:null;for(a=0;a<t.length;a++){o=t[a];var v=this.get(o);if(v){if(p&&o!==v){var w=this._isModel(o)?o.attributes:o;e.parse&&(w=v.parse(w,e)),v.set(w,e),c.push(v),f&&!g&&(g=v.hasChanged(m))}d[v.cid]||(d[v.cid]=!0,r.push(v)),t[a]=v}else _&&(o=t[a]=this._prepareModel(o,e),o&&(l.push(o),this._addReference(o,e),d[o.cid]=!0,r.push(o)))}if(u){for(a=0;a<this.length;a++)o=this.models[a],d[o.cid]||h.push(o);h.length&&this._removeModels(h,e)}var y=!1,k=!f&&_&&u;if(r.length&&k?(y=this.length!==r.length||i.some(this.models,function(t,e){return t!==r[e]}),this.models.length=0,C(this.models,r,0),this.length=this.models.length):l.length&&(f&&(g=!0),C(this.models,l,null==s?this.length:s),this.length=this.models.length),g&&this.sort({silent:!0}),!e.silent){for(a=0;a<l.length;a++)null!=s&&(e.index=s+a),o=l[a],o.trigger("add",o,this,e);(g||y)&&this.trigger("sort",this,e),(l.length||h.length||c.length)&&(e.changes={added:l,removed:h,merged:c},this.trigger("update",this,e))}return n?t[0]:t}},reset:function(t,e){e=e?i.clone(e):{};for(var n=0;n<this.models.length;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var n=e.length;return i.isFunction(e)&&(e=i.bind(e,this)),1===n||i.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){t=i.extend({parse:!0},t);var e=t.success,n=this;return t.success=function(i){var s=t.reset?"reset":"set";n[s](i,t),e&&e.call(t.context,n,i,t),n.trigger("sync",n,i,t)},F(this,t),this.sync("read",this,t)},create:function(t,e){e=e?i.clone(e):{};var n=e.wait;if(t=this._prepareModel(t,e),!t)return!1;n||this.add(t,e);var s=this,o=e.success;return e.success=function(t,e,i){n&&s.add(t,i),o&&o.call(i.context,t,e,i)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(this._isModel(t))return t.collection||(t.collection=this),t;e=e?i.clone(e):{},e.collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=this.get(t[n]);if(s){var o=this.indexOf(s);this.models.splice(o,1),this.length--,delete this._byId[s.cid];var a=this.modelId(s.attributes);null!=a&&delete this._byId[a],e.silent||(e.index=o,s.trigger("remove",s,this,e)),i.push(s),this._removeReference(s,e)}}return i},_isModel:function(t){return t instanceof w},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;if("destroy"===t&&this.remove(e,n),"change"===t){var s=this.modelId(e.previousAttributes()),o=this.modelId(e.attributes);s!==o&&(null!=s&&delete this._byId[s],null!=o&&(this._byId[o]=e))}}this.trigger.apply(this,arguments)}});var O={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};r(k,O,"models");var S=e.View=function(t){this.cid=i.uniqueId("view"),i.extend(this,i.pick(t,I)),this._ensureElement(),this.initialize.apply(this,arguments)},E=/^(\S+)\s*(.*)$/,I=["model","collection","el","id","attributes","className","tagName","events"];i.extend(S.prototype,h,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=i.result(this,"events")),!t)return this;this.undelegateEvents();for(var e in t){var n=t[e];if(i.isFunction(n)||(n=this[n]),n){var s=e.match(E);this.delegate(s[1],s[2],i.bind(n,this))}}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"));else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t["class"]=i.result(this,"className")),this.setElement(this._createElement(i.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}}),e.sync=function(t,n,s){var o=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:o,dataType:"json"};if(s.url||(a.url=i.result(n,"url")||M()),null!=s.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(a.contentType="application/json",a.data=JSON.stringify(s.attrs||n.toJSON(s))),s.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),s.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){a.type="POST",s.emulateJSON&&(a.data._method=o);var r=s.beforeSend;s.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",o),r)return r.apply(this,arguments)}}"GET"===a.type||s.emulateJSON||(a.processData=!1);var l=s.error;s.error=function(t,e,i){s.textStatus=e,s.errorThrown=i,l&&l.call(s.context,t,e,i)};var c=s.xhr=e.ajax(i.extend(a,s));return n.trigger("request",n,c,s),c};var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var H=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},$=/\((.*?)\)/g,P=/(\(\?)?:\w+/g,j=/\*\w+/g,z=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(H.prototype,h,{initialize:function(){},route:function(t,n,s){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(s=n,n=""),s||(s=this[n]);var o=this;return e.history.route(t,function(i){var a=o._extractParameters(t,i);o.execute(s,a,n)!==!1&&(o.trigger.apply(o,["route:"+n].concat(a)),o.trigger("route",n,a),e.history.trigger("route",o,n,a))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(z,"\\$&").replace($,"(?:$1)?").replace(P,function(t,e){return e?t:"([^/?]+)"}).replace(j,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[],this.checkUrl=i.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},A=/^[#\/]|\s+$/g,R=/^\/+|\/+$/g,U=/#.*$/;N.started=!1,i.extend(N.prototype,h,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\/]$/,"$&/");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname),e=t.slice(0,this.root.length-1)+"/";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(A,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");if(N.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(R,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,s=n.insertBefore(this.iframe,n.firstChild).contentWindow;s.document.open(),s.document.close(),s.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),N.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e!==this.fragment&&(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),i.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0}))},navigate:function(t,e){if(!N.started)return!1;e&&e!==!0||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root;""!==t&&"?"!==t.charAt(0)||(i=i.slice(0,-1)||"/");var n=i+t;if(t=this.decodeFragment(t.replace(U,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var s=this.iframe.contentWindow;e.replace||(s.document.open(),s.document.close()),this._updateHash(s.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new N;var L=function(t,e){var n,s=this;return n=t&&i.has(t,"constructor")?t.constructor:function(){return s.apply(this,arguments)},i.extend(n,s,e),n.prototype=i.create(s.prototype,t),n.prototype.constructor=n,n.__super__=s.prototype,n};w.extend=k.extend=H.extend=S.extend=N.extend=L;var M=function(){throw new Error('A "url" property or function must be specified')},F=function(t,e){var i=e.error;e.error=function(n){i&&i.call(e.context,t,n,e),t.trigger("error",t,n,e)}};return e}),function(t){"use strict";window.Hustle=function(t,e,i){var n={},s={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g},o=function(s,o){var a=s.split(".");if(a.length){var r=function(n,s){var a=n.split("."),l=a.splice(0,1)[0];if(l){if(a.length)s[l]=s[l]||{};else{var c=o.call(null,t,e,i);s[l]=_.isFunction(c)||"undefined"==typeof c?c:_.extend(s[l]||{},c)}a.length&&l&&r(a.join("."),s[l])}};r(s,n)}else{var l=n[s]||{};n[s]=_.extend(l,o.call(null,t,e,i))}},a=function(){return n},r=function(t){if(t.split(".").length){var e=!1,i=function(t,n){var s=t.split("."),o=s.splice(0,1)[0];e=n[o],s.length&&i(s.join("."),n[o])};return i(t,n),e}return n[t]||!1},l=_.extend({},Backbone.Events),c=Backbone.View.extend({__base_events:{"click .wph-tabs--wrap .wph-tabs--nav li label":"__base_toggle_tab"},initialize:function(){this.events=_.extend({},this.events,this.__base_events),_.isFunction(this.init_mix)&&this.init_mix.apply(this,arguments),this.render&&(this.render=_.wrap(this.render,function(t){this.trigger("before_render"),t.call(this),l.trigger("view.rendered",this),this.trigger("rendered")})),_.isFunction(this.init)&&this.init.apply(this,arguments)},__base_toggle_tab:function(t){var e=this.$(t.target),i=(e.attr("href")||"").replace(/^\#/,""),n=!!i&&this.$("#"+i),s=e.closest(".wph-tabs--wrap"),o=e.closest("li");n&&n.length&&(s.find(".wph-tabs--content").not(n).removeClass("current"),n.addClass("current"),o.addClass("current"),o.siblings().removeClass("current"))}}),h=_.memoize(function(t){var e;return function(i){return e=e||_.template(document.getElementById(t).innerHTML,null,s),e(i).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}}),d=_.memoize(function(t){var e;return function(i){return(e=e||_.template(t,null,s))(i)}}),p=function(){return t.extend(!0,{},s)},u=function(){var e=function(t){var e,i,n,s=document.cookie.split(";");for(n=t+"=",e=0;e<s.length;e+=1){for(i=s[e];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n)){var o=i.substring(n.length,i.length);return o?JSON.parse(o):o}}return null},i=function(e,i,n){var s,o;i=t.isArray(i)||t.isPlainObject(i)?JSON.stringify(i):i,isNaN(n)?o="":(s=new Date,s.setTime(s.getTime()+24*n*60*60*1e3),o="; expires="+s.toGMTString()),document.cookie=e+"="+i+o+"; path=/"};return{set:i,get:e}}(),g=function(){return{Never_See_Aagain_Prefix:"hustle_never_see_again-",Module_Show_Count:"hustle_module_show_count-",Slide_Cookie_Prefix:"hustle_slide_in_prefix-",Slide_Cookie_Hide_All:"hustle_slide_in_hide_all-",SS_Module_Show_Count:"hustle_ss_module_show_count-"}}();return{define:o,get_modules:a,get:r,Events:l,View:c,template:h,create_template:d,get_template_options:p,cookie:u,consts:g}}(jQuery,document,window)}(jQuery);var Optin=Optin||{};Optin.View={},Optin.Models={},Optin.Events={},"undefined"!=typeof Backbone&&_.extend(Optin.Events,Backbone.Events),function(t){"use strict";Optin.COOKIE_PREFIX="inc_optin_long_hidden-",Optin.POPUP_COOKIE_PREFIX="inc_optin_popup_long_hidden-",Optin.SLIDE_IN_COOKIE_PREFIX="inc_optin_slide_in_long_hidden-",Optin.SLIDE_IN_COOKIE_HIDE_ALL="inc_optin_slide_in_hide_all",Optin.global_mixin=function(){_.mixin({log:function(){console.log(arguments)},toBool:function(t){return _.isBoolean(t)?t:_.isString(t)&&["true","false","1"].indexOf(t.toLowerCase())!==-1?"true"===t.toLowerCase()||"1"===t.toLowerCase():_.isNumber(t)?!!t:!(_.isUndefined(t)||_.isNull(t)||_.isNaN(t))&&t},isTrue:function(t){return!(_.isUndefined(t)||_.isNull(t)||_.isNaN(t))&&(_.isNumber(t)?0!==t:(t=t.toString().toLowerCase(),["1","true","on"].indexOf(t)!==-1))},isFalse:function(t){return!_.isTrue(t)},control_base:function(t,e,i){return i=_.isUndefined(i)?"checked":i,t=_.toBool(t),e=_.isBoolean(t)?_.isTrue(e):e,_.isEqual(t,e)?i+"="+i:""},checked:function(t,e){return _.control_base(t,e,"checked")},selected:function(t,e){return _.control_base(t,e,"selected")},disabled:function(t,e){return _.control_base(t,e,"disabled")},"class":function(t,e,i){return _.isTrue(t)?e:"undefined"!=typeof i?i:""},add_class:function(t,e,i){return"class={class}".replace("{class}",_["class"](t,e,i))},toUpperCase:function(t){return _.isString(t)?t.toUpperCase():""}}),_.findKey||_.mixin({findKey:function(t,e,i){e=cb(e,i);for(var n,s=_.keys(t),o=0,a=s.length;o<a;o++)if(n=s[o],e(t[n],n,t))return n}})},Optin.global_mixin(),Backbone.Model.prototype.toJSON=function(){var t=_.clone(this.attributes);for(var e in t)(t[e]instanceof Backbone.Model||Backbone.Collection&&t[e]instanceof Backbone.Collection)&&(t[e]=t[e].toJSON());return t},String.prototype.toInt=function(){return parseInt(this,10)},String.prototype.isEmpty=function(){return 0===this.length||!this.trim()},Optin.template=_.memoize(function(e){var i,n={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g};return function(s){return i=i||_.template(t("#"+e).html(),null,n),i(s).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}}),Optin.template_compat=_.memoize(function(e){var i;return function(n){return i=i||_.template(t("#"+e).html()),i(n).replace("/*<![CDATA[*/","").replace("/*]]>*/","")}}),Optin.cookie=Hustle.cookie,t(document).on("blur","input, textarea, select",function(){var e=t(this);e.is(":input[type=button], :input[type=submit], :input[type=reset]")||(e.val()&&e.val().trim&&""!==e.val().trim()?e.parent().addClass("wpoi-filled"):e.parent().removeClass("wpoi-filled"))}),Optin.Mixins={_mixins:{},_services_mixins:{},_desing_mixins:{},_display_mixins:{},add:function(t,e){this._mixins[t]=e},get_mixins:function(){return this._mixins},add_services_mixin:function(t,e){this._services_mixins[t]=e},get_services_mixins:function(){return this._services_mixins}}}(jQuery),Hustle.define("Modal",function(t){"use strict";return Backbone.View.extend({template:Optin.template("hustle-modal-tpl"),$mask:t('<div class="wph-modal--mask"></div>'),opts:{},data:{id:"",type:"popup",style:"",title:"",subtitle:"",content:"Content",animation_in:"",animation_out:"",position:""},events:{"click .wph-modal--close a":"hide","submit form":"fire_conversion_event","click .wph-modal--cta":"fire_conversion_event","click .wph-modal-never-see-again":"never_see_again"},initialize:function(t){return this.opts=_.extend({},this.opts,t),t.template&&(this.template=t.template),this.render(),this},render:function(){var t=_.extend({},this.data,this.model.toJSON());if(this.type_data=t.types[t.type],this.animation_in=t.animation_in=t.types[t.type].animation_in||t.animation_in,this.animation_out=t.animation_out=t.types[t.type].animation_out||t.animation_out,t.position=t.types[t.type].position||t.position,t=this.sanitize_cta_url(t),t=this.enable_fullscreen(t),t=this.handle_custom_size_cc(t),this.setElement(this.template(t)),this.$mask=this.$mask.clone(),this.$mask.on("click",_.bind(this.clicked_background,this)),this.$el.find("form").on("submit",_.bind(this.on_form_submit,this)),this.enable_body_scroll(t),window.hasOwnProperty("optin_vars")){var e=this.$el.find("a.wph-icon.i-close");e.length&&e.parent().hide()}return this},hide:function(e){var i=this;e&&e.preventDefault(),i.animation_in!==i.animation_out&&i.$el.removeClass(i.animation_in),_.delay(function(){i.animation_out&&!i.$el.hasClass(i.animation_out)&&i.$el.addClass(i.animation_out),_.delay(function(){i.$el.removeClass("wph-modal-show"),i.$el.prev(".wph-modal--mask").remove(),Hustle.Events.trigger("hide_modal",i),i.trigger("hidden"),_.isTrue(i.type_data.close_btn_as_never_see)&&e&&t(e.target).hasClass("wph-icon i-close")&&i.never_see_again(e)},550)},350),t("html").removeClass("no-scroll")},clicked_background:function(t){_.isTrue(this.type_data.not_close_on_background_click)||this.hide(t)},show:function(){var t=this;if(!window.hasOwnProperty("optin_vars")){var e=Hustle.consts.Module_Show_Count+this.model.get("type")+"-"+this.model.get("id"),i=Hustle.cookie.get(e);Hustle.cookie.set(e,i+1,90)}t.animation_in!==t.animation_out&&t.$el.removeClass(t.animation_out),_.delay(function(){t.$el.addClass("wph-modal-show"),t.trigger("shown",t,t.model.get("type")),Hustle.Events.trigger("show_modal",t,t.model.get("type")),_.delay(function(){t.animation_in&&!t.$el.hasClass(t.animation_in)&&t.$el.addClass(t.animation_in)},350)},550)},sanitize_cta_url:function(t){return t.cta_url&&(/^(f|ht)tps?:\/\//i.test(t.cta_url)||(t.cta_url="http://"+t.cta_url)),t},enable_fullscreen:function(t){if(t.fullscreen="",!t||"undefined"==typeof t.optin_provider||"undefined"==typeof t.type)return t;if("custom_content"==t.optin_provider&&"popup"==t.type){if("undefined"==typeof this.type_data.make_fullscreen)return t;_.isTrue(this.type_data.make_fullscreen)&&(t.fullscreen="wph-modal-popup-fullscreen")}return t},handle_custom_size_cc:function(t){return t.custom_size_attr="",t.custom_size_class="",t&&"undefined"!=typeof t.optin_provider?("custom_content"==t.optin_provider&&(_.isTrue(t.customize_size)&&(t.custom_size_class="wph-modal--custom",t.custom_size_attr+="data-custom_width="+t.custom_width+" data-custom_height="+t.custom_height),_.isTrue(t.border)&&(t.custom_size_attr+=" data-border="+t.border_weight)),t):t},enable_body_scroll:function(e){if(e&&"undefined"!=typeof e.optin_provider&&"undefined"!=typeof e.type&&"custom_content"==e.optin_provider&&"popup"==e.type){if("undefined"==typeof this.type_data.allow_scroll_page)return;_.isTrue(this.type_data.allow_scroll_page)?t("html").addClass("can-scroll"):t("html").addClass("no-scroll")}},fire_conversion_event:function(e){var i=t(e.target).hasClass("wph-modal--cta")?"cta":"form";Hustle.Events.trigger("cc_modal_converted",this,i),
2
+ this.trigger("converted",this,i)},never_see_again:function(e){e&&e.preventDefault(),window.hasOwnProperty("optin_vars")||Hustle.cookie.set(Hustle.consts.Never_See_Aagain_Prefix+this.model.get("type")+"-"+this.model.get("id"),this.model.get("id"),this.type_data.expiration_days),e&&!t(e.target).hasClass("wph-icon i-close")&&this.hide()},on_form_submit:function(e){var i=this,n=t(e.target),s=this.type_data.on_submit;switch(s){case"close":i.hide();break;case"redirect":window.location.replace(n.attr("action"));break;case"default":}}})}),function(t,e,i){var n=function(t,e,i){if("immediately"===e.trigger_on_time&&i.display(),"time"===e.trigger_on_time){var n;switch(e.appear_after_time_unit){case"minutes":n=60*parseInt(e.appear_after_time_val,10)*1e3;break;case"hours":n=60*parseInt(e.appear_after_time_val,10)*60*1e3;break;default:n=1e3*parseInt(e.appear_after_time_val,10)}_.delay(function(){i.display()},n)}},s=function(n,s,o){var a=!1;if("scrolled"===s.appear_after&&t(i).scroll(_.debounce(function(){a||100*i.pageYOffset/t(e).height()>=parseInt(s.appear_after_page_portion_val,10)&&(o.display(),a=!0)},50)),"selector"===s.appear_after){var r=t(s.appear_after_element_val);r.length&&t(i).scroll(_.debounce(function(){a||i.pageYOffset>=r.position().top&&(o.display(),a=!0)},50))}},o=function(i,n,s){if(""!==t.trim(n.trigger_on_element_click)){var o=t(t.trim(n.trigger_on_element_click));o.length&&t(e).on("click",t.trim(n.trigger_on_element_click),s.display)}t(e).on("click",".inc_opt_hustle_shortcode_trigger",function(e){e.preventDefault(),t(this).data("id")==i.data.optin_id&&s.display()})},a=function(i,n,s){_.isTrue(n.trigger_on_exit)&&(Optin.listen_to_exit_intend(),_.isTrue(n.on_exit_trigger_once_per_session)?t(e).one("wpoi:exit_intended",s.display):t(e).on("wpoi:exit_intended",s.display))},r=function(t,e,i){if(_.isTrue(e.trigger_on_adblock)){if(!Optin.is_adblock_enabled())return;if(_.isTrue(e.trigger_on_adblock_timed)){var n;switch(e.trigger_on_adblock_timed_unit){case"minutes":n=60*parseInt(e.trigger_on_adblock_timed_val,10)*1e3;break;case"hours":n=60*parseInt(e.trigger_on_adblock_timed_val,10)*60*1e3;break;default:n=1e3*parseInt(e.trigger_on_adblock_timed_val,10)}_.delay(function(){i.display()},n)}else i.display()}};Optin.Triggers={time:n,scroll:s,scrolled:s,click:o,exit_intent:a,adblock:r}}(jQuery,document,window),function(t){t(document).on("wpoi:display",function(e,i,n,s){var o="wpoi-optin-{type}-shown-count-".replace("{type}",i)+s.data.optin_id,a=Optin.cookie.get(o)||0;i&&s.settings[i].is_test;Optin.cookie.set(o,a+1,30),null!=s.data.tracking_types&&_.isTrue(s.data.tracking_types[i])&&t.ajax({type:"POST",url:inc_opt.ajaxurl,dataType:"json",data:{action:"inc_opt_optin_viewed",data:{optin_id:s.data.optin_id,page_type:inc_opt.page_type,page_id:inc_opt.page_id,type:i,uri:encodeURI(window.location.href)}},success:function(t){}})}),t(document).on("wpoi:cc_shortcode_or_widget_viewed",function(t,e,i){"undefined"!=typeof Optin.CC_log_view&&(Optin.CC_log_view.set("type",e),Optin.CC_log_view.set("id",i),Optin.CC_log_view.save())})}(jQuery),function(t){Optin=Optin||{},Optin.handle_scroll=function(e,i,n){var s=t(window),o=t(document);s.on("scroll",_.debounce(function(t){var a=e[0],r=a.getBoundingClientRect();r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)&&(s.off(t),e.addClass("wpoi-show"),o.trigger("wpoi:display",[i,e,n]))},5,!0))},Optin.handle_cc_scroll=function(e,i,n){var s=t(window),o=t(document);s.on("scroll",_.debounce(function(t){var a=e[0],r=a.getBoundingClientRect();if(r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)){s.off(t);var l=_.find(Hustle_Custom_Contents,function(t){return n==t.content.optin_id});if(!l)return;null!=l.tracking_types&&_.isTrue(l.tracking_types[i])&&o.trigger("wpoi:cc_shortcode_or_widget_viewed",[i,n])}},5,!0))}}(jQuery),function(t){function e(e,i){var n=e.find(".required"),s=(t('<i class="wphi-font wphi-error"></i>'),[]);return t(".wpoi-field-error").remove(),n.each(function(){var e=t(this),n=e.attr("name")+"_error";return i?(e.next("label").find("i.wphi-font").addClass("wphi-error"),s.push(e),s):void(_.isEmpty(this.value)||e.is("[type='email']")&&!this.value.trim().match(/^[\S]+\@[a-zA-Z0-9\-]+\.[\S]{2,}$/gi)?(e.next("label").find("i.wphi-font").addClass("wphi-error"),s.push(e)):t("."+n).remove())}),0===s.length}t(document).on("submit",".inc_optin form",function(i){i.preventDefault();var n=t(i.target),s=n.find("button"),o=n.closest(".inc_optin"),a=o.data("handle"),r=o.data("delay_id"),l=Optins[a],c=this,h=(t(this).closest(".wpoi-optin > .wpoi-container"),n.closest(".inc_optin").data("type")),d=h&&l.settings[h].is_test,p=t("<span class='wpoi-submit-failure'>"+inc_opt.l10n.submit_failure+"</span>");n.parent().find(".wpoi-submit-failure").remove(),_.isUndefined(r)||clearTimeout(r),!n.data("sending")&&e(n,d)&&(s.attr("disabled",!0),s.addClass("loading"),n.addClass("loading"),n.data("sending",!0),t.ajax({type:"POST",url:inc_opt.ajaxurl,dataType:"json",data:{action:"inc_opt_submit_opt_in",data:{form:n.serialize(),optin_id:l.data.optin_id,page_type:inc_opt.page_type,page_id:inc_opt.page_id,uri:encodeURI(window.location.href),type:h}},success:function(e){if(e&&e.success){var i=n.closest(".wpoi-hustle");if(l.design.hasOwnProperty("on_submit")&&"page_redirect"===l.design.on_submit)window.location.replace(l.design.page_redirect_url);else if("mailchimp"===l.data.optin_provider&&"undefined"!=typeof e.data.existing&&i.find(".wpoi-success-message .wpoi-content p").html(e.data.message),i.find(".wpoi-success-message").addClass("wpoi-show-message"),l.design.hasOwnProperty("on_success")&&"autoclose"===l.design.on_success){var s=parseInt(l.design.on_success_time),o=l.design.on_success_unit;"m"===o&&(s*=60),s*=1e3,_.delay(function(){var e=t(c).closest(".inc_optin").find(".inc-opt-close-popup");e.length>0?e.trigger("click"):i.find(".wpoi-success-message").removeClass("wpoi-show-message")},s)}}else{var a="";a=e.data?t.isArray(e.data)?e.data.pop():e.data:inc_opt.l10n.submit_failure,p.html(a?a:inc_opt.l10n.submit_failure),n.after(p)}},error:function(){n.after(p)},complete:function(){s.attr("disabled",!1),n.removeClass("loading"),s.removeClass("loading"),n.data("sending",!1)}}))});var i=function(){var e=t(this),i=e.parents(".wpoi-hustle"),n=(t("form",i),t(".wpoi-success-message",i));n.removeClass("wpoi-show-message")};t(document).on("click",".wpoi-success-close",i)}(jQuery);var Optin=Optin||{};!function(t,e){"use strict";function i(){var e=r.height(),i=r.scrollTop(),n=i+e;t.each(a,function(){var e=t(this),s=e.outerHeight(),o=e.offset().top,a=o+s;a>=i&&o<=n?e.addClass("in-view"):e.removeClass("in-view")})}function n(e,i,n,o){"mailchimp"===o.data.optin_provider&&s(o),"wpoi:display"!==e.type&&"wpoi:cc_display"!==e.type||"popup"!==i?(t(".wpoi-hustle").each(function(){var e=t("popup"===i?window:this),n=t(this);e.width()<=405?n.find(".wpoi-optin").addClass("wpoi-small"):n.find(".wpoi-optin").removeClass("wpoi-small"),e.width()<=585&&e.width()>405?n.find(".wpoi-optin").addClass("wpoi-medium"):n.find(".wpoi-optin").removeClass("wpoi-medium")}),t(".wph-modal").each(function(){var e=t(this).parent(),i=t(this);"widget"!==e.data("type")&&"shortcode"!==e.data("type")||(e.width()<=405?i.addClass("wph-modal--small"):i.removeClass("wph-modal--small"))})):!function(){var e=t("popup"===i?window:this),s=n.find(".wpoi-hustle");e.width()<=405?s.find(".wpoi-optin").addClass("wpoi-small"):s.find(".wpoi-optin").removeClass("wpoi-small"),e.width()<=585&&e.width()>405?s.find(".wpoi-optin").addClass("wpoi-medium"):s.find(".wpoi-optin").removeClass("wpoi-medium")}(),t(".wpoi-mcg-select").each(function(){t(this).parent(".wpoi-provider-args > .wpoi-container > .wpoi-element:nth-child(2) > .wpoi-container > .wpoi-element").css({padding:"0",background:"transparent"})}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small) .nocontent:not(.noimage)").each(function(){var e=t(this),i=e.find(".wpoi-aside-x").prev(".wpoi-element"),n=e.find(".wpoi-aside-x").prev(".wpoi-element").find(".wpoi-container.wpoi-col");n.css("height",i.height())}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-x"),n=e.find(".wpoi-image").next(".wpoi-element"),s=i.prev(".wpoi-element"),o=e.find(".wpoi-content"),a=s.find(".wpoi-col"),r=e.find("form");r.height()>o.height()&&(a.css("height",i.height()+"px"),n.addClass("wpoi-align"),o.addClass("wpoi-align-element")),r.height()<o.height()&&(i.css("height",s.height()+"px"),i.addClass("wpoi-align"),r.addClass("wpoi-align-element"))}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-x"),n=i.prev(".wpoi-element"),s=e.find("form");s.height()<n.height()&&(i.css("height",n.height()),i.addClass("wpoi-align"),s.addClass("wpoi-align-element"))}),t(".wpoi-layout-three .wpoi-optin:not(.wpoi-small)").each(function(){var e=t(this),i=e.find("form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)");i.addClass("wpoi-grouped-element");for(var n=0;n<i.length;n+=2)i.slice(n,n+2).wrapAll('<div class="wpoi-element wpoi-grouped-element" style="background-color: transparent;"><div class="wpoi-container"></div></div>')}),t(".wpoi-layout-four .wpoi-optin:not(.wpoi-small)").each(function(){var e=t(this),i=e.find("form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)");i.addClass("wpoi-grouped-element");for(var n=0;n<i.length;n+=2)i.slice(n,n+2).wrapAll('<div class="wpoi-element wpoi-grouped-element" style="background-color: transparent;"><div class="wpoi-container"></div></div>')}),t(".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-xl"),n=e.find(".wpoi-aside-xl > .wpoi-container"),s=i.find(".wpoi-form"),o=i.find("form"),a=i.next(".wpoi-element"),r=a.find(".wpoi-content");r.height()>o.height()&&(n.css("height",i.height()+"px"),s.addClass("wpoi-align"),o.addClass("wpoi-align-element")),r.height()<o.height()&&(a.css("height",n.height()+"px"),a.addClass("wpoi-align"),r.addClass("wpoi-align-element"))}),t(".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)").each(function(){var e=t(this),i=e.find(".wpoi-aside-xl"),n=e.find(".wpoi-aside-xl > .wpoi-container"),s=e.find(".wpoi-image"),o=i.find(".wpoi-form"),a=i.find("form"),r=i.next(".wpoi-element"),l=e.find(".wpoi-content");l.height()>n.height()&&(n.css("height",i.height()+"px"),o.css("height",n.height()-s.height()),o.addClass("wpoi-align"),a.addClass("wpoi-align-element")),l.height()<n.height()&&(r.css("height",i.height()+"px"),r.addClass("wpoi-align"),l.addClass("wpoi-align-element"))}),t(".wph-modal").each(function(){var e=t(this),i=e.find(".wph-modal--content"),n=e.find(".wph-modal--content > section"),s=i.find("section > figure"),o=e.find(".wph-modal--content > figure"),a=s.find("img"),r=o.find("img"),l=e.hasClass("wph-modal--cabriolet")&&(s.hasClass("wph-modal--image_full")||s.hasClass("wph-modal--image")&&a.height()<s.height()),c=e.hasClass("wph-modal--simple")&&(o.hasClass("wph-modal--image_full")||o.hasClass("wph-modal--image")&&r.height()<o.height()),h=e.hasClass("wph-modal--minimal")&&(s.hasClass("wph-modal--image_full")||s.hasClass("wph-modal--image")&&a.height()<s.height());(l||h)&&a.css({height:n.height()+"px",width:n.width()+"px"}),c&&r.css({height:i.height()+"px",width:i.width()+"px"});var d=e.find(".wph-modal--content header"),_=e.find(".wph-modal--content footer"),p=e.find(".wph-modal--content"),u=e.find(".wph-modal--content .wph-modal--message"),g=e.find(".wph-modal--content section"),f=e.find(".wph-modal--content .wph-modal--image"),m=e.find(".wph-modal--content .wph-modal--image img"),v=parseInt(e.data("custom_width")),w=parseInt(e.data("custom_height")),y=2*parseInt(e.data("border"));y=isNaN(y)?0:y,v&&w&&(e.css("width",v+"px"),e.css("max-width","none"),e.hasClass("wph-modal--cabriolet")&&(u.outerHeight(w-d.outerHeight(!0)-y),f.outerHeight(u.outerHeight(!0)),m.outerHeight(u.outerHeight(!0))),e.hasClass("wph-modal--simple")&&(p.outerHeight(w),f.outerHeight(p.height()),m.outerHeight(p.height())),e.hasClass("wph-modal--minimal")&&(g.outerHeight(w-(d.outerHeight(!0)+_.outerHeight(!0))-y),f.outerHeight(g.outerHeight(!0)),m.outerHeight(g.outerHeight(!0))))}),t(".wph-cc-shortcode").each(function(){var e=t(this),i=e.find(".wph-cc-shortcode--content"),n=e.find(".wph-cc-shortcode--content > section"),s=i.find("section > figure"),o=e.find(".wph-cc-shortcode--content > figure"),a=s.find("img"),r=o.find("img"),l=e.hasClass("wph-cc-shortcode--cabriolet")&&(s.hasClass("wph-cc-shortcode--image_full")||s.hasClass("wph-cc-shortcode--image")&&a.height()<s.height()),c=e.hasClass("wph-cc-shortcode--simple")&&(o.hasClass("wph-cc-shortcode--image_full")||o.hasClass("wph-cc-shortcode--image")&&r.height()<o.height()),h=e.hasClass("wph-cc-shortcode--minimal")&&(s.hasClass("wph-cc-shortcode--image_full")||s.hasClass("wph-cc-shortcode--image")&&a.height()<s.height());(l||h)&&a.css({height:n.height()+"px",width:n.width()+"px"}),c&&r.css({height:i.height()+"px",width:i.width()+"px"})})}function s(e){"undefined"!=typeof e.provider_args&&"undefined"!=typeof e.provider_args.group||t(".inc_optin_"+e.data.optin_id+" .wpoi-element .wpoi-button").each(function(){var e=t(this),i=e.clone(),n=e.closest(".wpoi-element.wpoi-provider-args"),s=n.siblings(".wpoi-mcg-common-fields");s.find(".wpoi-container").append(i),n.remove()})}function o(t){var e={};return e.custom_size_attr="",e.custom_size_class="",t.customize_size&&_.isTrue(t.customize_size)&&(e.custom_size_class="wph-modal--custom",e.custom_size_attr+="data-custom_width="+t.custom_width+" data-custom_height="+t.custom_height),t.border&&_.isTrue(t.border)&&(e.custom_size_attr+=" data-border="+t.border_weight),e}t.each(["show","hide"],function(e,i){var n=t.fn[i];t.fn[i]=function(){return this.trigger(i),n.apply(this,arguments)}}),Optin.popup_overlay_delay=750,Optin.get_tpl=function(t,e){var i=["optin-layout-one","optin-layout-two","optin-layout-three","optin-layout-four"];return e?Optin.template_compat(i[t]):Optin.template(i[t])},Optin.popup={shown:[],hidden:[],long_hidden:[],is_already_shown:function(t){return-1!==this.shown.indexOf(t)},is_long_hidden:function(t){return!!Optin.cookie.get(Optin.POPUP_COOKIE_PREFIX+t.id)},show:function(t){return!this.is_long_hidden(t)&&(this.is_already_shown(t.id)?void 0:t.show())}};var a=t(".inc_opt_inline_wrap"),r=t(window);t(e).on("wpoi:display",_.debounce(n,100,!1)),t(e).on("wpoi:cc_display",_.debounce(n,100,!1)),t(window).on("resize",_.debounce(n,100,!1)),r.on("scroll resize",_.debounce(i,100,!1)),r.trigger("scroll"),t(document).on("blur","input, textarea, select",function(){var e=t(this);e.is(":input[type=button], :input[type=submit], :input[type=reset]")||(""!==e.val().trim()?e.parent().addClass("wpoi-filled"):e.parent().removeClass("wpoi-filled"))}),t(document).on("focus",".wpoi-optin input.required",function(){t(this).next("label").find("i.wphi-font").removeClass("i-error")}),Optin.render_provider_args=function(e){if(_.isEmpty(e.provider_args)||_.isEmpty(e.data.optin_provider))return"";var i=Optin.template("optin-"+e.data.optin_provider+"-args");return e.provider_args.cta_button=e.design.cta_button,t("#optin-"+e.data.optin_provider+"-args").length?i(e.provider_args):""},Optin.render_optin=function(i,n){var s=!("undefined"==typeof n||!n),o=_.templateSettings;s&&(Optin.global_mixin(),_.templateSettings={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});var a=parseInt(i.design.form_location),r=Optin.get_tpl(a,s),l=function(){return!("mailchimp"!==i.data.optin_provider||!i.provider_args)},c=_.extend({image_style:"",has_args:l()},i.design,i.design.borders,i.data),h=r(c);return s&&(_.templateSettings=o),t(e).trigger("wpoi:layout:rendered"),h},Optin.render_cc_shortcode=function(i,n){var s=!("undefined"==typeof n||!n),a=[],r=_.templateSettings;a[i.type]={add_never_see_link:""},s&&(Optin.global_mixin(),_.templateSettings={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g});var l=s?Optin.template_compat("hustle-modal-tpl"):Optin.template("hustle-modal-tpl"),c=l(_.extend({type:i.type,id:i.content.optin_id,position:"",animation_in:"",fullscreen:"",types:a},i.content,i.design,o(i.design)));return s&&(_.templateSettings=r),t(e).trigger("wpoi:layout:rendered"),t(e).trigger("wpoi:cc_display",i.type),c};var l=!1;Optin.listen_to_exit_intend=function(){l||(t(e).on("mouseleave",_.debounce(function(i){t(e).trigger("wpoi:exit_intended",i)},100,!0)),l=!0)};var c=!1;Optin.is_adblock_enabled=function(){if(!c)return!t("#hustle_optin_adBlock_detector").length}}(jQuery,document),function(t,e,i){"use strict";inc_opt.is_upfront||(Optin.View=Backbone.View.extend({isCC:!1,display_id:"display",showClass:"wpoi-show",maskShowClass:"inc_optin_",optin_id:"",type:"",settings:{},data:{},add_never_see_again:!1,appear_after:"time",mask:!1,should_remove:!1,parent:"body",anim_in_time:Optin.popup_overlay_delay,anim_out_time:2e3,viewed:!1,events:{click:"click","click .inc-opt-close-btn":"closed","click .inc_opt_never_see_again":"closed"},click:_.noop,initialize:function(t){this.key=t.key,this.opt=Optins[this.key],this.settings=this.opt.settings[this.type],this.data=this.opt.data,this.optin_id=this.data.optin_id,this.maskClass="inc_optin_"+this.optin_id+" "+this.maskClass,this.add_never_see_again=_.isTrue(this.settings.add_never_see_this_message),this.appear_after=this.settings.appear_after,this.cookie_key=("popup"===this.type?Optin.POPUP_COOKIE_PREFIX:Optin.SLIDE_IN_COOKIE_PREFIX)+this.optin_id,this.expiration_days=parseInt(this.settings.never_see_expiry,10),this.triggers={on_time:this.settings.trigger_on_time,on_time_delay:this.settings.appear_after_time_val,on_time_unit:this.settings.appear_after_time_unit,on_scroll:this.settings.appear_after_scroll,on_scroll_page_percent:parseInt(this.settings.appear_after_page_portion_val),on_scroll_css_selector:this.settings.appear_after_element_val,on_click_element:this.settings.trigger_on_element_click,on_exit_intent:this.settings.trigger_on_exit,on_exit_intent_per_session:this.settings.on_exit_trigger_once_per_session,on_adblock:this.settings.trigger_on_adblock,on_adblock_delayed:this.settings.trigger_on_adblock_timed,on_adblock_delayed_time:this.settings.trigger_on_adblock_timed_val,on_adblock_delayed_unit:this.settings.trigger_on_adblock_timed_unit},this.should_display()&&((_.contains(["time","scrolled","adblock"],this.appear_after)||"exit_intent"===this.appear_after&&_.isTrue(this.settings.on_exit_trigger_once_per_session))&&(this.should_remove=!0),this.render())},should_display:function(){return _.isTrue(this.settings.display)&&!_.isTrue(Optin.cookie.get(this.cookie_key))},never_see_again:function(){Optin.cookie.set(this.cookie_key,this.optin_id,this.expiration_days)},fit:function(){var e=t(i).height(),n=e/100*65,s=this.$("header").outerHeight(),o=this.$(".wph-modal--message, .wph-modal--image"),a=n-s;if(this.$el.css("max-height",n),o.css("max-height",a),"popup"===this.type&&"cabriolet"!==this.settings.style){var r=(e-n)/2;r-=1.5*r,this.$el.css("margin-top",r+"px")}},render:function(){var e='<a href="#" aria-label="Close" class="inc-opt-close-btn inc-opt-close-'+this.type+'">&times;</a>';e+=Optin.render_optin(this.opt);var i={handle:this.key,type:this.type,popup:this.opt};this.add_never_see_again&&(e+='<div class="wpoi-nsa"><a class="inc_opt_never_see_again">%s</a></div>'.replace("%s",inc_opt.l10n.never_see_again)),this.settings.animation_in&&this.$el.addClass(this.settings.animation_in),this.$el.addClass(" inc_optin_"+this.optin_id),this.$el.html(e);var n=this.$(".wpoi-provider-args");return n.length&&n.html(Optin.render_provider_args(this.opt)),this.$el.appendTo(this.parent),this.$el.display=t.proxy(this,"display"),this.$el.on("show",t.proxy(this,"onShow")),this.$el.on("hide",t.proxy(this,"onHide")),this.$el.data(i),this.html=this.$el.html(),this[this.appear_after+"_trigger"](),this},display:function(){this.viewed=!0,this.$el.is("."+this.showClass)||(this.$el.html(this.html),this.$el.removeClass(this.settings.animation_out),this.add_mask(),this.animation_in(),this.$el.trigger("show",this))},add_mask:function(){var e=_.isFalse(this.settings.allow_scroll_page),i=_.isFalse(this.settings.not_close_on_background_click);_.delay(t.proxy(function(){e&&t("html").addClass("no-scroll"),this.mask?this.mask.addClass("wpoi-show"):(this.mask=t('<div class="'+this.maskClass+' wpoi-overlay-mask wpoi-animate fadein"><div class="wpoi-'+this.type+'-overlay"></div></div>'),this.mask.insertBefore(this.$el).addClass("wpoi-show"),i&&this.mask.on("click",t.proxy(this,"closed")))},this),Optin.popup_overlay_delay)},animation_in:function(){var t=this,e=_.isFalse(t.viewed);this.settings.animation_in&&this.$el.addClass(this.settings.animation_in),_.delay(function(){e||(t.$el.addClass(t.showClass),t.settings.animation_out?t.settings.animation_in?_.delay(function(){t.$el.removeClass(t.settings.animation_in),t.$el.addClass(t.settings.animation_out)},350):t.$el.addClass(t.settings.animation_out):t.settings.animation_in&&_.delay(function(){t.$el.removeClass(t.settings.animation_in)},350))},Optin.popup_overlay_delay)},time_trigger:function(){if("immediately"==this.triggers.on_time)this.display();else{var e=1e3*parseInt(this.triggers.on_time_delay,10);"minutes"===this.triggers.on_time_unit?e*=60:"hours"===this.triggers.on_time_unit&&(e*=3600),_.delay(t.proxy(this,"display"),e)}},click_trigger:function(){var i=this,n="";if(""!==(n=t.trim(this.triggers.on_click_element))){var s=t(n);s.length&&t(e).on("click",n,function(t){t.preventDefault(),i.display()})}t(e).on("click",".inc_opt_hustle_shortcode_trigger",function(e){e.preventDefault(),t(this).data("id")==i.data.optin_id&&t(this).data("type")==i.type&&i.display()})},scroll_trigger:function(){var n=this,s=!1;if("scrolled"===this.triggers.on_scroll&&t(i).scroll(_.debounce(function(){s||100*i.pageYOffset/t(e).height()>=parseFloat(n.triggers.on_scroll_page_percent)&&(n.display(),s=!0)},50)),"selector"===this.triggers.on_scroll){var o=t(this.triggers.on_scroll_css_selector);o.length&&t(i).scroll(_.debounce(function(){s||i.pageYOffset>=o.position().top&&(n.display(),s=!0)},50))}},scrolled_trigger:function(){return this.scroll_trigger()},exit_intent_trigger:function(){_.isTrue(this.triggers.on_exit_intent)&&(_.isTrue(this.triggers.on_exit_intent_per_session)?Hustle.Events.once("exit_intended",t.proxy(this,"display")):Hustle.Events.on("exit_intended",t.proxy(this,"display")))},adblock_trigger:function(){var e=!t("#hustle_optin_adBlock_detector").length;if(e&&_.isTrue(this.triggers.on_adblock))if(_.isFalse(this.triggers.on_adblock_delayed))this.display();else{var i=1e3*parseInt(this.triggers.on_adblock_delayed_time,10);"minutes"===this.triggers.on_adblock_delayed_unit?i*=60:"hours"===this.triggers.on_adblock_delayed_unit&&(i*=3600),_.delay(t.proxy(this,"display"),i)}},closed:function(i){var n=this,s=t(i.currentTarget),o=this.isCC?_.isTrue(this.settings.close_btn_as_never_see):_.isTrue(this.settings.close_button_acts_as_never_see_again);return this.viewed=!1,this.$el.removeClass("wpoi-show"),(s.is(".wph-modal--close .wph-icon, .inc-opt-close-"+this.type)&&o||s.is(".inc_opt_never_see_again,.wph-modal-never-see-again"))&&this.never_see_again(),_.delay(function(){n.viewed||(n.$el.removeClass(n.showClass),"undefined"!=typeof n.mask&&n.mask&&n.mask.removeClass("wpoi-show"))},Optin.popup_overlay_delay),this.settings.animation_in&&(this.settings.animation_out?_.delay(function(){n.viewed||(n.$el.removeClass(n.settings.animation_out),n.$el.addClass(n.settings.animation_in))},1e3):this.$el.addClass(this.settings.animation_in)),this.settings.animation_out||(this.$el.hide(),_.defer(function(){(n.$el[0].style||{}).display=""})),_.isTrue(this.settings.close_button_acts_as_never_see_again)&&_.isTrue(this.settings.trigger_on_exit)&&t(e).off("wpoi:exit_intended"),this.settings.animation_out?_.delay(function(){n.viewed||n.clean()},1100):n.clean(),_.isFalse(this.settings.allow_scroll_page)&&t("html").removeClass("no-scroll"),this.$el.trigger("hide",this),!1},clean:function(){this.$el.html(""),this.should_remove&&(this.$el.remove(),"undefined"!=typeof this.mask&&this.mask&&this.mask.remove())},onShow:function(){t(document).trigger("wpoi:"+this.display_id,[this.type,this.$el,this.opt])},onHide:function(){t(document).trigger("wpoi:hide",[this.type,this.$el,this.opt])}}))}(jQuery,document,window),function(t,e,i){"use strict";if(!inc_opt.is_upfront){var n=window.Optin||{},s=Backbone.Model.extend({url:inc_opt.ajaxurl+"?action=hustle_custom_content_viewed",defaults:{page_type:inc_opt.page_type,page_id:inc_opt.page_id,type:"",uri:encodeURI(window.location.href)},parse:function(t){t.success?console.log("Log success!"):console.log("Log failed!")}}),o=s.extend({url:inc_opt.ajaxurl+"?action=hustle_custom_content_converted"});s=new s,o=new o,n.CC_log_view=s,n.CC_log_conversion=o,n.CCPopUp=n.View.extend({isCC:!0,display_id:"cc_display",showClass:"wph-modal-show",maskClass:"wph-modal--mask",cookie_key:Hustle.consts.Never_See_Aagain_Prefix,events:{click:"click","click .wph-modal--close .wph-icon":"closed","click .wph-modal--cta":"fire_conversion_event","click .wph-modal-never-see-again":"closed","submit form":"on_form_submit"},initialize:function(t){this.opt=t,this.type=t.type,this.data=t.content,this.optin_id=this.data.optin_id,this.settings=t[this.type],this.triggers=this.settings.triggers,this.tracking_types=t.tracking_types,this.appear_after=this.triggers.trigger+"_trigger",this.cookie_key+=this.type+"-"+this.optin_id,this.expiration_days=this.settings.expiration_days?parseInt(this.settings.expiration_days):0,this.settings.display=this.opt.should_display[this.type],this.should_display()&&(this.model=_.extend(this.settings,t.design,this.data,{id:this.optin_id,type:this.type,position:this.settings.position,types:{popup:t.popup,slide_in:t.slide_in,after_content:t.after_content}}),(_.contains(["time","scrolled","adblock"],this.triggers.trigger)||"exit_intent_trigger"===this.appear_after&&_.isTrue(this.settings.on_exit_intent_per_session))&&(this.should_remove=!0),this.render())},render:function(){this.model=_.extend(this.model,this.handle_custom_size(this.model),this.enable_fullscreen(this.model),this.sanitize_cta_url(this.model));var e=n.template("hustle-modal-tpl");e=e(this.model),this.setElement(e),this.$el.appendTo(this.parent),this.$el.display=t.proxy(this,"display"),this.$el.on("show",t.proxy(this,"onShow")),this.$el.on("show",t.proxy(Hustle.Events,"trigger","cc_modal_shown",this,this.type)),this.$el.on("hide",t.proxy(this,"onHide")),this.html=this.$el.html(),null!=this.tracking_types&&_.isTrue(this.tracking_types[this.type])&&Hustle.Events.once("cc_modal_shown",this.logView,this),Hustle.Events.once("cc_modal_shown",this.update_view_count_cookie,this),Hustle.Events.on("cc_modal_shown",this.fit,this),Hustle.Events.on("hustle_resize",this.fit,this),this[this.appear_after](),this.caldera_form_compat()},caldera_form_compat:function(){inc_opt.is_caldera_active&&"undefined"!=typeof calders_forms_init_conditions&&(calders_forms_init_conditions(),t(".caldera_forms_form").find("[data-field]").first().trigger("change"))},logView:function(){s.set("type",this.type),s.set("id",this.optin_id),s.save()},update_view_count_cookie:function(){if(!window.hasOwnProperty("optin_vars")){var t=Hustle.consts.Module_Show_Count+this.model.type+"-"+this.model.id,e=Hustle.cookie.get(t);Hustle.cookie.set(t,e+1,90)}},sanitize_cta_url:function(t){return t.cta_url&&(/^(f|ht)tps?:\/\//i.test(t.cta_url)||(t.cta_url="http://"+t.cta_url)),t},fire_conversion_event:function(e){var i=t(e.currentTarget).hasClass("wph-modal--cta")?"cta":"form";null!=this.tracking_types&&_.isTrue(this.tracking_types[this.type])&&(Hustle.Events.trigger("cc_modal_converted",this,i),o.set("id",this.optin_id),o.set("type",this.type),o.set("source",i),o.save())},enable_fullscreen:function(t){return t.fullscreen="","popup"===this.type&&this.settings.make_fullscreen&&(t.fullscreen="wph-modal-popup-fullscreen"),t},handle_custom_size:function(t){return t.custom_size_attr="",t.custom_size_class="",t.customize_size&&_.isTrue(t.customize_size)&&(t.custom_size_class="wph-modal--custom",t.custom_size_attr+="data-custom_width="+t.custom_width+" data-custom_height="+t.custom_height),t.border&&_.isTrue(t.border)&&(t.custom_size_attr+=" data-border="+t.border_weight),t},on_form_submit:function(e){var i=t(e.target),n=this.settings.on_submit;window.setTimeout(t.proxy(function(){if(!i.hasClass("wpcf7-form")||!i.hasClass("invalid"))switch(n){default:case"refresh_or_close":this.closed(e);break;case"close":case"close_after_form_submit":this.closed(e);break;case"redirect":case"redirect_to_form_target":window.location.replace(i.attr("action"));break;case"refresh_or_nothing":}},this),1500)}}),n.CCSlideIn=n.CCPopUp.extend({key_prefix:"",hide_all_key:"",delay_time:0,should_display:function(){this.key_prefix=Hustle.consts.Slide_Cookie_Prefix+this.optin_id,this.hide_all_key=Hustle.consts.Slide_Cookie_Hide_All+this.optin_id,this.delay_time="minutes"===this.settings.hide_after_unit?60*parseInt(this.settings.hide_after_val,10)*1e3:1e3*parseInt(this.settings.hide_after_val,10);var t=n.cookie.get(this.cookie_key);return _.isFalse(t)&&(t=n.cookie.get(this.key_prefix)),_.isFalse(t)&&(t=n.cookie.get(this.hide_all_key)),"keep_showing"===this.settings.after_close&&t&&(t=!1,n.cookie.set(this.cookie_key,this.optin_id,0),n.cookie.set(this.key_prefix,this.optin_id,0),n.cookie.set(this.hide_all_key,this.optin_id,0)),this.add_mask=_.noop,this.opt.should_display[this.type]&&!_.isTrue(t)},onShow:function(){if(_.isTrue(this.settings.hide_after)){var t=this;_.delay(function(){t.prevent_hide_after||(t.$el.removeClass(t.showClass),t.mask&&t.mask.trigger("click"))},this.delay_time)}n.CCPopUp.prototype.onShow.apply(this,arguments)},onHide:function(){var t=!1;"hide_all"===this.settings.after_close&&(n.cookie.set(this.key_prefix,this.optin_id,30),t=!0),"no_show"===this.settings.after_close&&(n.cookie.set(this.hide_all_key,this.optin_id,30),t=!0),t&&(this.mask&&this.mask.remove(),this.remove())},click:function(){this.prevent_hide_after=!0}}),n.CCAfterContent=n.CCPopUp.extend({should_display:function(){return _.isFalse(this.settings.animate)?this.settings.animation_in=this.settings.animation_out=!1:this.settings.animation_in=this.settings.animation_out=this.settings.animation,this.add_mask=_.noop,this.parent="#cc-"+this.opt.uniq_id,!0}})}}(jQuery,document,window),function(t){"use strict";inc_opt.is_upfront||(Optin=window.Optin||{},Optin.AfterContent=function(){var e,i=t(this),n=i.data("id");e=_.find(Optins,function(t){return n==t.data.optin_id}),i.data("handle",_.findKey(Optins,e)),i.data("type","after_content"),i.html(Optin.render_optin(e)),e.settings.after_content.animate&&"true"==e.settings.after_content.animate&&(i.addClass(e.settings.after_content.animation),_.delay(function(){i.addClass("wpoi-show")},750)),i.find(".wpoi-provider-args").html(Optin.render_provider_args(e)),t(document).trigger("wpoi:display",["after_content",i,e])})}(jQuery),function(t,e,i){"use strict";inc_opt.is_upfront||(Optin=window.Optin||{},Optin.PopUp=Optin.View.extend({className:"inc_opt_popup wpoi-animate inc_optin",type:"popup"}))}(jQuery,document,window),function(t,e,i){"use strict";inc_opt.is_upfront||(Optin=window.Optin||{},Optin.SlideIn=Optin.View.extend({className:"inc_opt_slidein inc_optin wpoi-slide",type:"slide_in",prevent_hide_after:!1,delay_time:0,should_display:function(){var t="popup"===this.type?Optin.POPUP_COOKIE_PREFIX:Optin.SLIDE_IN_COOKIE_PREFIX;t+=this.optin_id;var e=Optin.cookie.get(t);return this.add_mask=_.noop,
3
+ e||(e=Optin.cookie.get(Optin.SLIDE_IN_COOKIE_PREFIX+this.optin_id)),e||(e=Optin.cookie.get(Optin.SLIDE_IN_COOKIE_HIDE_ALL+this.optin_id)),"keep_showing"===this.settings.after_close&&e&&(e=!1,Optin.cookie.set(Optin.SLIDE_IN_COOKIE_PREFIX+this.optin_id,this.optin_id,0),Optin.cookie.set(Optin.SLIDE_IN_COOKIE_HIDE_ALL+this.optin_id,this.optin_id,0),Optin.cookie.set(t,this.optin_id,0)),_.isTrue(this.settings.display)&&!_.isTrue(e)},render:function(){var t="inc_opt_slidein inc_opt_slidein_"+this.settings.position+" inc_optin wpoi-slide";this.delay_time="minutes"===this.settings.hide_after_unit?60*parseInt(this.settings.hide_after_val,10)*1e3:1e3*parseInt(this.settings.hide_after_val,10),this.$el.addClass(t),Optin.View.prototype.render.apply(this,arguments)},onShow:function(){if(this.mask&&this.mask.removeClass("wpoi-show"),_.isTrue(this.settings.hide_after)){var t=this;_.delay(function(){t.prevent_hide_after||(t.$el.removeClass("wpoi-show"),t.$el.trigger("hide"))},this.delay_time)}Optin.View.prototype.onShow.apply(this,arguments)},onHide:function(){var t=!1;"hide_all"===this.settings.after_close&&(Optin.cookie.set(Optin.SLIDE_IN_COOKIE_HIDE_ALL,this.optin_id,30),t=!0),"no_show"===this.settings.after_close&&(Optin.cookie.set(Optin.SLIDE_IN_COOKIE_PREFIX+this.optin_id,this.optin_id,30),t=!0),t&&(this.mask&&this.mask.remove(),this.remove())},click:function(){this.prevent_hide_after=!0}}))}(jQuery,document,window),function(t,e,i){"use strict";var n=window.Optin||{};n.SS_log_view=Backbone.Model.extend({url:inc_opt.ajaxurl+"?action=hustle_social_sharing_viewed",defaults:{page_type:inc_opt.page_type,page_id:inc_opt.page_id,type:"",uri:encodeURI(window.location.href)},parse:function(t){t.success?console.log("Log success!"):console.log("Log failed!")}}),n.SS_log_conversion=n.SS_log_view.extend({url:inc_opt.ajaxurl+"?action=hustle_social_sharing_converted"}),n.SS_native_share_enpoints={facebook:"https://www.facebook.com/sharer/sharer.php?u=",twitter:"https://twitter.com/intent/tweet?url=",google:"https://plus.google.com/share?url=",pinterest:"https://www.pinterest.com/pin/create/button/?url=",reddit:"https://www.reddit.com/submit?url=",linkedin:"https://www.linkedin.com/shareArticle?mini=true&url=",vkontakte:"https://vk.com/share.php?url="},n.Social_Sharing=Backbone.View.extend({template:n.template("hustle-social-tpl"),events:{"click a.native-social-share":"click_social_native","click a.linked-social-share":"click_social_linked"},initialize:function(t){this.opts=t,this.optin_id=t.optin_id,this.services=t.services,this.appearance=t.appearance,this.floating_social=t.floating_social,this.is_compat="undefined"!=typeof t.is_compat,"undefined"!=typeof t.parent&&(this.parent=t.parent),this.model_json=_.extend({id:this.optin_id,display_type:this.display_type},this.services,this.appearance,this.floating_social),this.render()},render:function(e){var i=this.parent,s=this.model_json.location_align_x,o=this.model_json.location_align_y,a=_.templateSettings;if(this.is_compat&&(n.global_mixin(),_.templateSettings={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g}),this.setElement(this.template(_.extend({},this.model_json))),"floating_social"==this.module_display_type&&(i=t("content"==this.model_json.location_type?"#content":"selector"==this.model_json.location_type?this.model_json.location_target:"body")),0!=i.length){this.$el.appendTo(i);var r=t(".inc_social_sharing_widget_wrap .wph-social-sharing, .inc_social_sharing_shortcode_wrap .wph-social-sharing"),l="floating_social"===this.module_display_type?t(i).find(".wph-social-sharing-"+this.model_json.id).not(r):t(i).find(".wph-social-sharing-"+this.model_json.id),c=l.find(".wph-sshare--container");this._handle_icons_order(),_.each(this.model_json.social_icons,t.proxy(function(t,e){var i="one"==this.model_json.icon_style?n.template("wpoi-sshare-"+e+"-one-svg-front"):n.template("wpoi-sshare-"+e+"-svg-front"),s="native"==this.model_json.service_type?"#":this.sanitize_url(t.link),o="native"==this.model_json.service_type?"":'target="_blank"',a="linked-social-share",r=i();"native"==this.model_json.service_type&&(a="native-social-share",_.isTrue(this.model_json.click_counter)&&(r+='<div class="wph-sshare_social_counter"><span>'+t.counter+"</span></div>"));var l='<a data-social="'+e+'" class="'+a+'" href="'+s+'" '+o+" >"+r+"</a>";c.append(l)},this)),"floating_social"==this.module_display_type&&(l.addClass("wph-social-sharing-float"),"left"==s?l.css("left",this.model_json.location_left+"px"):l.css("right",this.model_json.location_right+"px"),"top"==o?l.css("top",this.model_json.location_top+"px"):l.css("bottom",this.model_json.location_bottom+"px")),"native"==this.model_json.service_type&&("floating_social"==this.module_display_type?"1"==this.model_json.floating_inline_count?c.addClass("wph-sshare--count_inline"):c.addClass("wph-sshare--count_block"):"1"==this.model_json.widget_inline_count?c.addClass("wph-sshare--count_inline"):c.addClass("wph-sshare--count_block")),this.is_compat&&(_.templateSettings=a),this.html=this.$el.html(),this.log_view(this.module_display_type,this.opts)}},_handle_icons_order:function(){var t={},e=this.model_json.social_icons,i=this.model_json.icons_order,n=i.split(",");i&&n.length&&(_.each(n,function(i,n){"undefined"!=typeof e[i]&&(t[i]=e[i],e=_.pick(e,function(t,e){if(i!==e)return e=t}))}),Object.keys(e).length&&(t=_.extend(t,_.pick(e,function(t,e){if("undefined"!=typeof t)return e=t}))),this.model_json.social_icons=t)},sanitize_url:function(t){return t&&(/^(f|ht)tps?:\/\//i.test(t)||(t="http://"+t)),t},click_social_native:function(e){e.preventDefault();var i=this,s=this.$(e.target),o=s.closest("a.native-social-share"),a=o.data("social");this._update_social_counter(o),t('a[data-social="'+a+'"]').not(o).each(function(){i._update_social_counter(t(this))}),this.log_conversion(this.module_display_type,this.opts,a,"native"),a&&"undefined"!=typeof n.SS_native_share_enpoints[a]&&window.open(n.SS_native_share_enpoints[a]+hustle_vars.current_url,"MsgWindow","menubar=no,toolbar=no,resizable=yes,scrollbars=yes")},click_social_linked:function(t){var e=this.$(t.target),i=e.closest("a.linked-social-share"),n=i.data("social");null!=this.opts.tracking_types&&_.isTrue(this.opts.tracking_types[this.module_display_type])&&this.log_conversion(this.module_display_type,this.opts,n,"linked")},_update_social_counter:function(t){_.delay(function(){var e=t.find(".wph-sshare_social_counter span");if(e.length){var i=parseInt(e.text())+1;e.text(i)}},5e3)},log_view:function(t,e){if(null!=e.tracking_types&&_.isTrue(e.tracking_types[t])&&"undefined"!=typeof n.SS_log_view){var i=new n.SS_log_view;i.set("type",t),i.set("id",e.optin_id),i.save()}if(!window.hasOwnProperty("optin_vars")){var s=Hustle.consts.SS_Module_Show_Count+t+"-"+e.optin_id,o=Hustle.cookie.get(s);Hustle.cookie.set(s,o+1,90)}},log_conversion:function(t,e,i,s){var o=!(null==e.tracking_types||!_.isTrue(e.tracking_types[t]));if("undefined"!=typeof n.SS_log_conversion){var a=new n.SS_log_conversion;a.set("type",t),a.set("id",e.optin_id),a.set("source",i+"_icon"),a.set("track",o),a.set("service_type",s),a.save()}}}),n.SS_floating=n.Social_Sharing.extend({module_display_type:"floating_social",display_type:"column"}),n.SS_widget=n.Social_Sharing.extend({module_display_type:"widget",display_type:"row"}),n.SS_shortcode=n.Social_Sharing.extend({module_display_type:"shortcode",display_type:"row"})}(jQuery,document,window),function(t){"use strict";Optin=Optin||{},Optin.handle_cc_shortcode_conversion=function(e,i){var n=(t(window),t(document));t(n).on("click","a.wph-cc-shortcode--cta",function(t){"undefined"!=typeof Optin.CC_log_conversion&&(Optin.CC_log_conversion.set("id",e),Optin.CC_log_conversion.set("type",i),Optin.CC_log_conversion.set("source","cta"),Optin.CC_log_conversion.save())})},Optin.inc_opt_render_widgets=function(e){t(".inc_cc_widget_wrap, .inc_cc_shortcode_wrap").each(function(){var i=t(this),n=i.data("id"),s=i.is(".inc_cc_widget_wrap")?"widget":"shortcode";if(n){var o=_.find(Hustle_Custom_Contents,function(t){return n==t.content.optin_id});if(o){var a=t.parseJSON(o.settings);if(null!==a&&_.isTrue(a[s].enabled)){i.data("handle",_.findKey(Hustle_Custom_Contents,o)),i.data("type",s),o.design.cta_url&&(/^(f|ht)tps?:\/\//i.test(o.design.cta_url)||(o.design.cta_url="http://"+o.design.cta_url)),o.type=s;var r=Optin.render_cc_shortcode(o,e);i.html(r),null!==o.tracking_types&&_.isTrue(o.tracking_types[s])&&(_.delay(function(){t(document).trigger("wpoi:cc_shortcode_or_widget_viewed",[s,n])},_.random(0,300)),Optin.handle_cc_shortcode_conversion(n,s))}}}}),t(".inc_opt_widget_wrap, .inc_opt_shortcode_wrap").each(function(){var i=t(this),n=i.data("id"),s=i.is(".inc_opt_widget_wrap")?"widget":"shortcode";if(n){var o=_.find(Optins,function(t){return n==t.data.optin_id});if(o){i.data("handle",_.findKey(Optins,o)),i.data("type",s);var a=Optin.render_optin(o,e);i.html(a),i.find(".wpoi-provider-args").html(Optin.render_provider_args(o)),_.delay(function(){t(document).trigger("wpoi:display",[s,i,o])},_.random(0,300))}}}),t(".inc_social_sharing_widget_wrap, .inc_social_sharing_shortcode_wrap").each(function(){var i=t(this),n=i.data("id"),s=i.is(".inc_social_sharing_widget_wrap")?"widget":"shortcode";if(n){var o=_.find(Hustle_SS_Modules,function(t){return n==t.optin_id});if(o){var a=t.parseJSON(o.settings);null!==a&&_.isTrue(a[s].enabled)&&(o.parent=i,"undefined"!=typeof e&&e&&(o.is_compat=!0),i.html(""),"widget"==s?new Optin.SS_widget(o):new Optin.SS_shortcode(o))}}})},Optin.inc_opt_render_widgets(!1),Hustle.Events.on("upfront:editor:widget:render",function(t){Optin.inc_opt_render_widgets(!0)}),Hustle.Events.on("upfront:editor:shortcode:render",function(t){Optin.inc_opt_render_widgets(!0)})}(jQuery),function(t,e,i){"use strict";inc_opt.is_upfront||(t(e).on("mouseleave",t.proxy(Hustle.Events,"trigger","exit_intended")),t(window).on("resize",t.proxy(Hustle.Events,"trigger","hustle_resize")),t.each(_.keys(Optins),function(e,i){var n=Optins[i],s=n.settings,o=n.data.optin_id,a={key:i};if(s.popup&&s.popup.enabled&&!_.isTrue(Optin.cookie.get(Optin.POPUP_COOKIE_PREFIX+o))&&new Optin.PopUp(a),s.slide_in&&s.slide_in.enabled&&!_.isTrue(Optin.cookie.get(Optin.SLIDE_IN_COOKIE_HIDE_ALL))&&new Optin.SlideIn(a),s.after_content&&s.after_content.enabled){var r=t('[data-id="'+o+'"]').filter(function(){return t(this).is(".inc_opt_after_content_wrap")});r.length&&r.each(Optin.AfterContent)}}),t.each(Hustle_Custom_Contents,function(t,e){e.id=t,e.should_display&&(_.isTrue(e.should_display.popup)&&_.isTrue(e.popup.enabled)&&(e.type="popup",new Optin.CCPopUp(e)),_.isTrue(e.should_display.slide_in)&&_.isTrue(e.slide_in.enabled)&&(e.type="slide_in",new Optin.CCSlideIn(e)),e.after_content&&_.isTrue(e.should_display.after_content)&&_.isTrue(e.after_content.enabled)&&(e.type="after_content",e.uniq_id=t,new Optin.CCAfterContent(e)))}),_.each(Hustle_SS_Modules,function(t,e){_.isTrue(t.floating_social.enabled)&&_.isTrue(t.is_floating_social_allowed)&&new Optin.SS_floating(t)}))}(jQuery,document,window);
4
  //# sourceMappingURL=maps/front.min.js.map
assets/js/front/front_utils.js CHANGED
@@ -69,6 +69,12 @@ var Optin = Optin || {};
69
  }
70
 
71
  function add_proper_classes(e, type, $popup, data){
 
 
 
 
 
 
72
  if( ( e.type === "wpoi:display" || e.type === "wpoi:cc_display" ) && type === "popup" ){
73
  (function (){
74
  var $parent = type === "popup" ? $(window) : $(this),
@@ -340,6 +346,25 @@ var Optin = Optin || {};
340
  }
341
  });
342
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
 
344
  $(doc).on("wpoi:display", _.debounce(add_proper_classes, 100, false));
345
  $(doc).on("wpoi:cc_display", _.debounce(add_proper_classes, 100, false));
69
  }
70
 
71
  function add_proper_classes(e, type, $popup, data){
72
+
73
+ // relocate mailchimp submit button if no groups
74
+ if ( data.data.optin_provider === 'mailchimp' ) {
75
+ relocate_mailchimp_button(data);
76
+ }
77
+
78
  if( ( e.type === "wpoi:display" || e.type === "wpoi:cc_display" ) && type === "popup" ){
79
  (function (){
80
  var $parent = type === "popup" ? $(window) : $(this),
346
  }
347
  });
348
  }
349
+
350
+ /**
351
+ Relocate submit button if no mailchimp groups
352
+ */
353
+ function relocate_mailchimp_button( popup_data ) {
354
+ if ( typeof popup_data.provider_args === 'undefined' || typeof popup_data.provider_args.group === 'undefined' ) {
355
+ // relocate buttons
356
+ $('.inc_optin_' + popup_data.data.optin_id + ' .wpoi-element .wpoi-button').each(function(){
357
+ var $this = $(this),
358
+ $clone = $this.clone(),
359
+ $args_container = $this.closest('.wpoi-element.wpoi-provider-args'),
360
+ $mc_fields = $args_container.siblings('.wpoi-mcg-common-fields');
361
+
362
+ $mc_fields.find('.wpoi-container').append($clone);
363
+ $args_container.remove();
364
+
365
+ });
366
+ }
367
+ }
368
 
369
  $(doc).on("wpoi:display", _.debounce(add_proper_classes, 100, false));
370
  $(doc).on("wpoi:cc_display", _.debounce(add_proper_classes, 100, false));
assets/js/maps/front.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["backbone-view-model-min.js","hustle.js","utils.js","modal.js","display_triggers.js","log.js","scroll.js","submit.js","front_utils.js","overlay.js","custom-content-overlay.js","after_content.js","popup.js","slide-in.js","social_sharing.js","widgets.js","ztriggers.js"],"names":["t","e","self","global","define","amd","i","r","n","Backbone","exports","require","_","jQuery","Zepto","ender","$","s","Array","prototype","slice","VERSION","noConflict","this","emulateHTTP","emulateJSON","a","o","call","arguments","unshift","apply","h","each","isFunction","isObject","_isModel","l","isString","get","matches","attributes","u","Events","c","f","context","keys","length","test","split","on","d","_events","v","ctx","listening","_listeners","id","listenTo","_listenId","uniqueId","_listeningTo","obj","objId","listeningTo","count","push","callback","off","g","listeners","stopListening","_callback","once","p","bind","listenToOnce","trigger","Math","max","m","all","concat","unbind","extend","y","Model","cid","cidPrefix","collection","parse","result","defaults","set","changed","initialize","validationError","idAttribute","toJSON","clone","sync","escape","has","iteratee","_validate","unset","silent","_changing","_previousAttributes","isEqual","_pending","clear","hasChanged","isEmpty","changedAttributes","size","previous","previousAttributes","fetch","success","B","save","validate","wait","isNew","patch","attrs","destroy","defer","url","F","replace","encodeURIComponent","constructor","isValid","b","values","pairs","invert","pick","omit","chain","x","Collection","model","comparator","_reset","reset","w","add","remove","merge","E","I","min","map","isArray","_removeModels","changes","added","merged","removed","at","sort","_prepareModel","_addReference","models","some","index","_removeReference","previousModels","pop","shift","_byId","modelId","where","findWhere","Error","sortBy","pluck","create","indexOf","splice","_onModelEvent","S","forEach","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","any","include","includes","contains","invoke","toArray","first","head","take","initial","rest","tail","drop","last","without","difference","shuffle","lastIndexOf","sample","partition","groupBy","countBy","indexBy","findIndex","findLastIndex","k","View","P","_ensureElement","T","tagName","$el","render","_removeElement","setElement","undelegateEvents","_setElement","delegateEvents","el","match","delegate","undelegate","_createElement","document","createElement","className","_setAttributes","attr","H","type","dataType","data","contentType","JSON","stringify","_method","beforeSend","setRequestHeader","processData","error","textStatus","errorThrown","xhr","ajax","update","delete","read","Router","routes","_bindRoutes","A","C","R","j","route","isRegExp","_routeToRegExp","history","_extractParameters","execute","navigate","RegExp","exec","decodeURIComponent","N","History","handlers","checkUrl","window","location","M","O","U","started","interval","atRoot","pathname","root","getSearch","matchRoot","decodeFragment","decodeURI","href","getHash","getPath","charAt","getFragment","_usePushState","_wantsHashChange","start","options","hashChange","_hasHashChange","documentMode","_useHashChange","_wantsPushState","pushState","_hasPushState","fragment","iframe","src","style","display","tabIndex","body","insertBefore","firstChild","contentWindow","open","close","hash","addEventListener","attachEvent","_checkUrlInterval","setInterval","loadUrl","stop","removeEventListener","detachEvent","removeChild","clearInterval","title","assign","_updateHash","q","__super__","Hustle","doc","win","_modules","_template_options","evaluate","interpolate","module_name","module","splits","recursive","modules","arr","_module_name","invoked","join","get_modules","__base_events","click .wph-tabs--wrap .wph-tabs--nav li label","events","init_mix","wrap","init","__base_toggle_tab","$this","target","$content","$wrap","closest","$li","not","removeClass","addClass","siblings","template","memoize","compiled","getElementById","innerHTML","create_template","str","cache","get_template_options","cookie","name","cookie_name","ca","substring","_val","value","days","date","expires","isPlainObject","isNaN","Date","setTime","getTime","toGMTString","consts","Never_See_Aagain_Prefix","Module_Show_Count","Slide_Cookie_Prefix","Slide_Cookie_Hide_All","SS_Module_Show_Count","Optin","Models","COOKIE_PREFIX","POPUP_COOKIE_PREFIX","SLIDE_IN_COOKIE_PREFIX","SLIDE_IN_COOKIE_HIDE_ALL","global_mixin","mixin","log","console","toBool","val","isBoolean","toLowerCase","isNumber","isUndefined","isNull","isTrue","toString","isFalse","control_base","checked","current","attribute","selected","disabled","class","conditon","cls","negating_cls","add_class","toUpperCase","findKey","predicate","cb","key","json","String","toInt","parseInt","trim","html","template_compat","is","parent","Mixins","_mixins","_services_mixins","_desing_mixins","_display_mixins","get_mixins","add_services_mixin","get_services_mixins","$mask","opts","subtitle","content","animation_in","animation_out","position","click .wph-modal--close a","submit form","click .wph-modal--cta","click .wph-modal-never-see-again","type_data","types","sanitize_cta_url","enable_fullscreen","handle_custom_size_cc","clicked_background","on_form_submit","enable_body_scroll","hasOwnProperty","$close_btn","hide","preventDefault","delay","hasClass","prev","close_btn_as_never_see","never_see_again","not_close_on_background_click","show","show_count_key","current_show_count","cta_url","fullscreen","optin_provider","make_fullscreen","custom_size_attr","custom_size_class","customize_size","custom_width","custom_height","border","border_weight","allow_scroll_page","fire_conversion_event","source","expiration_days","$form","on_submit","time_trigger","optin","setting","popup","trigger_on_time","trigger_on_time_delay","appear_after_time_unit","appear_after_time_val","scroll_trigger","popup_shown","appear_after","scroll","debounce","pageYOffset","height","appear_after_page_portion_val","appear_after_element_val","top","click_trigger","trigger_on_element_click","$clickable","optin_id","exit_intent_trigger","trigger_on_exit","listen_to_exit_intend","on_exit_trigger_once_per_session","one","adblock_trigger","trigger_on_adblock","is_adblock_enabled","trigger_on_adblock_timed","trigger_on_adblock_delay","trigger_on_adblock_timed_unit","trigger_on_adblock_timed_val","Triggers","time","scrolled","click","exit_intent","adblock","$optin","prev_shown_count","settings","is_test","tracking_types","inc_opt","ajaxurl","action","page_type","page_id","uri","encodeURI","res","cc_id","CC_log_view","handle_scroll","$win","$doc","evt","rect","getBoundingClientRect","left","bottom","innerHeight","documentElement","clientHeight","right","innerWidth","clientWidth","handle_cc_scroll","cc","Hustle_Custom_Contents","opt","validate_form","requireds","errors","error_class","next","$button","$popup","handle","delay_id","Optins","$failure","l10n","submit_failure","clearTimeout","form","serialize","$formParent","design","page_redirect_url","existing","message","on_success","on_success_time","on_success_unit","popup_close","after","complete","closeSuccessContent","parentDiv","parents","$successDiv","check_if_in_view","window_height","$window","window_top_position","scrollTop","window_bottom_position","$animation_elements","$element","element_height","outerHeight","element_top_position","offset","element_bottom_position","add_proper_classes","$parent","width","css","padding","background","$child","$aside","$div","$col","$sidebar","$elements","wrapAll","$image","$section","$figure","$figtwo","$imgtwo","$cabriolet","$simple","$minimal","$header","$footer","$modal_content","$modal_message","$modal_message_section","$modal_image","$modal_img","cc_handle_custom_size","new_data","ev","fn","popup_overlay_delay","get_tpl","layout_id","is_compat","templates","shown","hidden","long_hidden","is_already_shown","popup_id","is_long_hidden","optin_obj","render_provider_args","optin_data","provider_args","provider_args_tpl","cta_button","render_optin","use_compat","current_tpl_settings","templateSettings","layout","form_location","tpl","_show_args","html_data","image_style","has_args","borders","render_cc_shortcode","add_never_see_link","listening_to_exit_intent","checking_adblock","is_upfront","isCC","display_id","showClass","maskShowClass","add_never_see_again","mask","should_remove","anim_in_time","anim_out_time","viewed","click .inc-opt-close-btn","click .inc_opt_never_see_again","noop","maskClass","add_never_see_this_message","cookie_key","never_see_expiry","triggers","on_time","on_time_delay","on_time_unit","on_scroll","appear_after_scroll","on_scroll_page_percent","on_scroll_css_selector","on_click_element","on_exit_intent","on_exit_intent_per_session","on_adblock","on_adblock_delayed","on_adblock_delayed_time","on_adblock_delayed_unit","should_display","fit","max_height","header_height","containers","message_height","provider","appendTo","proxy","add_mask","no_scroll","no_bg_click","me","not_viewed","selector","parseFloat","scrolled_trigger","closed","sender","currentTarget","is_never_see","close_button_acts_as_never_see_again","clean","onShow","onHide","logView","logConversion","CC_log_conversion","CCPopUp","click .wph-modal--close .wph-icon","slide_in","after_content","handle_custom_size","update_view_count_cookie","caldera_form_compat","is_caldera_active","calders_forms_init_conditions","setTimeout","CCSlideIn","key_prefix","hide_all_key","delay_time","hide_after_unit","hide_after_val","opt_cookie_never_see","after_close","hide_after","prevent_hide_after","CCAfterContent","animate","animation","uniq_id","AfterContent","PopUp","SlideIn","cLass","SS_log_view","SS_log_conversion","SS_native_share_enpoints","facebook","twitter","google","pinterest","reddit","linkedin","vkontakte","Social_Sharing","click a.native-social-share","click a.linked-social-share","services","appearance","floating_social","model_json","display_type","args","parent_container","location_align_x","location_align_y","module_display_type","location_type","location_target","$widget_ss","$main_container","$sshare_container","_handle_icons_order","social_icons","icon_template","icon_style","link","service_type","sanitize_url","native_class","icon_html","click_counter","counter","social_sharing_html","append","location_left","location_right","location_top","location_bottom","floating_inline_count","widget_inline_count","log_view","reordered","icons_order","icons_order_arr","Object","click_social_native","$anchor","social","_update_social_counter","log_conversion","hustle_vars","current_url","click_social_linked","$a","$counter","text","ss","track_converstion","SS_floating","SS_widget","SS_shortcode","handle_cc_shortcode_conversion","inc_opt_render_widgets","parseJSON","enabled","random","Hustle_SS_Modules","widget","shortcode","is_floating_social_allowed"],"mappings":"CAAA,SAAAA,GAAA,GAAAC,GAAA,gBAAAC,OAAAA,KAAAA,OAAAA,MAAAA,MAAA,gBAAAC,SAAAA,OAAAA,SAAAA,QAAAA,MAAA,IAAA,kBAAAC,SAAAA,OAAAC,IAAAD,QAAA,aAAA,SAAA,WAAA,SAAAE,EAAAC,EAAAC,GAAAP,EAAAQ,SAAAT,EAAAC,EAAAO,EAAAF,EAAAC,SAAA,IAAA,mBAAAG,SAAA,CAAA,GAAAH,GAAAD,EAAAK,QAAA,aAAA,KAAAJ,EAAAI,QAAA,UAAA,MAAAH,IAAAR,EAAAC,EAAAS,QAAAJ,EAAAC,OAAAN,GAAAQ,SAAAT,EAAAC,KAAAA,EAAAW,EAAAX,EAAAY,QAAAZ,EAAAa,OAAAb,EAAAc,OAAAd,EAAAe,IAAA,SAAAhB,EAAAC,EAAAK,EAAAC,GAAA,GAAAC,GAAAR,EAAAS,SAAAQ,EAAAC,MAAAC,UAAAC,KAAAnB,GAAAoB,QAAA,QAAApB,EAAAe,EAAAT,EAAAN,EAAAqB,WAAA,WAAA,MAAAtB,GAAAS,SAAAD,EAAAe,MAAAtB,EAAAuB,aAAA,EAAAvB,EAAAwB,aAAA,CAAA,IAAAC,GAAA,SAAA1B,EAAAC,EAAAM,GAAA,OAAAP,GAAA,IAAA,GAAA,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AAAmV,WACAhR,EAAA9U,KAAA,QACA,GAAAkK,OAAAyV,QAAA7K,IAIA1jB,EAAA+Z,OAAA2J,EAAAiJ,eAAA8B,WAAAzuB,EAAA+Z,OAAA2J,EAAA+K,SAAAiG,WACAhR,EAAA9U,KAAA,WACA,GAAAkK,OAAAmW,UAAAvL,IAGAA,EAAAgL,eAAA1uB,EAAA+Z,OAAA2J,EAAAiJ,eAAA+B,gBAAA1uB,EAAA+Z,OAAA2J,EAAAgL,cAAAgG,WACAhR,EAAA9U,KAAA,gBACA8U,EAAAoM,QAAAA,EACA,GAAAhX,OAAA6W,eAAAjM,OAOA1jB,EAAAqB,KAAAuzB,kBAAA,SAAAV,EAAAjZ,GACAjb,EAAA+Z,OAAAma,EAAAhD,gBAAAwD,UAAA10B,EAAA+Z,OAAAma,EAAAa,6BACA,GAAAjc,OAAAsb,YAAAF,OAIAj0B,OAAAqO,SAAA6C","file":"../front.min.js","sourcesContent":["(function(t){var e=typeof self==\"object\"&&self.self===self&&self||typeof global==\"object\"&&global.global===global&&global;if(typeof define===\"function\"&&define.amd){define([\"underscore\",\"jquery\",\"exports\"],function(i,r,n){e.Backbone=t(e,n,i,r)})}else if(typeof exports!==\"undefined\"){var i=require(\"underscore\"),r;try{r=require(\"jquery\")}catch(n){}t(e,exports,i,r)}else{e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}})(function(t,e,i,r){var n=t.Backbone;var s=Array.prototype.slice;e.VERSION=\"1.3.3\";e.$=r;e.noConflict=function(){t.Backbone=n;return this};e.emulateHTTP=false;e.emulateJSON=false;var a=function(t,e,r){switch(t){case 1:return function(){return i[e](this[r])};case 2:return function(t){return i[e](this[r],t)};case 3:return function(t,n){return i[e](this[r],o(t,this),n)};case 4:return function(t,n,s){return i[e](this[r],o(t,this),n,s)};default:return function(){var t=s.call(arguments);t.unshift(this[r]);return i[e].apply(i,t)}}};var h=function(t,e,r){i.each(e,function(e,n){if(i[n])t.prototype[n]=a(e,n,r)})};var o=function(t,e){if(i.isFunction(t))return t;if(i.isObject(t)&&!e._isModel(t))return l(t);if(i.isString(t))return function(e){return e.get(t)};return t};var l=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}};var u=e.Events={};var c=/\\s+/;var f=function(t,e,r,n,s){var a=0,h;if(r&&typeof r===\"object\"){if(n!==void 0&&\"context\"in s&&s.context===void 0)s.context=n;for(h=i.keys(r);a<h.length;a++){e=f(t,e,h[a],r[h[a]],s)}}else if(r&&c.test(r)){for(h=r.split(c);a<h.length;a++){e=t(e,h[a],n,s)}}else{e=t(e,r,n,s)}return e};u.on=function(t,e,i){return d(this,t,e,i)};var d=function(t,e,i,r,n){t._events=f(v,t._events||{},e,i,{context:r,ctx:t,listening:n});if(n){var s=t._listeners||(t._listeners={});s[n.id]=n}return t};u.listenTo=function(t,e,r){if(!t)return this;var n=t._listenId||(t._listenId=i.uniqueId(\"l\"));var s=this._listeningTo||(this._listeningTo={});var a=s[n];if(!a){var h=this._listenId||(this._listenId=i.uniqueId(\"l\"));a=s[n]={obj:t,objId:n,id:h,listeningTo:s,count:0}}d(t,e,r,this,a);return this};var v=function(t,e,i,r){if(i){var n=t[e]||(t[e]=[]);var s=r.context,a=r.ctx,h=r.listening;if(h)h.count++;n.push({callback:i,context:s,ctx:s||a,listening:h})}return t};u.off=function(t,e,i){if(!this._events)return this;this._events=f(g,this._events,t,e,{context:i,listeners:this._listeners});return this};u.stopListening=function(t,e,r){var n=this._listeningTo;if(!n)return this;var s=t?[t._listenId]:i.keys(n);for(var a=0;a<s.length;a++){var h=n[s[a]];if(!h)break;h.obj.off(e,r,this)}return this};var g=function(t,e,r,n){if(!t)return;var s=0,a;var h=n.context,o=n.listeners;if(!e&&!r&&!h){var l=i.keys(o);for(;s<l.length;s++){a=o[l[s]];delete o[a.id];delete a.listeningTo[a.objId]}return}var u=e?[e]:i.keys(t);for(;s<u.length;s++){e=u[s];var c=t[e];if(!c)break;var f=[];for(var d=0;d<c.length;d++){var v=c[d];if(r&&r!==v.callback&&r!==v.callback._callback||h&&h!==v.context){f.push(v)}else{a=v.listening;if(a&&--a.count===0){delete o[a.id];delete a.listeningTo[a.objId]}}}if(f.length){t[e]=f}else{delete t[e]}}return t};u.once=function(t,e,r){var n=f(p,{},t,e,i.bind(this.off,this));if(typeof t===\"string\"&&r==null)e=void 0;return this.on(n,e,r)};u.listenToOnce=function(t,e,r){var n=f(p,{},e,r,i.bind(this.stopListening,this,t));return this.listenTo(t,n)};var p=function(t,e,r,n){if(r){var s=t[e]=i.once(function(){n(e,s);r.apply(this,arguments)});s._callback=r}return t};u.trigger=function(t){if(!this._events)return this;var e=Math.max(0,arguments.length-1);var i=Array(e);for(var r=0;r<e;r++)i[r]=arguments[r+1];f(m,this._events,t,void 0,i);return this};var m=function(t,e,i,r){if(t){var n=t[e];var s=t.all;if(n&&s)s=s.slice();if(n)_(n,r);if(s)_(s,[e].concat(r))}return t};var _=function(t,e){var i,r=-1,n=t.length,s=e[0],a=e[1],h=e[2];switch(e.length){case 0:while(++r<n)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r<n)(i=t[r]).callback.call(i.ctx,s);return;case 2:while(++r<n)(i=t[r]).callback.call(i.ctx,s,a);return;case 3:while(++r<n)(i=t[r]).callback.call(i.ctx,s,a,h);return;default:while(++r<n)(i=t[r]).callback.apply(i.ctx,e);return}};u.bind=u.on;u.unbind=u.off;i.extend(e,u);var y=e.Model=function(t,e){var r=t||{};e||(e={});this.cid=i.uniqueId(this.cidPrefix);this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)r=this.parse(r,e)||{};var n=i.result(this,\"defaults\");r=i.defaults(i.extend({},n,r),n);this.set(r,e);this.changed={};this.initialize.apply(this,arguments)};i.extend(y.prototype,u,{changed:null,validationError:null,idAttribute:\"id\",cidPrefix:\"c\",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return this.get(t)!=null},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(t==null)return this;var n;if(typeof t===\"object\"){n=t;r=e}else{(n={})[t]=e}r||(r={});if(!this._validate(n,r))return false;var s=r.unset;var a=r.silent;var h=[];var o=this._changing;this._changing=true;if(!o){this._previousAttributes=i.clone(this.attributes);this.changed={}}var l=this.attributes;var u=this.changed;var c=this._previousAttributes;for(var f in n){e=n[f];if(!i.isEqual(l[f],e))h.push(f);if(!i.isEqual(c[f],e)){u[f]=e}else{delete u[f]}s?delete l[f]:l[f]=e}if(this.idAttribute in n)this.id=this.get(this.idAttribute);if(!a){if(h.length)this._pending=r;for(var d=0;d<h.length;d++){this.trigger(\"change:\"+h[d],this,l[h[d]],r)}}if(o)return this;if(!a){while(this._pending){r=this._pending;this._pending=false;this.trigger(\"change\",this,r)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:true}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,i.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!i.isEmpty(this.changed);return i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):false;var e=this._changing?this._previousAttributes:this.attributes;var r={};for(var n in t){var s=t[n];if(i.isEqual(e[n],s))continue;r[n]=s}return i.size(r)?r:false},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:true},t);var e=this;var r=t.success;t.success=function(i){var n=t.parse?e.parse(i,t):i;if(!e.set(n,t))return false;if(r)r.call(t.context,e,i,t);e.trigger(\"sync\",e,i,t)};B(this,t);return this.sync(\"read\",this,t)},save:function(t,e,r){var n;if(t==null||typeof t===\"object\"){n=t;r=e}else{(n={})[t]=e}r=i.extend({validate:true,parse:true},r);var s=r.wait;if(n&&!s){if(!this.set(n,r))return false}else if(!this._validate(n,r)){return false}var a=this;var h=r.success;var o=this.attributes;r.success=function(t){a.attributes=o;var e=r.parse?a.parse(t,r):t;if(s)e=i.extend({},n,e);if(e&&!a.set(e,r))return false;if(h)h.call(r.context,a,t,r);a.trigger(\"sync\",a,t,r)};B(this,r);if(n&&s)this.attributes=i.extend({},o,n);var l=this.isNew()?\"create\":r.patch?\"patch\":\"update\";if(l===\"patch\"&&!r.attrs)r.attrs=n;var u=this.sync(l,this,r);this.attributes=o;return u},destroy:function(t){t=t?i.clone(t):{};var e=this;var r=t.success;var n=t.wait;var s=function(){e.stopListening();e.trigger(\"destroy\",e,e.collection,t)};t.success=function(i){if(n)s();if(r)r.call(t.context,e,i,t);if(!e.isNew())e.trigger(\"sync\",e,i,t)};var a=false;if(this.isNew()){i.defer(t.success)}else{B(this,t);a=this.sync(\"delete\",this,t)}if(!n)s();return a},url:function(){var t=i.result(this,\"urlRoot\")||i.result(this.collection,\"url\")||F();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\\/]$/,\"$&/\")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=i.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;if(!r)return true;this.trigger(\"invalid\",this,r,i.extend(e,{validationError:r}));return false}});var b={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};h(y,b,\"attributes\");var x=e.Collection=function(t,e){e||(e={});if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,i.extend({silent:true},e))};var w={add:true,remove:true,merge:true};var E={add:true,remove:false};var I=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var r=Array(t.length-i);var n=e.length;var s;for(s=0;s<r.length;s++)r[s]=t[s+i];for(s=0;s<n;s++)t[s+i]=e[s];for(s=0;s<r.length;s++)t[s+n+i]=r[s]};i.extend(x.prototype,u,{model:y,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:false},e,E))},remove:function(t,e){e=i.extend({},e);var r=!i.isArray(t);t=r?[t]:t.slice();var n=this._removeModels(t,e);if(!e.silent&&n.length){e.changes={added:[],merged:[],removed:n};this.trigger(\"update\",this,e)}return r?n[0]:n},set:function(t,e){if(t==null)return;e=i.extend({},w,e);if(e.parse&&!this._isModel(t)){t=this.parse(t,e)||[]}var r=!i.isArray(t);t=r?[t]:t.slice();var n=e.at;if(n!=null)n=+n;if(n>this.length)n=this.length;if(n<0)n+=this.length+1;var s=[];var a=[];var h=[];var o=[];var l={};var u=e.add;var c=e.merge;var f=e.remove;var d=false;var v=this.comparator&&n==null&&e.sort!==false;var g=i.isString(this.comparator)?this.comparator:null;var p,m;for(m=0;m<t.length;m++){p=t[m];var _=this.get(p);if(_){if(c&&p!==_){var y=this._isModel(p)?p.attributes:p;if(e.parse)y=_.parse(y,e);_.set(y,e);h.push(_);if(v&&!d)d=_.hasChanged(g)}if(!l[_.cid]){l[_.cid]=true;s.push(_)}t[m]=_}else if(u){p=t[m]=this._prepareModel(p,e);if(p){a.push(p);this._addReference(p,e);l[p.cid]=true;s.push(p)}}}if(f){for(m=0;m<this.length;m++){p=this.models[m];if(!l[p.cid])o.push(p)}if(o.length)this._removeModels(o,e)}var b=false;var x=!v&&u&&f;if(s.length&&x){b=this.length!==s.length||i.some(this.models,function(t,e){return t!==s[e]});this.models.length=0;I(this.models,s,0);this.length=this.models.length}else if(a.length){if(v)d=true;I(this.models,a,n==null?this.length:n);this.length=this.models.length}if(d)this.sort({silent:true});if(!e.silent){for(m=0;m<a.length;m++){if(n!=null)e.index=n+m;p=a[m];p.trigger(\"add\",p,this,e)}if(d||b)this.trigger(\"sort\",this,e);if(a.length||o.length||h.length){e.changes={added:a,removed:o,merged:h};this.trigger(\"update\",this,e)}}return r?t[0]:t},reset:function(t,e){e=e?i.clone(e):{};for(var r=0;r<this.models.length;r++){this._removeReference(this.models[r],e)}e.previousModels=this.models;this._reset();t=this.add(t,i.extend({silent:true},e));if(!e.silent)this.trigger(\"reset\",this,e);return t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return this.get(t)!=null},at:function(t){if(t<0)t+=this.length;return this.models[t]},where:function(t,e){return this[e?\"find\":\"filter\"](t)},findWhere:function(t){return this.where(t,true)},sort:function(t){var e=this.comparator;if(!e)throw new Error(\"Cannot sort a set without a comparator\");t||(t={});var r=e.length;if(i.isFunction(e))e=i.bind(e,this);if(r===1||i.isString(e)){this.models=this.sortBy(e)}else{this.models.sort(e)}if(!t.silent)this.trigger(\"sort\",this,t);return this},pluck:function(t){return this.map(t+\"\")},fetch:function(t){t=i.extend({parse:true},t);var e=t.success;var r=this;t.success=function(i){var n=t.reset?\"reset\":\"set\";r[n](i,t);if(e)e.call(t.context,r,i,t);r.trigger(\"sync\",r,i,t)};B(this,t);return this.sync(\"read\",this,t)},create:function(t,e){e=e?i.clone(e):{};var r=e.wait;t=this._prepareModel(t,e);if(!t)return false;if(!r)this.add(t,e);var n=this;var s=e.success;e.success=function(t,e,i){if(r)n.add(t,i);if(s)s.call(i.context,t,e,i)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||\"id\"]},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(this._isModel(t)){if(!t.collection)t.collection=this;return t}e=e?i.clone(e):{};e.collection=this;var r=new this.model(t,e);if(!r.validationError)return r;this.trigger(\"invalid\",this,r.validationError,e);return false},_removeModels:function(t,e){var i=[];for(var r=0;r<t.length;r++){var n=this.get(t[r]);if(!n)continue;var s=this.indexOf(n);this.models.splice(s,1);this.length--;delete this._byId[n.cid];var a=this.modelId(n.attributes);if(a!=null)delete this._byId[a];if(!e.silent){e.index=s;n.trigger(\"remove\",n,this,e)}i.push(n);this._removeReference(n,e)}return i},_isModel:function(t){return t instanceof y},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes);if(i!=null)this._byId[i]=t;t.on(\"all\",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes);if(i!=null)delete this._byId[i];if(this===t.collection)delete t.collection;t.off(\"all\",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if(e){if((t===\"add\"||t===\"remove\")&&i!==this)return;if(t===\"destroy\")this.remove(e,r);if(t===\"change\"){var n=this.modelId(e.previousAttributes());var s=this.modelId(e.attributes);if(n!==s){if(n!=null)delete this._byId[n];if(s!=null)this._byId[s]=e}}}this.trigger.apply(this,arguments)}});var S={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};h(x,S,\"models\");var k=e.View=function(t){this.cid=i.uniqueId(\"view\");i.extend(this,i.pick(t,P));this._ensureElement();this.initialize.apply(this,arguments)};var T=/^(\\S+)\\s*(.*)$/;var P=[\"model\",\"collection\",\"el\",\"id\",\"attributes\",\"className\",\"tagName\",\"events\"];i.extend(k.prototype,u,{tagName:\"div\",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this._removeElement();this.stopListening();return this},_removeElement:function(){this.$el.remove()},setElement:function(t){this.undelegateEvents();this._setElement(t);this.delegateEvents();return this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t);this.el=this.$el[0]},delegateEvents:function(t){t||(t=i.result(this,\"events\"));if(!t)return this;this.undelegateEvents();for(var e in t){var r=t[e];if(!i.isFunction(r))r=this[r];if(!r)continue;var n=e.match(T);this.delegate(n[1],n[2],i.bind(r,this))}return this},delegate:function(t,e,i){this.$el.on(t+\".delegateEvents\"+this.cid,e,i);return this},undelegateEvents:function(){if(this.$el)this.$el.off(\".delegateEvents\"+this.cid);return this},undelegate:function(t,e,i){this.$el.off(t+\".delegateEvents\"+this.cid,e,i);return this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(!this.el){var t=i.extend({},i.result(this,\"attributes\"));if(this.id)t.id=i.result(this,\"id\");if(this.className)t[\"class\"]=i.result(this,\"className\");this.setElement(this._createElement(i.result(this,\"tagName\")));this._setAttributes(t)}else{this.setElement(i.result(this,\"el\"))}},_setAttributes:function(t){this.$el.attr(t)}});e.sync=function(t,r,n){var s=H[t];i.defaults(n||(n={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:s,dataType:\"json\"};if(!n.url){a.url=i.result(r,\"url\")||F()}if(n.data==null&&r&&(t===\"create\"||t===\"update\"||t===\"patch\")){a.contentType=\"application/json\";a.data=JSON.stringify(n.attrs||r.toJSON(n))}if(n.emulateJSON){a.contentType=\"application/x-www-form-urlencoded\";a.data=a.data?{model:a.data}:{}}if(n.emulateHTTP&&(s===\"PUT\"||s===\"DELETE\"||s===\"PATCH\")){a.type=\"POST\";if(n.emulateJSON)a.data._method=s;var h=n.beforeSend;n.beforeSend=function(t){t.setRequestHeader(\"X-HTTP-Method-Override\",s);if(h)return h.apply(this,arguments)}}if(a.type!==\"GET\"&&!n.emulateJSON){a.processData=false}var o=n.error;n.error=function(t,e,i){n.textStatus=e;n.errorThrown=i;if(o)o.call(n.context,t,e,i)};var l=n.xhr=e.ajax(i.extend(a,n));r.trigger(\"request\",r,l,n);return l};var H={create:\"POST\",update:\"PUT\",patch:\"PATCH\",\"delete\":\"DELETE\",read:\"GET\"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var A=/\\((.*?)\\)/g;var C=/(\\(\\?)?:\\w+/g;var R=/\\*\\w+/g;var j=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,n){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){n=r;r=\"\"}if(!n)n=this[r];var s=this;e.history.route(t,function(i){var a=s._extractParameters(t,i);if(s.execute(n,a,r)!==false){s.trigger.apply(s,[\"route:\"+r].concat(a));s.trigger(\"route\",r,a);e.history.trigger(\"route\",s,r,a)}});return this},execute:function(t,e,i){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,\"routes\");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(j,\"\\\\$&\").replace(A,\"(?:$1)?\").replace(C,function(t,e){return e?t:\"([^/?]+)\"}).replace(R,\"([^?]*?)\");return new RegExp(\"^\"+t+\"(?:\\\\?([\\\\s\\\\S]*))?$\")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];this.checkUrl=i.bind(this.checkUrl,this);if(typeof window!==\"undefined\"){this.location=window.location;this.history=window.history}};var M=/^[#\\/]|\\s+$/g;var O=/^\\/+|\\/+$/g;var U=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\\/]$/,\"$&/\");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname);var e=t.slice(0,this.root.length-1)+\"/\";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,\"%2525\"))},getSearch:function(){var t=this.location.href.replace(/#.*/,\"\").match(/\\?.+/);return t?t[0]:\"\"},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:\"\"},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return t.charAt(0)===\"/\"?t.slice(1):t},getFragment:function(t){if(t==null){if(this._usePushState||!this._wantsHashChange){t=this.getPath()}else{t=this.getHash()}}return t.replace(M,\"\")},start:function(t){if(N.started)throw new Error(\"Backbone.history has already been started\");N.started=true;this.options=i.extend({root:\"/\"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._hasHashChange=\"onhashchange\"in window&&(document.documentMode===void 0||document.documentMode>7);this._useHashChange=this._wantsHashChange&&this._hasHashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.history&&this.history.pushState);this._usePushState=this._wantsPushState&&this._hasPushState;this.fragment=this.getFragment();this.root=(\"/\"+this.root+\"/\").replace(O,\"/\");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||\"/\";this.location.replace(e+\"#\"+this.getPath());return true}else if(this._hasPushState&&this.atRoot()){this.navigate(this.getHash(),{replace:true})}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement(\"iframe\");this.iframe.src=\"javascript:0\";this.iframe.style.display=\"none\";this.iframe.tabIndex=-1;var r=document.body;var n=r.insertBefore(this.iframe,r.firstChild).contentWindow;n.document.open();n.document.close();n.location.hash=\"#\"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent(\"on\"+t,e)};if(this._usePushState){s(\"popstate\",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){s(\"hashchange\",this.checkUrl,false)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}if(!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent(\"on\"+t,e)};if(this._usePushState){t(\"popstate\",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){t(\"hashchange\",this.checkUrl,false)}if(this.iframe){document.body.removeChild(this.iframe);this.iframe=null}if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getHash(this.iframe.contentWindow)}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){if(!this.matchRoot())return false;t=this.fragment=this.getFragment(t);return i.some(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};t=this.getFragment(t||\"\");var i=this.root;if(t===\"\"||t.charAt(0)===\"?\"){i=i.slice(0,-1)||\"/\"}var r=i+t;t=this.decodeFragment(t.replace(U,\"\"));if(this.fragment===t)return;this.fragment=t;if(this._usePushState){this.history[e.replace?\"replaceState\":\"pushState\"]({},document.title,r)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;if(!e.replace){n.document.open();n.document.close()}this._updateHash(n.location,t,e.replace)}}else{return this.location.assign(r)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,\"\");t.replace(r+\"#\"+e)}else{t.hash=\"#\"+e}}});e.history=new N;var q=function(t,e){var r=this;var n;if(t&&i.has(t,\"constructor\")){n=t.constructor}else{n=function(){return r.apply(this,arguments)}}i.extend(n,r,e);n.prototype=i.create(r.prototype,t);n.prototype.constructor=n;n.__super__=r.prototype;return n};y.extend=x.extend=$.extend=k.extend=N.extend=q;var F=function(){throw new Error('A \"url\" property or function must be specified')};var B=function(t,e){var i=e.error;e.error=function(r){if(i)i.call(e.context,t,r,e);t.trigger(\"error\",t,r,e)}};return e});","(function( $ ) {\r\n \"use strict\";\r\n\r\n /**\r\n * Defines the Hustle Object\r\n *\r\n * @type {{define, get_modules, get, modules}}\r\n */\r\n window.Hustle = (function ($, doc, win) {\r\n var _modules = {},\r\n _template_options = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n\r\n var define = function (module_name, module) {\r\n var splits = module_name.split(\".\");\r\n if (splits.length) { // if module_name has more than one object name, then add the module definition recursively\r\n var recursive = function (module_name, modules) {\r\n var arr = module_name.split(\".\"),\r\n _module_name = arr.splice(0, 1)[0];\r\n\r\n if (!_module_name) return;\r\n\r\n\r\n if (!arr.length) {\r\n var invoked = module.call(null, $, doc, win);\r\n modules[_module_name] = _.isFunction(invoked) || typeof invoked === \"undefined\" ? invoked : _.extend(modules[_module_name] || {}, invoked);\r\n } else {\r\n modules[_module_name] = modules[_module_name] || {};\r\n }\r\n\r\n if (arr.length && _module_name)\r\n recursive(arr.join(\".\"), modules[_module_name]);\r\n };\r\n\r\n recursive(module_name, _modules);\r\n } else {\r\n var m = _modules[module_name] || {};\r\n _modules[module_name] = _.extend(m, module.call(null, $, doc, win));\r\n }\r\n },\r\n get_modules = function () {\r\n return _modules;\r\n },\r\n get = function (module_name) {\r\n if (module_name.split(\".\").length) { // recursively fetch the module\r\n var module = false,\r\n recursive = function (module_name, modules) {\r\n var arr = module_name.split(\".\"),\r\n _module_name = arr.splice(0, 1)[0];\r\n\r\n module = modules[_module_name];\r\n\r\n if (arr.length)\r\n recursive(arr.join(\".\"), modules[_module_name]);\r\n };\r\n\r\n recursive(module_name, _modules);\r\n return module;\r\n }\r\n\r\n return _modules[module_name] || false;\r\n },\r\n Events = _.extend({}, Backbone.Events),\r\n View = Backbone.View.extend({\r\n __base_events:{\r\n \"click .wph-tabs--wrap .wph-tabs--nav li label\": \"__base_toggle_tab\"\r\n },\r\n initialize: function () {\r\n this.events = _.extend({}, this.events, this.__base_events);\r\n\r\n if (_.isFunction(this.init_mix))\r\n this.init_mix.apply(this, arguments);\r\n\r\n\r\n\r\n if (this.render) {\r\n this.render = _.wrap(this.render, function (render) {\r\n this.trigger(\"before_render\");\r\n render.call(this);\r\n Events.trigger(\"view.rendered\", this);\r\n this.trigger(\"rendered\");\r\n });\r\n }\r\n\r\n if (_.isFunction(this.init))\r\n this.init.apply(this, arguments);\r\n },\r\n __base_toggle_tab: function(e){\r\n var $this = this.$( e.target ),\r\n href = ( $this.attr(\"href\") || \"\" ).replace(/^\\#/, \"\"),\r\n $content = href ? this.$( \"#\" + href ) : false,\r\n $wrap = $this.closest(\".wph-tabs--wrap\"),\r\n $li = $this.closest(\"li\");\r\n\r\n if( $content && $content.length ){\r\n $wrap.find( \".wph-tabs--content\" ).not( $content ).removeClass(\"current\");\r\n $content.addClass(\"current\");\r\n $li.addClass(\"current\");\r\n $li.siblings().removeClass(\"current\");\r\n }\r\n }\r\n }),\r\n template = _.memoize(function ( id ) {\r\n var compiled;\r\n return function ( data ) {\r\n compiled = compiled || _.template( document.getElementById( id ).innerHTML, null, _template_options );\r\n return compiled( data ).replace(\"/*<![CDATA[*/\", \"\").replace(\"/*]]>*/\", \"\");\r\n };\r\n }),\r\n create_template = _.memoize(function( str ){\r\n var cache;\r\n return function(data){\r\n cache = cache || _.template( str, null, _template_options );\r\n return cache( data );\r\n };\r\n }),\r\n get_template_options = function(){\r\n return $.extend( true, {}, _template_options );\r\n },\r\n cookie = (function(){\r\n // Get a cookie value.\r\n var get = function (name) {\r\n var i, c, cookie_name, value,\r\n ca = document.cookie.split(';');\r\n\r\n\r\n cookie_name = name + \"=\";\r\n\r\n for (i = 0; i < ca.length; i += 1) {\r\n c = ca[i];\r\n while (c.charAt(0) === ' ') {\r\n c = c.substring(1, c.length);\r\n }\r\n if (c.indexOf(cookie_name) === 0) {\r\n var _val = c.substring(cookie_name.length, c.length);\r\n return !_val ? _val : JSON.parse(_val);\r\n }\r\n }\r\n return null;\r\n };\r\n\r\n // Saves the value into a cookie.\r\n var set = function (name, value, days) {\r\n var date, expires;\r\n\r\n value = $.isArray(value) || $.isPlainObject(value) ? JSON.stringify(value) : value;\r\n\r\n if (!isNaN(days)) {\r\n date = new Date();\r\n date.setTime(date.getTime() + ( days * 24 * 60 * 60 * 1000 ));\r\n expires = \"; expires=\" + date.toGMTString();\r\n } else {\r\n expires = \"\";\r\n }\r\n\r\n document.cookie = name + \"=\" + value + expires + \"; path=/\";\r\n };\r\n return {\r\n set: set,\r\n get: get\r\n };\r\n }()),\r\n consts = (function(){\r\n return {\r\n Never_See_Aagain_Prefix: \"hustle_never_see_again-\",\r\n Module_Show_Count: \"hustle_module_show_count-\",\r\n\t\t\t\t\tSlide_Cookie_Prefix: 'hustle_slide_in_prefix-',\r\n\t\t\t\t\tSlide_Cookie_Hide_All: 'hustle_slide_in_hide_all-',\r\n\t\t\t\t\tSS_Module_Show_Count: 'hustle_ss_module_show_count-'\r\n };\r\n }());\r\n\r\n return {\r\n define: define,\r\n get_modules: get_modules,\r\n get: get,\r\n Events: Events,\r\n View: View,\r\n template: template,\r\n create_template: create_template,\r\n get_template_options: get_template_options,\r\n cookie: cookie,\r\n consts: consts\r\n };\r\n }(jQuery, document, window) );\r\n\r\n}(jQuery));","var Optin = Optin || {};\r\n\r\nOptin.View = {};\r\nOptin.Models = {};\r\nOptin.Events = {};\r\n\r\nif( typeof Backbone !== \"undefined\")\r\n _.extend(Optin.Events, Backbone.Events);\r\n(function( $ ) {\r\n \"use strict\";\r\n Optin.COOKIE_PREFIX = \"inc_optin_long_hidden-\";\r\n Optin.POPUP_COOKIE_PREFIX = \"inc_optin_popup_long_hidden-\";\r\n Optin.SLIDE_IN_COOKIE_PREFIX = \"inc_optin_slide_in_long_hidden-\";\r\n Optin.SLIDE_IN_COOKIE_HIDE_ALL = \"inc_optin_slide_in_hide_all\";\r\n \r\n Optin.global_mixin = function() {\r\n _.mixin({\r\n /**\r\n * Logs to console\r\n */\r\n log: function(){\r\n console.log( arguments );\r\n },\r\n /**\r\n * Converts val to boolian\r\n *\r\n * @param val\r\n * @returns {*}\r\n */\r\n toBool: function(val){\r\n if( _.isBoolean(val) )\r\n return val;\r\n\r\n if( _.isString( val ) && [\"true\", \"false\", \"1\"].indexOf( val.toLowerCase() ) !== -1 ){\r\n return val.toLowerCase() === \"true\" || val.toLowerCase() === \"1\" ? true : false;\r\n }\r\n\r\n if( _.isNumber( val ) )\r\n return !!val;\r\n\r\n if(_.isUndefined( val ) || _.isNull(val) || _.isNaN( val ) )\r\n return false;\r\n\r\n return val;\r\n },\r\n /**\r\n * Checks if val is truthy\r\n *\r\n * @param val\r\n * @returns {boolean}\r\n */\r\n isTrue: function(val) {\r\n if( _.isUndefined( val ) || _.isNull( val ) || _.isNaN( val ) )\r\n return false;\r\n\r\n if( _.isNumber( val ) )\r\n return val !== 0;\r\n\r\n val = val.toString().toLowerCase();\r\n return ['1', \"true\", \"on\"].indexOf( val ) !== -1;\r\n },\r\n isFalse: function(val){\r\n return !_.isTrue( val );\r\n },\r\n control_base: function(checked, current, attribute){\r\n attribute = _.isUndefined( attribute ) ? \"checked\" : attribute;\r\n checked = _.toBool(checked);\r\n current = _.isBoolean( checked ) ? _.isTrue( current ) : current;\r\n\r\n if(_.isEqual(checked, current )){\r\n return attribute + '=' + attribute;\r\n }\r\n return \"\";\r\n },\r\n /**\r\n * Returns checked=check if checked variable is equal to current state\r\n *\r\n *\r\n * @param checked checked state\r\n * @param current current state\r\n * @returns {*}\r\n */\r\n checked: function(checked, current){\r\n return _.control_base( checked, current, \"checked\" );\r\n },\r\n /**\r\n * Adds selected attribute\r\n *\r\n * @param selected\r\n * @param current\r\n * @returns {*}\r\n */\r\n selected: function(selected, current){\r\n return _.control_base( selected, current, \"selected\" );\r\n },\r\n /**\r\n * Adds disabled attribute\r\n *\r\n * @param disabled\r\n * @param current\r\n * @returns {*}\r\n */\r\n disabled: function( disabled, current ){\r\n return _.control_base( disabled, current, \"disabled\" );\r\n },\r\n /**\r\n * Returns css class based on the passed in condition\r\n *\r\n * @param conditon\r\n * @param cls\r\n * @param negating_cls\r\n * @returns {*}\r\n */\r\n class: function( conditon, cls, negating_cls ){\r\n\r\n if( _.isTrue( conditon ) )\r\n return cls;\r\n\r\n return typeof negating_cls !== \"undefined\" ? negating_cls : \"\";\r\n },\r\n /**\r\n * Returns class attribute with relevant class name\r\n *\r\n * @param conditon\r\n * @param cls\r\n * @param negating_cls\r\n * @returns {string}\r\n */\r\n add_class: function( conditon, cls, negating_cls ){\r\n return 'class={class}'.replace( \"{class}\", _.class( conditon, cls, negating_cls ) );\r\n },\r\n toUpperCase: function(str){\r\n return _.isString( str ) ? str.toUpperCase() : \"\";\r\n }\r\n });\r\n\r\n if( !_.findKey ) {\r\n _.mixin({\r\n findKey: function(obj, predicate, context) {\r\n predicate = cb(predicate, context);\r\n var keys = _.keys(obj), key;\r\n for (var i = 0, length = keys.length; i < length; i++) {\r\n key = keys[i];\r\n if (predicate(obj[key], key, obj)) return key;\r\n }\r\n }\r\n });\r\n }\r\n };\r\n \r\n Optin.global_mixin();\r\n \r\n \r\n /**\r\n * Recursive toJSON\r\n *\r\n * @returns {*}\r\n */\r\n Backbone.Model.prototype.toJSON = function() {\r\n var json = _.clone(this.attributes);\r\n for(var attr in json) {\r\n if((json[attr] instanceof Backbone.Model) || (Backbone.Collection && json[attr] instanceof Backbone.Collection)) {\r\n json[attr] = json[attr].toJSON();\r\n }\r\n }\r\n return json;\r\n };\r\n\r\n\r\n String.prototype.toInt = function(){\r\n return parseInt(this, 10);\r\n };\r\n\r\n String.prototype.isEmpty = function() {\r\n return (this.length === 0 || !this.trim());\r\n };\r\n\r\n Optin.template = _.memoize(function ( id ) {\r\n var compiled,\r\n\r\n options = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n\r\n return function ( data ) {\r\n compiled = compiled || _.template( $( '#' + id ).html(), null, options );\r\n return compiled( data ).replace(\"/*<![CDATA[*/\", \"\").replace(\"/*]]>*/\", \"\");\r\n };\r\n });\r\n \r\n /**\r\n * Compatibility with other plugin/theme e.g. upfront\r\n *\r\n */\r\n Optin.template_compat = _.memoize(function ( id ) {\r\n var compiled;\r\n\r\n return function ( data ) {\r\n compiled = compiled || _.template( $( '#' + id ).html() );\r\n return compiled( data ).replace(\"/*<![CDATA[*/\", \"\").replace(\"/*]]>*/\", \"\");\r\n };\r\n });\r\n\r\n Optin.cookie = Hustle.cookie;\r\n\r\n $(document).on('blur', 'input, textarea, select', function(){\r\n\t var $this = $(this);\r\n\t if($this.is(':input[type=button], :input[type=submit], :input[type=reset]')) return;\r\n\t if( $this.val() && $this.val().trim && $this.val().trim() !== '' ) {\r\n\t\t $this.parent().addClass('wpoi-filled');\r\n\t\t} else{\r\n $this.parent().removeClass('wpoi-filled');\r\n }\r\n });\r\n\r\n Optin.Mixins = {\r\n _mixins: {},\r\n _services_mixins: {},\r\n _desing_mixins: {},\r\n _display_mixins: {},\r\n add: function(id, obj){\r\n this._mixins[id] = obj;\r\n },\r\n get_mixins: function(){\r\n return this._mixins;\r\n },\r\n add_services_mixin: function( id, obj ){\r\n this._services_mixins[id] = obj;\r\n },\r\n get_services_mixins: function(){\r\n return this._services_mixins;\r\n }\r\n };\r\n\r\n\r\n})( jQuery );\r\n","Hustle.define(\"Modal\", function($){\r\n \"use strict\";\r\n\r\n return Backbone.View.extend({\r\n template: Optin.template(\"hustle-modal-tpl\"),\r\n $mask: $('<div class=\"wph-modal--mask\"></div>'),\r\n opts: {\r\n\r\n },\r\n data:{\r\n id: \"\",\r\n type: \"popup\",\r\n style: \"\",\r\n title: \"\",\r\n subtitle: \"\",\r\n content: \"Content\",\r\n animation_in: \"\",\r\n animation_out: \"\",\r\n position: \"\"\r\n },\r\n events:{\r\n \"click .wph-modal--close a\": \"hide\",\r\n \"submit form\": \"fire_conversion_event\",\r\n \"click .wph-modal--cta\": \"fire_conversion_event\",\r\n \"click .wph-modal-never-see-again\": \"never_see_again\"\r\n },\r\n initialize: function( options ){\r\n this.opts = _.extend( {}, this.opts, options );\r\n if( options.template )\r\n this.template = options.template;\r\n\r\n this.render();\r\n return this;\r\n },\r\n render: function(){\r\n var data = _.extend( {}, this.data, this.model.toJSON() );\r\n\r\n this.type_data = data.types[ data.type ];\r\n\r\n this.animation_in = data.animation_in = data.types[ data.type ].animation_in || data.animation_in;\r\n this.animation_out = data.animation_out = data.types[ data.type ].animation_out || data.animation_out;\r\n\r\n data.position = data.types[ data.type ].position || data.position;\r\n\t\t\t\r\n\t\t\t// check cta_url if preceeds http\r\n\t\t\tdata = this.sanitize_cta_url(data);\r\n\t\t\t\r\n\t\t\t// enable fullscreen\r\n\t\t\tdata = this.enable_fullscreen(data);\r\n\t\t\t\r\n\t\t\t// handle custom size for custom content\r\n\t\t\tdata = this.handle_custom_size_cc(data);\r\n\t\t\t\r\n this.setElement( this.template( data ) );\r\n\r\n this.$mask = this.$mask.clone();\r\n this.$mask.on(\"click\", _.bind( this.clicked_background, this ) );\r\n\r\n this.$el.find( \"form\" ).on(\"submit\", _.bind( this.on_form_submit, this ) );\r\n\t\t\t\r\n\t\t\t// check if CC and scroll enabled\r\n\t\t\tthis.enable_body_scroll(data);\r\n\t\t\t\r\n\t\t\t// hide close button if on admin\r\n\t\t\tif( window.hasOwnProperty( \"optin_vars\" ) ) {\r\n\t\t\t\tvar $close_btn = this.$el.find('a.wph-icon.i-close');\r\n\t\t\t\tif ( $close_btn.length ) $close_btn.parent().hide();\r\n\t\t\t}\r\n\t\t\t\r\n return this;\r\n },\r\n hide: function(e){\r\n var self = this;\r\n if( e )\r\n e.preventDefault();\r\n\t\t\t\r\n if ( self.animation_in !== self.animation_out ) self.$el.removeClass( self.animation_in );\r\n _.delay(function(){\r\n\t\t\t\tif ( self.animation_out && !self.$el.hasClass(self.animation_out) ) {\r\n\t\t\t\t\tself.$el.addClass( self.animation_out );\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t_.delay( function(){\r\n\t\t\t\t\tself.$el.removeClass(\"wph-modal-show\");\r\n\t\t\t\t\tself.$el.prev(\".wph-modal--mask\").remove();\r\n\t\t\t\t\tHustle.Events.trigger(\"hide_modal\", self );\r\n\t\t\t\t\tself.trigger(\"hidden\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t// only for close button\r\n\t\t\t\t\tif( _.isTrue( self.type_data.close_btn_as_never_see ) && e && $(e.target).hasClass('wph-icon i-close') )\r\n\t\t\t\t\t\tself.never_see_again( e );\r\n }, 550 );\r\n\r\n }, 350);\r\n\t\t\t\r\n\t\t\t// remove any no-scroll class on html\r\n\t\t\t$('html').removeClass('no-scroll');\r\n },\r\n\t\tclicked_background: function(e){\r\n\t\t\tif ( !_.isTrue( this.type_data.not_close_on_background_click ) ) {\r\n\t\t\t\tthis.hide(e);\r\n\t\t\t}\r\n\t\t},\r\n show:function(){\r\n var self = this;\r\n if( !window.hasOwnProperty( \"optin_vars\" ) ){ // don't set cookie in admin\r\n var show_count_key = Hustle.consts.Module_Show_Count + this.model.get(\"type\") + \"-\" + this.model.get(\"id\"),\r\n current_show_count = Hustle.cookie.get( show_count_key );\r\n\r\n Hustle.cookie.set( show_count_key, current_show_count + 1, 90 );\r\n }\r\n\t\t\t\r\n if ( self.animation_in !== self.animation_out ) self.$el.removeClass( self.animation_out );\r\n _.delay( function(){\r\n self.$el.addClass(\"wph-modal-show\");\r\n self.trigger(\"shown\", self, self.model.get(\"type\"));\r\n Hustle.Events.trigger(\"show_modal\", self, self.model.get(\"type\") );\r\n\r\n _.delay( function(){\r\n\t\t\t\t\tif ( self.animation_in && !self.$el.hasClass(self.animation_in) ) {\r\n\t\t\t\t\t\tself.$el.addClass( self.animation_in );\r\n\t\t\t\t\t}\r\n }, 350 );\r\n\r\n }, 550 );\r\n\r\n },\r\n\t\tsanitize_cta_url: function( data ) {\r\n\t\t\tif ( data.cta_url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(data.cta_url)) {\r\n\t\t\t\t\tdata.cta_url = \"http://\" + data.cta_url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\t\tenable_fullscreen: function( data ) {\r\n\t\t\tdata.fullscreen = '';\r\n\t\t\t// only for custom content popup\r\n\t\t\tif ( !data || typeof data.optin_provider === 'undefined' || typeof data.type === 'undefined' ) {\r\n\t\t\t\treturn data;\r\n\t\t\t}\r\n\t\t\tif ( data.optin_provider == 'custom_content' && data.type == 'popup' ) {\r\n\t\t\t\tif ( typeof this.type_data.make_fullscreen === 'undefined' ) {\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t}\r\n\t\t\t\tif ( _.isTrue( this.type_data.make_fullscreen ) ) {\r\n\t\t\t\t\tdata.fullscreen = 'wph-modal-popup-fullscreen';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\t\thandle_custom_size_cc: function( data ){\r\n\t\t\tdata.custom_size_attr = '';\r\n\t\t\tdata.custom_size_class = '';\r\n\t\t\t// only for custom content\r\n\t\t\tif ( !data || typeof data.optin_provider === 'undefined' ) {\r\n\t\t\t\treturn data;\r\n\t\t\t}\r\n\t\t\tif ( data.optin_provider == 'custom_content' ) {\r\n\t\t\t\tif ( _.isTrue( data.customize_size ) ) {\r\n\t\t\t\t\tdata.custom_size_class = 'wph-modal--custom';\r\n\t\t\t\t\tdata.custom_size_attr += 'data-custom_width='+ data.custom_width +' data-custom_height='+ data.custom_height +'';\r\n\t\t\t\t}\r\n\t\t\t\tif ( _.isTrue( data.border ) ) {\r\n\t\t\t\t\tdata.custom_size_attr += ' data-border='+ data.border_weight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\t\tenable_body_scroll: function( data ) {\r\n\t\t\t// only for custom content popup\r\n\t\t\tif ( !data || typeof data.optin_provider === 'undefined' || typeof data.type === 'undefined' ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif ( data.optin_provider == 'custom_content' && data.type == 'popup' ) {\r\n\t\t\t\tif ( typeof this.type_data.allow_scroll_page === 'undefined' ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif ( _.isTrue( this.type_data.allow_scroll_page ) ) {\r\n\t\t\t\t\t$('html').addClass('can-scroll');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$('html').addClass('no-scroll');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n fire_conversion_event: function( e ){\r\n var source = $(e.target).hasClass( \"wph-modal--cta\" ) ? \"cta\" : \"form\";\r\n Hustle.Events.trigger(\"cc_modal_converted\", this, source);\r\n this.trigger(\"converted\", this, source);\r\n },\r\n never_see_again: function(e){\r\n if( e )\r\n e.preventDefault();\r\n\r\n if( !window.hasOwnProperty( \"optin_vars\" ) ) // don't set cookie in admin\r\n Hustle.cookie.set( Hustle.consts.Never_See_Aagain_Prefix + this.model.get(\"type\") + \"-\" + this.model.get(\"id\") , this.model.get(\"id\"), this.type_data.expiration_days );\r\n\r\n // do not hide if close button to avoid infinite loop\r\n\t\t\tif ( e && !$(e.target).hasClass('wph-icon i-close') ) {\r\n\t\t\t\tthis.hide();\r\n\t\t\t}\r\n },\r\n on_form_submit: function(e){\r\n var self = this,\r\n $form = $(e.target),\r\n on_submit = this.type_data.on_submit;\r\n\r\n switch ( on_submit ){\r\n case \"close\":\r\n self.hide();\r\n break;\r\n case \"redirect\":\r\n window.location.replace( $form.attr(\"action\") );\r\n break;\r\n case \"default\":\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n }\r\n });\r\n});","\"use strict\";\r\n(function( $, doc, win ) {\r\n\r\n var time_trigger = function( optin, setting, popup ){\r\n if( \"immediately\" === setting.trigger_on_time ){\r\n popup.display();\r\n }\r\n\r\n if( \"time\" === setting.trigger_on_time ){\r\n var trigger_on_time_delay;\r\n switch( setting.appear_after_time_unit ){\r\n case \"minutes\":\r\n trigger_on_time_delay = parseInt( setting.appear_after_time_val, 10 ) * 60 * 1000;\r\n break;\r\n case \"hours\":\r\n trigger_on_time_delay = parseInt( setting.appear_after_time_val, 10 ) * 60 * 60 * 1000;\r\n break;\r\n default:\r\n trigger_on_time_delay = parseInt( setting.appear_after_time_val, 10 ) * 1000;\r\n }\r\n\r\n _.delay(function(){\r\n popup.display();\r\n }, trigger_on_time_delay);\r\n }\r\n };\r\n\r\n var scroll_trigger = function( optin, setting, popup ){\r\n\t\tvar popup_shown = false;\r\n\r\n if( \"scrolled\" === setting.appear_after ){\r\n $(win).scroll(_.debounce( function(){\r\n\t\t\t\tif ( popup_shown ) return;\r\n\r\n if( ( win.pageYOffset * 100 / $(doc).height() ) >= parseInt( setting.appear_after_page_portion_val, 10 ) ) {\r\n popup.display();\r\n\t\t\t\t\tpopup_shown = true;\r\n }\r\n\r\n }, 50) );\r\n }\r\n\r\n if( \"selector\" === setting.appear_after ){\r\n var $el = $( setting.appear_after_element_val );\r\n if( $el.length ){\r\n $(win).scroll(_.debounce( function(){\r\n\t\t\t\t\tif ( popup_shown ) return;\r\n\r\n if( win.pageYOffset >= $el.position().top ) {\r\n popup.display();\r\n\t\t\t\t\t\tpopup_shown = true;\r\n }\r\n\r\n }, 50));\r\n }\r\n }\r\n };\r\n\r\n var click_trigger = function( optin, setting, popup ){\r\n if( \"\" !== $.trim( setting.trigger_on_element_click ) ){\r\n var $clickable = $( $.trim( setting.trigger_on_element_click ) );\r\n if( $clickable.length )\r\n $(doc).on( \"click\", $.trim( setting.trigger_on_element_click ), popup.display);\r\n }\r\n\r\n /**\r\n * Clickable button added with shortcode\r\n */\r\n $(doc).on(\"click\", \".inc_opt_hustle_shortcode_trigger\", function(e){\r\n e.preventDefault();\r\n if( $(this).data(\"id\") == optin.data.optin_id ) {\r\n\t\t\t\tpopup.display();\r\n\t\t\t}\r\n });\r\n };\r\n\r\n var exit_intent_trigger = function( optin, setting, popup ){\r\n if(_.isTrue( setting.trigger_on_exit ) ){\r\n Optin.listen_to_exit_intend();\r\n if(_.isTrue( setting.on_exit_trigger_once_per_session ) ){\r\n $(doc).one(\"wpoi:exit_intended\", popup.display);\r\n }else{\r\n $(doc).on(\"wpoi:exit_intended\", popup.display);\r\n }\r\n \r\n }\r\n };\r\n\r\n\r\n var adblock_trigger = function( optin, setting, popup ) {\r\n if(_.isTrue( setting.trigger_on_adblock ) ){\r\n\r\n if( !Optin.is_adblock_enabled() ) return;\r\n\r\n if( !_.isTrue( setting.trigger_on_adblock_timed ) ){\r\n popup.display();\r\n }else{\r\n var trigger_on_adblock_delay;\r\n switch( setting.trigger_on_adblock_timed_unit ){\r\n case \"minutes\":\r\n trigger_on_adblock_delay = parseInt( setting.trigger_on_adblock_timed_val, 10 ) * 60 * 1000;\r\n break;\r\n case \"hours\":\r\n trigger_on_adblock_delay = parseInt( setting.trigger_on_adblock_timed_val, 10 ) * 60 * 60 * 1000;\r\n break;\r\n default:\r\n trigger_on_adblock_delay = parseInt( setting.trigger_on_adblock_timed_val, 10 ) * 1000;\r\n }\r\n\r\n _.delay(function(){\r\n popup.display();\r\n }, trigger_on_adblock_delay);\r\n }\r\n\r\n }\r\n };\r\n\r\n Optin.Triggers = {\r\n time: time_trigger,\r\n scroll: scroll_trigger,\r\n scrolled: scroll_trigger,\r\n click: click_trigger,\r\n exit_intent: exit_intent_trigger,\r\n adblock: adblock_trigger\r\n };\r\n\r\n}(jQuery, document, window));","(function( $ ) {\r\n\r\n /**\r\n * Log optin view when it's being viewed\r\n */\r\n $(document).on(\"wpoi:display\", function (e, type, $optin, optin) {\r\n var k = 'wpoi-optin-{type}-shown-count-'.replace(\"{type}\", type) + optin.data.optin_id,\r\n prev_shown_count = Optin.cookie.get( k ) || 0,\r\n is_test = type && optin.settings[type].is_test;\r\n \r\n // set cookies used for \"show less than\" display condition\r\n Optin.cookie.set( k , prev_shown_count + 1 , 30 ); \r\n\r\n /**\r\n * Log number of times this optin type has been shown so far\r\n *\r\n * @type {string}\r\n */\r\n if ( optin.data.tracking_types != null && _.isTrue( optin.data.tracking_types[type] ) ) {\r\n $.ajax({\r\n type: \"POST\",\r\n url: inc_opt.ajaxurl,\r\n dataType: \"json\",\r\n data: {\r\n action: \"inc_opt_optin_viewed\",\r\n data: {\r\n optin_id: optin.data.optin_id,\r\n page_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n type: type,\r\n uri: encodeURI( window.location.href )\r\n }\r\n },\r\n success: function (res) {}\r\n });\r\n }\r\n });\r\n\t\r\n\t/**\r\n * Log CC shortcode or widget when it's being viewed\r\n */\r\n\t$(document).on(\"wpoi:cc_shortcode_or_widget_viewed\", function (e, type, cc_id) {\r\n if ( typeof Optin.CC_log_view != 'undefined' ) {\r\n Optin.CC_log_view.set( 'type', type );\r\n Optin.CC_log_view.set( 'id', cc_id );\r\n Optin.CC_log_view.save();\r\n }\r\n\t});\r\n\r\n}(jQuery));","(function( $ ) {\r\n Optin = Optin || {};\r\n Optin.handle_scroll = function( $el, type, optin ){\r\n var $win = $(window),\r\n $doc = $(document);\r\n\r\n $win.on('scroll', _.debounce( function (evt) {\r\n\r\n var el = $el[0];\r\n\r\n var rect = el.getBoundingClientRect();\r\n\r\n if (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */\r\n ) {\r\n $win.off(evt);\r\n $el.addClass(\"wpoi-show\");\r\n $doc.trigger(\"wpoi:display\", [type, $el, optin ]);\r\n }\r\n\r\n }, 5, true) );\r\n\r\n }\r\n\tOptin.handle_cc_scroll = function( $el, type, id ){\r\n var $win = $(window),\r\n $doc = $(document);\r\n\r\n $win.on('scroll', _.debounce( function (evt) {\r\n\r\n var el = $el[0];\r\n\r\n var rect = el.getBoundingClientRect();\r\n\r\n if (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\r\n ) {\r\n $win.off(evt);\r\n \r\n var cc = _.find(Hustle_Custom_Contents, function (opt) {\r\n return id == opt.content.optin_id;\r\n });\r\n \r\n if (!cc) return;\r\n \r\n if ( cc.tracking_types != null && _.isTrue( cc.tracking_types[type] ) ) {\r\n $doc.trigger(\"wpoi:cc_shortcode_or_widget_viewed\", [type, id]);\r\n }\r\n }\r\n\r\n }, 5, true) );\r\n\r\n }\r\n}(jQuery));","(function( $ ) {\r\n\r\n\r\n function validate_form( $form, is_test ){\r\n var requireds = $form.find(\".required\"),\r\n $icon = $('<i class=\"wphi-font wphi-error\"></i>'),\r\n errors = [];\r\n $('.wpoi-field-error').remove();\r\n requireds.each(function(){\r\n var $this = $(this),\r\n error_class = $this.attr(\"name\") + \"_\" + \"error\";\r\n\r\n if( is_test ){\r\n //$icon = $icon.clone().addClass( error_class ).attr(\"title\", inc_opt.l10n.test_cant_submit );\r\n //$this.after( $icon );\r\n $this.next('label').find('i.wphi-font').addClass('wphi-error');\r\n errors.push( $this );\r\n return errors;\r\n }\r\n\r\n if( _.isEmpty( this.value ) || ( $this.is(\"[type='email']\") && !this.value.trim().match( /^[\\S]+\\@[a-zA-Z0-9\\-]+\\.[\\S]{2,}$/gi ) ) ){\r\n //$icon = $icon.clone().addClass( error_class ).attr(\"title\", $this.data(\"error\") );\r\n //$this.next('label').find('i.wphi-email').after($icon);\r\n $this.next('label').find('i.wphi-font').addClass('wphi-error');\r\n errors.push( $this );\r\n }else{\r\n $(\".\" + error_class).remove();\r\n }\r\n\r\n });\r\n\r\n return errors.length === 0;\r\n }\r\n\r\n $(document).on(\"submit\", '.inc_optin form',function(e){\r\n e.preventDefault();\r\n var $form = $(e.target),\r\n $button = $form.find(\"button\"),\r\n $popup = $form.closest( '.inc_optin'),\r\n handle = $popup.data( 'handle'),\r\n delay_id = $popup.data(\"delay_id\"),\r\n optin = Optins[ handle ],\r\n self = this,\r\n $wrap = $(this).closest('.wpoi-optin > .wpoi-container'),\r\n type = $form.closest(\".inc_optin\").data(\"type\"),\r\n is_test = type && optin.settings[type].is_test,\r\n get_success_message = function(){\r\n return optin.design.success_message.replace(\"{name}\", optin.data.optin_name);\r\n },\r\n $failure = $(\"<span class='wpoi-submit-failure'>\" + inc_opt.l10n.submit_failure + \"</span>\")\r\n ;\r\n\r\n\r\n $form.parent().find('.wpoi-submit-failure').remove();\r\n\r\n if( !_.isUndefined( delay_id ) )\r\n clearTimeout( delay_id );\r\n\r\n if( $form.data(\"sending\") || !validate_form( $form, is_test ) ) return;\r\n\r\n $button.attr(\"disabled\", true);\r\n $button.addClass(\"loading\");\r\n $form.addClass(\"loading\");\r\n\r\n $form.data(\"sending\", true);\r\n\r\n $.ajax({\r\n type: \"POST\",\r\n url: inc_opt.ajaxurl,\r\n dataType: \"json\",\r\n data: {\r\n action: \"inc_opt_submit_opt_in\",\r\n data: {\r\n form: $form.serialize(),\r\n optin_id: optin.data.optin_id,\r\n page_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n uri: encodeURI( window.location.href ),\r\n type: type\r\n }\r\n },\r\n success: function(res){\r\n if( res && res.success ){\r\n //$form.html( \"\" );\r\n var $formParent = $form.closest(\".wpoi-hustle\");\r\n //$formParent.find(\".wpoi-form-title\").fadeOut();\r\n\r\n if( optin.design.hasOwnProperty(\"on_submit\") && optin.design.on_submit === \"page_redirect\" ){\r\n window.location.replace( optin.design.page_redirect_url );\r\n }else{\r\n if(optin.data.optin_provider === 'mailchimp' && typeof res.data.existing !== 'undefined' ){\r\n $formParent.find(\".wpoi-success-message .wpoi-content p\").html(res.data.message);\r\n }\r\n $formParent.find(\".wpoi-success-message\").addClass(\"wpoi-show-message\");\r\n\r\n\t\t\t\t\t\tif ( optin.design.hasOwnProperty('on_success') && 'autoclose' === optin.design.on_success ) {\r\n\t\t\t\t\t\t\tvar on_success_time = parseInt( optin.design.on_success_time ),\r\n\t\t\t\t\t\t\t\ton_success_unit = optin.design.on_success_unit;\r\n\r\n\t\t\t\t\t\t\tif ( 'm' === on_success_unit ) {\r\n\t\t\t\t\t\t\t\ton_success_time *= 60;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\ton_success_time *= 1000;\r\n\t\t\t\t\t\t\t_.delay(function(){\r\n\t\t\t\t\t\t\t\tvar popup_close = $(self).closest(\".inc_optin\").find(\".inc-opt-close-popup\");\r\n\r\n\t\t\t\t\t\t\t\tif ( popup_close.length > 0 ) {\r\n\t\t\t\t\t\t\t\t\tpopup_close.trigger(\"click\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$formParent.find( '.wpoi-success-message' ).removeClass( 'wpoi-show-message' );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}, on_success_time );\r\n\t\t\t\t\t\t}\r\n }\r\n\r\n }else{\r\n\t\t\t\t\tvar message = '';\r\n\t\t\t\t\tif ( res.data ) {\r\n\t\t\t\t\t\tmessage = $.isArray( res.data ) ? res.data.pop() : res.data;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmessage = inc_opt.l10n.submit_failure;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$failure.html( message ? message : inc_opt.l10n.submit_failure );\r\n\r\n $form.after( $failure );\r\n }\r\n },\r\n error: function(){\r\n $form.after( $failure );\r\n },\r\n complete: function(){\r\n $button.attr(\"disabled\", false);\r\n $form.removeClass(\"loading\");\r\n $button.removeClass(\"loading\");\r\n $form.data(\"sending\", false);\r\n }\r\n });\r\n\r\n });\r\n\r\n\tvar closeSuccessContent = function() {\r\n\t\tvar target = $(this),\r\n\t\t\tparentDiv = target.parents( '.wpoi-hustle' ),\r\n\t\t\t$form = $( 'form', parentDiv ),\r\n\t\t\t$successDiv = $( '.wpoi-success-message', parentDiv );\r\n\t\t$successDiv.removeClass( 'wpoi-show-message' );\r\n\t};\r\n\r\n\t$(document).on( 'click', '.wpoi-success-close', closeSuccessContent );\r\n\r\n}(jQuery));","var Optin = Optin || {};\r\n(function( $, doc ) {\r\n \"use strict\";\r\n $.each(['show', 'hide'], function (i, ev) {\r\n var el = $.fn[ev];\r\n $.fn[ev] = function () {\r\n this.trigger(ev);\r\n return el.apply(this, arguments);\r\n };\r\n });\r\n \r\n Optin.popup_overlay_delay = 750;\r\n\r\n\r\n /**\r\n * Set optin id from the html template\r\n */\r\n Optin.get_tpl = function( layout_id, is_compat ){\r\n var templates = [\"optin-layout-one\", \"optin-layout-two\", \"optin-layout-three\", \"optin-layout-four\"];\r\n return ( is_compat ) \r\n ? Optin.template_compat( templates[ layout_id ] )\r\n : Optin.template( templates[ layout_id ] );\r\n };\r\n\r\n Optin.popup = {\r\n shown:[],\r\n hidden:[],\r\n long_hidden: [],\r\n is_already_shown: function( popup_id ){\r\n return -1 !== this.shown.indexOf( popup_id );\r\n },\r\n is_long_hidden: function(optin_obj){\r\n return !!Optin.cookie.get( Optin.POPUP_COOKIE_PREFIX + optin_obj.id );\r\n },\r\n show: function( optin_obj ){\r\n\r\n if( this.is_long_hidden( optin_obj ) )\r\n return false;\r\n\r\n if( !this.is_already_shown( optin_obj.id ) )\r\n return optin_obj.show();\r\n\r\n }\r\n };\r\n\r\n // posts/pages bounce in animation\r\n var $animation_elements = $('.inc_opt_inline_wrap');\r\n var $window = $(window);\r\n\r\n function check_if_in_view() {\r\n var window_height = $window.height();\r\n var window_top_position = $window.scrollTop();\r\n var window_bottom_position = (window_top_position + window_height);\r\n\r\n $.each($animation_elements, function() {\r\n var $element = $(this);\r\n var element_height = $element.outerHeight();\r\n var element_top_position = $element.offset().top;\r\n var element_bottom_position = (element_top_position + element_height);\r\n\r\n //check to see if this current container is within viewport\r\n if ((element_bottom_position >= window_top_position) &&\r\n (element_top_position <= window_bottom_position)) {\r\n $element.addClass('in-view');\r\n } else {\r\n $element.removeClass('in-view');\r\n }\r\n });\r\n }\r\n\r\n function add_proper_classes(e, type, $popup, data){\r\n if( ( e.type === \"wpoi:display\" || e.type === \"wpoi:cc_display\" ) && type === \"popup\" ){\r\n (function (){\r\n var $parent = type === \"popup\" ? $(window) : $(this),\r\n $this = $popup.find(\".wpoi-hustle\");\r\n if ( $parent.width() <= 405){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-small\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-small\");\r\n }\r\n\r\n if ( ( $parent.width() <= 585) && ($parent.width() > 405) ){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-medium\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-medium\");\r\n }\r\n }());\r\n }else{\r\n $(\".wpoi-hustle\").each(function(){\r\n var $parent = type === \"popup\" ? $(window) : $(this),\r\n $this = $(this);\r\n if ( $parent.width() <= 405){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-small\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-small\");\r\n }\r\n\r\n if ( ( $parent.width() <= 585) && ($parent.width() > 405) ){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-medium\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-medium\");\r\n }\r\n });\r\n \r\n // for CC widget & shortcode\r\n $(\".wph-modal\").each(function(){\r\n var $parent = $(this).parent(),\r\n $this = $(this);\r\n \r\n if ( $parent.data('type') === 'widget' || $parent.data('type') === 'shortcode' ) {\r\n if ( $parent.width() <= 405){\r\n $this.addClass(\"wph-modal--small\");\r\n } else {\r\n $this.removeClass(\"wph-modal--small\");\r\n }\r\n }\r\n });\r\n }\r\n\r\n $(\".wpoi-mcg-select\").each(function(){\r\n\t $(this).parent(\".wpoi-provider-args > .wpoi-container > .wpoi-element:nth-child(2) > .wpoi-container > .wpoi-element\").css({\"padding\":\"0\",\"background\":\"transparent\"});\r\n });\r\n \r\n // Layout #3\r\n // Set height of image container same to parent div\r\n // This to avoid Safari conflicts with [ height: 100% ]\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small) .nocontent:not(.noimage)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$parent = $this.find(\".wpoi-aside-x\").prev(\".wpoi-element\"),\r\n\t \t$child = $this.find(\".wpoi-aside-x\").prev(\".wpoi-element\").find(\".wpoi-container.wpoi-col\");\r\n\t $child.css(\"height\", $parent.height());\r\n });\r\n \r\n // Layout #3\r\n // Vertical align content\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$aside = $this.find(\".wpoi-aside-x\"),\r\n\t \t$div = $this.find(\".wpoi-image\").next(\".wpoi-element\"),\r\n\t \t$element = $aside.prev(\".wpoi-element\"),\r\n\t \t$content = $this.find(\".wpoi-content\"),\r\n\t \t$col = $element.find(\".wpoi-col\"),\r\n\t \t$form = $this.find(\"form\");\r\n\t \r\n\t if ( $form.height() > $content.height() ){\r\n\t\t $col.css(\"height\", $aside.height() + 'px' );\r\n\t\t $div.addClass(\"wpoi-align\");\r\n\t\t $content.addClass(\"wpoi-align-element\");\r\n\t }\r\n\t if ( $form.height() < $content.height() ){\r\n\t\t $aside.css(\"height\", $element.height() + 'px');\r\n\t\t $aside.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$sidebar = $this.find(\".wpoi-aside-x\"),\r\n\t \t$element = $sidebar.prev(\".wpoi-element\"),\r\n\t \t$form = $this.find(\"form\");\r\n\t \r\n\t if ( $form.height() < $element.height() ){\r\n\t\t $sidebar.css(\"height\", $element.height());\r\n\t\t $sidebar.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n \r\n // Layout #3\r\n // Group module fields\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$elements = $this.find('form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)');\r\n $elements.addClass(\"wpoi-grouped-element\");\r\n \r\n //The elements will be grouped a single time, it doesn't matter how many times this function is called\r\n\t for (var i = 0; i < $elements.length; i+=2) {\r\n\t\t $elements.slice(i, i+2).wrapAll('<div class=\"wpoi-element wpoi-grouped-element\" style=\"background-color: transparent;\"><div class=\"wpoi-container\"></div></div>');\r\n\t\t }\r\n });\r\n \r\n // Layout #4\r\n // Group module fields\r\n $(\".wpoi-layout-four .wpoi-optin:not(.wpoi-small)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$elements = $this.find('form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)');\r\n\t $elements.addClass(\"wpoi-grouped-element\");\r\n\r\n //The elements will be grouped a single time, it doesn't matter how many times this function is called\r\n\t for (var i = 0; i < $elements.length; i+=2) {\r\n\t\t $elements.slice(i, i+2).wrapAll('<div class=\"wpoi-element wpoi-grouped-element\" style=\"background-color: transparent;\"><div class=\"wpoi-container\"></div></div>');\r\n\t\t }\r\n });\r\n \r\n // Layout #4\r\n // Vertical align content\r\n $(\".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$aside = $this.find(\".wpoi-aside-xl\"),\r\n\t \t$col = $this.find(\".wpoi-aside-xl > .wpoi-container\"),\r\n\t \t$parent = $aside.find(\".wpoi-form\"),\r\n\t \t$form = $aside.find(\"form\"),\r\n\t \t$element = $aside.next(\".wpoi-element\"),\r\n\t \t$content = $element.find(\".wpoi-content\");\r\n\t \r\n\t if ( $content.height() > $form.height() ){\r\n\t\t $col.css(\"height\", $aside.height() + 'px');\r\n\t\t $parent.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n\t if ( $content.height() < $form.height() ) {\r\n\t\t $element.css(\"height\", $col.height() + 'px');\r\n\t\t $element.addClass(\"wpoi-align\");\r\n\t\t $content.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n $(\".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$aside = $this.find(\".wpoi-aside-xl\"),\r\n\t \t$col = $this.find(\".wpoi-aside-xl > .wpoi-container\"),\r\n\t \t$image = $this.find(\".wpoi-image\"),\r\n\t \t$parent = $aside.find(\".wpoi-form\"),\r\n\t \t$form = $aside.find(\"form\"),\r\n\t \t$element = $aside.next(\".wpoi-element\"),\r\n\t \t$content = $this.find(\".wpoi-content\");\r\n\t \r\n\t if ( $content.height() > $col.height() ){\r\n\t\t $col.css(\"height\", $aside.height() + 'px');\r\n\t\t $parent.css(\"height\", $col.height() - $image.height() );\r\n\t\t $parent.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n\t if ( $content.height() < $col.height() ) {\r\n\t\t $element.css(\"height\", $aside.height() + 'px');\r\n\t\t $element.addClass(\"wpoi-align\");\r\n\t\t $content.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n \r\n // Custom Content\r\n // Add proper width and height to img\r\n // parent div and make object-fit work\r\n $(\".wph-modal\").each(function(){\r\n\t var $this = $(this),\r\n $content = $this.find(\".wph-modal--content\"),\r\n $section = $this.find(\".wph-modal--content > section\"),\r\n $figure = $content.find(\"section > figure\"),\r\n $figtwo = $this.find(\".wph-modal--content > figure\"),\r\n $image = $figure.find(\"img\"),\r\n $imgtwo = $figtwo.find(\"img\");\r\n \r\n var $cabriolet = $this.hasClass(\"wph-modal--cabriolet\") && ( $figure.hasClass(\"wph-modal--image_full\") || ( $figure.hasClass(\"wph-modal--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n var $simple = $this.hasClass(\"wph-modal--simple\") && ( $figtwo.hasClass(\"wph-modal--image_full\") || ( $figtwo.hasClass(\"wph-modal--image\") && ( $imgtwo.height() < $figtwo.height() ) ) );\r\n \r\n var $minimal = $this.hasClass(\"wph-modal--minimal\") && ( $figure.hasClass(\"wph-modal--image_full\") || ( $figure.hasClass(\"wph-modal--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n if ( $cabriolet || $minimal ){\r\n\t $image.css({\r\n\t\t \"height\" : $section.height() + 'px',\r\n\t\t \"width\" : $section.width() + 'px'\r\n\t });\r\n }\r\n \r\n if ( $simple ){\r\n\t $imgtwo.css({\r\n\t\t \"height\" : $content.height() + 'px',\r\n\t\t \"width\" : $content.width() + 'px'\r\n\t });\r\n }\r\n\t\t\t\r\n\t\t\t// apply styles for custom size\r\n\t\t\tvar $header = $this.find(\".wph-modal--content header\"),\r\n\t\t\t\t$footer = $this.find(\".wph-modal--content footer\"),\r\n\t\t\t\t$modal_content = $this.find(\".wph-modal--content\"),\r\n\t\t\t\t$modal_message = $this.find(\".wph-modal--content .wph-modal--message\"),\r\n\t\t\t\t$modal_message_section = $this.find(\".wph-modal--content section\"),\r\n\t\t\t\t$modal_image = $this.find(\".wph-modal--content .wph-modal--image\"),\r\n\t\t\t\t$modal_img = $this.find(\".wph-modal--content .wph-modal--image img\"),\r\n\t\t\t\tcustom_width = parseInt($this.data(\"custom_width\")),\r\n\t\t\t\tcustom_height = parseInt($this.data(\"custom_height\")),\r\n\t\t\t\tborder_weight = parseInt($this.data(\"border\")) * 2\r\n\t\t\t;\r\n\t\t\tborder_weight = ( isNaN(border_weight) ) \r\n\t\t\t\t? 0\r\n\t\t\t\t: border_weight\r\n\t\t\t;\r\n\t\t\tif ( custom_width && custom_height ) {\r\n\t\t\t\t$this.css('width', custom_width + 'px');\r\n\t\t\t\t$this.css('max-width', 'none');\r\n\t\t\t\tif ( $this.hasClass(\"wph-modal--cabriolet\") ) {\r\n\t\t\t\t\t$modal_message.outerHeight( custom_height - ( $header.outerHeight(true) ) - border_weight );\r\n\t\t\t\t\t$modal_image.outerHeight( $modal_message.outerHeight(true) );\r\n\t\t\t\t\t$modal_img.outerHeight( $modal_message.outerHeight(true) );\r\n\t\t\t\t}\r\n\t\t\t\tif ( $this.hasClass(\"wph-modal--simple\") ) {\r\n\t\t\t\t\t$modal_content.outerHeight( custom_height );\r\n\t\t\t\t\t$modal_image.outerHeight( $modal_content.height() );\r\n\t\t\t\t\t$modal_img.outerHeight( $modal_content.height() );\r\n\t\t\t\t}\r\n\t\t\t\tif ( $this.hasClass(\"wph-modal--minimal\") ) {\r\n\t\t\t\t\t$modal_message_section.outerHeight( custom_height - ( $header.outerHeight(true) + $footer.outerHeight(true) ) - border_weight );\r\n\t\t\t\t\t$modal_image.outerHeight( $modal_message_section.outerHeight(true) );\r\n\t\t\t\t\t$modal_img.outerHeight( $modal_message_section.outerHeight(true) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t// Custom Content Shortcode\r\n\t\t// Add proper width and height to img\r\n // parent div and make object-fit work\r\n $(\".wph-cc-shortcode\").each(function(){\r\n\t var $this = $(this),\r\n $content = $this.find(\".wph-cc-shortcode--content\"),\r\n $section = $this.find(\".wph-cc-shortcode--content > section\"),\r\n $figure = $content.find(\"section > figure\"),\r\n $figtwo = $this.find(\".wph-cc-shortcode--content > figure\"),\r\n $image = $figure.find(\"img\"),\r\n $imgtwo = $figtwo.find(\"img\");\r\n \r\n var $cabriolet = $this.hasClass(\"wph-cc-shortcode--cabriolet\") && ( $figure.hasClass(\"wph-cc-shortcode--image_full\") || ( $figure.hasClass(\"wph-cc-shortcode--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n var $simple = $this.hasClass(\"wph-cc-shortcode--simple\") && ( $figtwo.hasClass(\"wph-cc-shortcode--image_full\") || ( $figtwo.hasClass(\"wph-cc-shortcode--image\") && ( $imgtwo.height() < $figtwo.height() ) ) );\r\n \r\n var $minimal = $this.hasClass(\"wph-cc-shortcode--minimal\") && ( $figure.hasClass(\"wph-cc-shortcode--image_full\") || ( $figure.hasClass(\"wph-cc-shortcode--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n if ( $cabriolet || $minimal ){\r\n\t $image.css({\r\n\t\t \"height\" : $section.height() + 'px',\r\n\t\t \"width\" : $section.width() + 'px'\r\n\t });\r\n }\r\n \r\n if ( $simple ){\r\n\t $imgtwo.css({\r\n\t\t \"height\" : $content.height() + 'px',\r\n\t\t \"width\" : $content.width() + 'px'\r\n\t });\r\n }\r\n\t\t});\r\n }\r\n\r\n $(doc).on(\"wpoi:display\", _.debounce(add_proper_classes, 100, false));\r\n $(doc).on(\"wpoi:cc_display\", _.debounce(add_proper_classes, 100, false));\r\n $(window).on(\"resize\", _.debounce( add_proper_classes, 100, false ) );\r\n\r\n $window.on('scroll resize', _.debounce( check_if_in_view, 100, false ) );\r\n $window.trigger('scroll');\r\n \r\n $(document).on('blur', 'input, textarea, select', function(){\r\n\t var $this = $(this);\r\n\t if($this.is(':input[type=button], :input[type=submit], :input[type=reset]')) return;\r\n\t if($this.val().trim() !== '') {\r\n\t\t $this.parent().addClass('wpoi-filled');\r\n\t\t} else{\r\n $this.parent().removeClass('wpoi-filled');\r\n }\r\n });\r\n\r\n $(document).on('focus', '.wpoi-optin input.required', function(){\r\n $(this).next('label').find('i.wphi-font').removeClass('i-error');\r\n });\r\n\r\n /**\r\n * Renders provider args and returns html\r\n *\r\n *\r\n * @since 1.0.1\r\n *\r\n * @param optin_data\r\n * @return html\r\n */\r\n Optin.render_provider_args = function( optin_data ){\r\n if( _.isEmpty( optin_data.provider_args ) || _.isEmpty( optin_data.data.optin_provider ) ) return \"\";\r\n\r\n var provider_args_tpl = Optin.template( \"optin-\" + optin_data.data.optin_provider + \"-args\" );\r\n optin_data.provider_args.cta_button = optin_data.design.cta_button;\r\n \r\n if ( $(\"#optin-\" + optin_data.data.optin_provider + \"-args\" ).length ) {\r\n return provider_args_tpl( optin_data.provider_args );\r\n } else {\r\n return '';\r\n }\r\n \r\n };\r\n\r\n /**\r\n * Renders optin front layout based on give optin_data\r\n *\r\n * @param optin_data\r\n */\r\n Optin.render_optin = function( optin_data, use_compat ){ \r\n var is_compat = ( typeof use_compat !== 'undefined' && use_compat ) ? true : false,\r\n current_tpl_settings = _.templateSettings;\r\n \r\n // if needs compatibility e.g. upfront which uses another _.templateSettings\r\n if ( is_compat ) {\r\n Optin.global_mixin();\r\n // force our _.templateSettings setup\r\n _.templateSettings = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n }\r\n \r\n var layout = parseInt(optin_data.design.form_location),\r\n tpl = Optin.get_tpl( layout, is_compat ),\r\n _show_args = function(){\r\n //Mailchimp might not always have groups\r\n if( \"mailchimp\" === optin_data.data.optin_provider\r\n && optin_data.provider_args\r\n )\r\n return true;\r\n\r\n return false;\r\n },\r\n html_data = _.extend({\r\n image_style: \"\",\r\n has_args: _show_args()\r\n }, \r\n optin_data.design, \r\n optin_data.design.borders, \r\n optin_data.data\r\n ),\r\n html = tpl(html_data);\r\n \r\n // after getting the template, revert back to previous _.templateSettings\r\n if ( is_compat ) {\r\n _.templateSettings = current_tpl_settings;\r\n }\r\n\r\n $(doc).trigger(\"wpoi:layout:rendered\");\r\n return html;\r\n };\r\n\t\r\n\t/**\r\n * Renders cc shortcode front layout based on given optin_data\r\n *\r\n * @param optin_data\r\n */\r\n Optin.render_cc_shortcode = function( optin_data, use_compat ){\r\n var is_compat = ( typeof use_compat !== 'undefined' && use_compat ) ? true : false,\r\n types = [],\r\n current_tpl_settings = _.templateSettings;\r\n \r\n types[optin_data.type] = {\r\n add_never_see_link: ''\r\n };\r\n \r\n // if needs compatibility e.g. upfront which uses another _.templateSettings\r\n if ( is_compat ) {\r\n Optin.global_mixin();\r\n // force our _.templateSettings setup\r\n _.templateSettings = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n }\r\n \r\n var tpl = ( is_compat ) ? Optin.template_compat( 'hustle-modal-tpl' ) : Optin.template( 'hustle-modal-tpl' ),\r\n\t\t\thtml = tpl( _.extend({\r\n type: optin_data.type,\r\n id: optin_data.content.optin_id,\r\n position: '',\r\n animation_in: '',\r\n fullscreen: '',\r\n types: types\r\n }, \r\n optin_data.content, \r\n optin_data.design,\r\n cc_handle_custom_size(optin_data.design)\r\n ) );\r\n \r\n // after getting the template, revert back to previous _.templateSettings\r\n if ( is_compat ) {\r\n _.templateSettings = current_tpl_settings;\r\n }\r\n\r\n $(doc).trigger(\"wpoi:layout:rendered\");\r\n $(doc).trigger(\"wpoi:cc_display\", optin_data.type);\r\n return html;\r\n };\r\n \r\n function cc_handle_custom_size( data ) {\r\n var new_data = {};\r\n new_data.custom_size_attr = '';\r\n new_data.custom_size_class = '';\r\n\r\n if ( data.customize_size && _.isTrue( data.customize_size ) ) {\r\n new_data.custom_size_class = 'wph-modal--custom';\r\n new_data.custom_size_attr += 'data-custom_width='+ data.custom_width +' data-custom_height='+ data.custom_height +'';\r\n }\r\n if ( data.border && _.isTrue( data.border ) ) {\r\n new_data.custom_size_attr += ' data-border='+ data.border_weight;\r\n }\r\n\r\n return new_data;\r\n }\r\n\r\n var listening_to_exit_intent = false;\r\n Optin.listen_to_exit_intend = function(){\r\n\r\n if( listening_to_exit_intent ) return;\r\n\r\n $(doc).on(\"mouseleave\", _.debounce( function(e){\r\n $(doc).trigger(\"wpoi:exit_intended\", e);\r\n }, 100, true));\r\n\r\n listening_to_exit_intent = true;\r\n };\r\n\r\n var checking_adblock = false;\r\n Optin.is_adblock_enabled = function(){\r\n if( checking_adblock ) return;\r\n //\r\n //var $script = $('<script src=\"{url}\" type=\"text/javascript\"></script>'.replace(\"{url}\", inc_opt.adblock_detector_js) );\r\n //$script.appendTo( \"body\" );\r\n\r\n if( $(\"#hustle_optin_adBlock_detector\").length ){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n\r\n checking_adblock = true;\r\n };\r\n}(jQuery, document));\r\n","(function($,doc,win){\r\n \"use strict\";\r\n\tif( inc_opt.is_upfront ) return;\r\n\r\n\t/**\r\n\t * Front View Model\r\n\t *\r\n\t * This model is use to render Opt-In/Custom-Content popup and slide_in.\r\n\t **/\r\n\tOptin.View = Backbone.View.extend({\r\n\t\tisCC: false,\r\n\t\tdisplay_id: 'display',\r\n\t\tshowClass: 'wpoi-show',\r\n\t\tmaskShowClass: 'inc_optin_',\r\n\t\toptin_id: '',\r\n\t\ttype: '',\r\n\t\tsettings: {},\r\n\t\tdata: {},\r\n\t\tadd_never_see_again: false,\r\n\t\tappear_after: 'time',\r\n\t\tmask: false,\r\n\t\tshould_remove: false,\r\n\t\tparent: 'body',\r\n\t\tanim_in_time: Optin.popup_overlay_delay,\r\n\t\tanim_out_time: 2000,\r\n\t\tviewed: false,\r\n\t\tevents: {\r\n\t\t\t'click': 'click',\r\n\t\t\t'click .inc-opt-close-btn': 'closed',\r\n\t\t\t'click .inc_opt_never_see_again': 'closed'\r\n\t\t},\r\n\t\tclick: _.noop,\r\n\r\n\t\tinitialize: function( opts ) {\r\n\t\t\tthis.key = opts.key;\r\n\t\t\tthis.opt = Optins[ this.key ];\r\n\t\t\tthis.settings = this.opt.settings[this.type];\r\n\t\t\tthis.data = this.opt.data;\r\n\t\t\tthis.optin_id = this.data.optin_id;\r\n\t\t\tthis.maskClass = 'inc_optin_' + this.optin_id + ' ' + this.maskClass;\r\n\t\t\tthis.add_never_see_again = _.isTrue( this.settings.add_never_see_this_message );\r\n\t\t\tthis.appear_after = this.settings.appear_after;\r\n\t\t\tthis.cookie_key = ( 'popup' === this.type ? Optin.POPUP_COOKIE_PREFIX : Optin.SLIDE_IN_COOKIE_PREFIX ) + this.optin_id;\r\n\t\t\tthis.expiration_days = parseInt( this.settings.never_see_expiry, 10 );\r\n\r\n\t\t\tthis.triggers = {\r\n\t\t\t\ton_time: this.settings.trigger_on_time,\r\n\t\t\t\ton_time_delay: this.settings.appear_after_time_val,\r\n\t\t\t\ton_time_unit: this.settings.appear_after_time_unit,\r\n\t\t\t\ton_scroll: this.settings.appear_after_scroll,\r\n\t\t\t\ton_scroll_page_percent: parseInt( this.settings.appear_after_page_portion_val ),\r\n\t\t\t\ton_scroll_css_selector: this.settings.appear_after_element_val,\r\n\t\t\t\ton_click_element: this.settings.trigger_on_element_click,\r\n\t\t\t\ton_exit_intent: this.settings.trigger_on_exit,\r\n\t\t\t\ton_exit_intent_per_session: this.settings.on_exit_trigger_once_per_session,\r\n\t\t\t\ton_adblock: this.settings.trigger_on_adblock,\r\n\t\t\t\ton_adblock_delayed: this.settings.trigger_on_adblock_timed,\r\n\t\t\t\ton_adblock_delayed_time: this.settings.trigger_on_adblock_timed_val,\r\n\t\t\t\ton_adblock_delayed_unit: this.settings.trigger_on_adblock_timed_unit\r\n\t\t\t};\r\n\r\n\t\t\tif ( ! this.should_display() ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif ( _.contains( ['time', 'scrolled', 'adblock'], this.appear_after )\r\n\t\t\t\t|| ( 'exit_intent' === this.appear_after && _.isTrue( this.settings.on_exit_trigger_once_per_session ) ) ) {\r\n\t\t\t\tthis.should_remove = true;\r\n\t\t\t}\r\n\r\n\t\t\tthis.render();\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Check if popup should display. **/\r\n\t\tshould_display: function() {\r\n\t\t\treturn _.isTrue( this.settings.display )\r\n\t\t\t\t&& !_.isTrue( Optin.cookie.get( this.cookie_key ) );\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Trigger to completely hide this. **/\r\n\t\tnever_see_again: function() {\r\n\t\t\tOptin.cookie.set( this.cookie_key, this.optin_id, this.expiration_days );\r\n\t\t},\r\n\r\n\t\tfit: function() {\r\n\t\t\tvar height = $(win).height(),\r\n\t\t\t\tmax_height = ( height / 100 ) * 65,\r\n\t\t\t\theader_height = this.$('header').outerHeight(),\r\n\t\t\t\tcontainers = this.$('.wph-modal--message, .wph-modal--image'),\r\n\t\t\t\tmessage_height = max_height - header_height,\r\n\t\t\t\tel_css = {'max-height': max_height };\r\n\r\n\t\t\tthis.$el.css( 'max-height', max_height );\r\n\t\t\tcontainers.css('max-height', message_height );\r\n\r\n\t\t\tif ( 'popup' === this.type && 'cabriolet' !== this.settings.style ) {\r\n\t\t\t\tvar top = (height - max_height)/2;\r\n\t\t\t\t\ttop = top - (top * 1.5);\r\n\r\n\t\t\t\tthis.$el.css('margin-top', top + 'px');\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\trender: function() {\r\n\t\t\tvar html = '<a href=\"#\" aria-label=\"Close\" class=\"inc-opt-close-btn inc-opt-close-' + this.type + '\">&times;</a>';\r\n\t\t\t\thtml += Optin.render_optin( this.opt );\r\n var data = {handle: this.key, type: this.type, popup: this.opt};\r\n\r\n\t\t\tif ( this.add_never_see_again ) {\r\n\t\t\t\thtml += '<div class=\"wpoi-nsa\"><a class=\"inc_opt_never_see_again\">%s</a></div>'.replace(\"%s\", inc_opt.l10n.never_see_again );\r\n\t\t\t}\r\n\r\n\t\t\tif( this.settings.animation_in ){\r\n\t\t\t\tthis.$el.addClass( this.settings.animation_in );\r\n\t\t\t}\r\n\t\t\tthis.$el.addClass( ' inc_optin_' + this.optin_id );\r\n\t\t\tthis.$el.html( html );\r\n \r\n var provider = this.$(\".wpoi-provider-args\");\r\n\r\n\t\t\tif ( provider.length ) {\r\n\t\t\t\t// Add provider args\r\n\t\t\t\tprovider.html( Optin.render_provider_args( this.opt ) );\r\n\t\t\t}\r\n\r\n\t\t\tthis.$el.appendTo(this.parent);\r\n\t\t\tthis.$el.display = $.proxy( this, 'display' );\r\n\t\t\tthis.$el.on( 'show', $.proxy( this, 'onShow' ) );\r\n\t\t\tthis.$el.on( 'hide', $.proxy( this, 'onHide' ) );\r\n\t\t\tthis.$el.data(data);\r\n\t\t\tthis.html = this.$el.html();\r\n\r\n\t\t\t// Trigger display\r\n\t\t\tthis[this.appear_after + '_trigger']();\r\n\r\n\t\t\treturn this;\r\n\t\t},\r\n\r\n\t\tdisplay: function() {\r\n\t\t\tvar me = this;\r\n\r\n\t\t\t// Marked viewed when display is triggered\r\n\t\t\tthis.viewed = true;\r\n\r\n\t\t\tif( this.$el.is( '.' + this.showClass ) ) {\r\n\t\t\t\t// If already shown, return\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis.$el.html( this.html );\r\n\t\t\tthis.$el.removeClass( this.settings.animation_out );\r\n\t\t\tthis.add_mask();\r\n\t\t\tthis.animation_in();\r\n\t\t\tthis.$el.trigger( 'show', this );\r\n\t\t},\r\n\r\n\t\tadd_mask: function() {\r\n\t\t\tvar me = this,\r\n no_scroll = _.isFalse(this.settings.allow_scroll_page),\r\n no_bg_click = _.isFalse(this.settings.not_close_on_background_click);\r\n \r\n _.delay( $.proxy(function() {\r\n if ( no_scroll ) {\r\n $('html').addClass('no-scroll');\r\n }\r\n\r\n if ( ! this.mask ) {\r\n this.mask = $( '<div class=\"' + this.maskClass + ' wpoi-overlay-mask wpoi-animate fadein\">' +\r\n '<div class=\"wpoi-' + this.type + '-overlay\"></div></div>' );\r\n this.mask.insertBefore(this.$el).addClass('wpoi-show');\r\n\r\n if ( no_bg_click ) {\r\n this.mask.on( 'click', $.proxy( this, 'closed' ) );\r\n }\r\n } else {\r\n this.mask.addClass('wpoi-show');\r\n }\r\n }, this), Optin.popup_overlay_delay);\r\n\t\t},\r\n\r\n\t\tanimation_in: function() {\r\n\t\t\tvar me = this,\r\n not_viewed = _.isFalse( me.viewed );\r\n\r\n\t\t\tif( this.settings.animation_in ) {\r\n\t\t\t\tthis.$el.addClass( this.settings.animation_in );\r\n\t\t\t}\r\n\r\n\t\t\t_.delay(function(){\r\n\r\n\t\t\t\tif ( not_viewed ) {\r\n\t\t\t\t\t// Prevent from running if display is abruptly closed\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tme.$el.addClass( me.showClass );\r\n\r\n\t\t\t\t// If we have an OUT animation,\r\n\t\t\t\t// we should swap the animations right after the IN ends\r\n\t\t\t\tif( me.settings.animation_out ){\r\n\t\t\t\t\tif( me.settings.animation_in ){\r\n\r\n\t\t\t\t\t\t_.delay(function(){\r\n\t\t\t\t\t\t\tme.$el.removeClass( me.settings.animation_in );\r\n\t\t\t\t\t\t\tme.$el.addClass( me.settings.animation_out );\r\n\t\t\t\t\t\t}, 350 );\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tme.$el.addClass( me.settings.animation_out );\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else if( me.settings.animation_in ){\r\n\t\t\t\t\t_.delay(function(){\r\n\t\t\t\t\t\tme.$el.removeClass( me.settings.animation_in );\r\n\t\t\t\t\t}, 350);\r\n\t\t\t\t}\r\n \r\n\t\t\t}, Optin.popup_overlay_delay );\r\n\t\t},\r\n\r\n\t\ttime_trigger: function() {\r\n\t\t\tif ( 'immediately' == this.triggers.on_time ) {\r\n\t\t\t\tthis.display();\r\n\t\t\t} else {\r\n\t\t\t\tvar delay = parseInt( this.triggers.on_time_delay, 10 ) * 1000;\r\n\r\n\t\t\t\tif( 'minutes' === this.triggers.on_time_unit ) {\r\n\t\t\t\t\tdelay *= 60;\r\n\t\t\t\t} else if( 'hours' === this.triggers.on_time_unit ) {\r\n\t\t\t\t\tdelay *= ( 60 * 60 );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t_.delay( $.proxy( this, 'display' ), delay );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclick_trigger: function() {\r\n var me = this,\r\n selector = '';\r\n \r\n\t\t\tif( \"\" !== (selector = $.trim( this.triggers.on_click_element ) ) ){\r\n\t\t\t\tvar $clickable = $(selector);\r\n\r\n\t\t\t\tif( $clickable.length ) {\r\n\t\t\t\t\t$(doc).on( 'click', selector, function(e) {\r\n e.preventDefault();\r\n me.display();\r\n } );\r\n\t\t\t\t}\r\n\t\t\t}\r\n \r\n /**\r\n * Clickable button added with shortcode\r\n */\r\n $(doc).on(\"click\", \".inc_opt_hustle_shortcode_trigger\", function(e){\r\n e.preventDefault();\r\n if( $(this).data(\"id\") == me.data.optin_id && $(this).data(\"type\") == me.type ) {\r\n me.display();\r\n }\r\n });\r\n\t\t},\r\n\r\n\t\tscroll_trigger: function() {\r\n\t\t\tvar me = this, popup_shown = false;\r\n\r\n\t\t\tif( 'scrolled' === this.triggers.on_scroll ){\r\n\t\t\t\t$(win).scroll(_.debounce( function(){\r\n\t\t\t\t\tif ( popup_shown ) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif( ( win.pageYOffset * 100 / $(doc).height() ) >= parseFloat( me.triggers.on_scroll_page_percent ) ) {\r\n\t\t\t\t\t\tme.display();\r\n\t\t\t\t\t popup_shown = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}, 50) );\r\n\t\t\t}\r\n\r\n\t\t\tif( 'selector' === this.triggers.on_scroll ){\r\n\t\t\t\t var $el = $( this.triggers.on_scroll_css_selector );\r\n\r\n\t\t\t\t if( $el.length ){\r\n\t\t\t\t\t $(win).scroll(_.debounce( function(){\r\n\t\t\t\t\t\t if ( popup_shown ) {\r\n\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t if( win.pageYOffset >= $el.position().top ) {\r\n\t\t\t\t\t\t\t me.display();\r\n\t\t\t\t\t\t\t popup_shown = true;\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }, 50));\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t},\r\n\r\n\t\tscrolled_trigger: function() {\r\n\t\t\treturn this.scroll_trigger();\r\n\t\t},\r\n\r\n\t\texit_intent_trigger: function() {\r\n\t\t\tif(_.isTrue( this.triggers.on_exit_intent ) ){\r\n\t\t\t\tif ( _.isTrue( this.triggers.on_exit_intent_per_session ) ) {\r\n\t\t\t\t\tHustle.Events.once( 'exit_intended', $.proxy( this, 'display' ) );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tHustle.Events.on( 'exit_intended', $.proxy( this, 'display' ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tadblock_trigger: function() {\r\n\t\t\tvar adblock = ! $('#hustle_optin_adBlock_detector').length;\r\n\r\n\t\t\tif ( adblock && _.isTrue( this.triggers.on_adblock ) ) {\r\n\t\t\t\tif( _.isFalse( this.triggers.on_adblock_delayed ) ){ \r\n\t\t\t\t\tthis.display();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar delay = parseInt( this.triggers.on_adblock_delayed_time, 10 ) * 1000;\r\n\r\n\t\t\t\t\tif( 'minutes' === this.triggers.on_adblock_delayed_unit ) {\r\n\t\t\t\t\t\tdelay *= 60;\r\n\t\t\t\t\t} else if( 'hours' === this.triggers.on_adblock_delayed_unit ) {\r\n\t\t\t\t\t\tdelay *= ( 60 * 60 );\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_.delay( $.proxy( this, 'display' ), delay );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclosed: function(e) {\r\n\t\t\tvar me = this,\r\n\t\t\t\tsender = $(e.currentTarget),\r\n\t\t\t\tis_never_see = this.isCC ? _.isTrue( this.settings.close_btn_as_never_see ) : _.isTrue( this.settings.close_button_acts_as_never_see_again );\r\n\r\n\t\t\tthis.viewed = false;\r\n\t\t\tthis.$el.removeClass('wpoi-show');\r\n\r\n\t\t\tif ( ( sender.is('.wph-modal--close .wph-icon, .inc-opt-close-' + this.type ) && is_never_see )\r\n\t\t\t\t|| sender.is( '.inc_opt_never_see_again,.wph-modal-never-see-again' ) ) {\r\n\t\t\t\tthis.never_see_again();\r\n\t\t\t}\r\n\r\n\t\t\t_.delay(function() {\r\n\t\t\t\tif ( me.viewed ) {\r\n\t\t\t\t\t// Prevent from being hiding if display is triggered again\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tme.$el.removeClass(me.showClass);\r\n if ( typeof me.mask !== 'undefined' && me.mask ) {\r\n me.mask.removeClass('wpoi-show');\r\n }\r\n\t\t\t}, Optin.popup_overlay_delay );\r\n\r\n\t\t\tif ( this.settings.animation_in ) {\r\n\t\t\t\tif ( this.settings.animation_out ) {\r\n\t\t\t\t\t_.delay(function() {\r\n\t\t\t\t\t\tif ( me.viewed ) {\r\n\t\t\t\t\t\t\t// Prevent from being hiding if display is triggered again\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tme.$el.removeClass( me.settings.animation_out );\r\n\t\t\t\t\t\tme.$el.addClass( me.settings.animation_in );\r\n\t\t\t\t\t}, 1000 );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$el.addClass( this.settings.animation_in );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! this.settings.animation_out ) {\r\n\t\t\t\t// Make sure all contents are being hidden if popup doesn't have any animation_out\r\n\t\t\t\tthis.$el.hide();\r\n\t\t\t\t_.defer(function() {\r\n\t\t\t\t\t( me.$el[0].style || {} ).display = '';\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tif ( _.isTrue( this.settings.close_button_acts_as_never_see_again )\r\n\t\t\t\t&& _.isTrue( this.settings.trigger_on_exit ) ) {\r\n\t\t\t\t$(doc).off( 'wpoi:exit_intended' );\r\n\t\t\t}\r\n\r\n\t\t\t// delay only if has animations\r\n\t\t\tif ( this.settings.animation_out ) {\r\n\t\t\t\t_.delay(function() {\r\n\t\t\t\t\tif ( me.viewed ) {\r\n\t\t\t\t\t\t// Prevent from being hiding if display is triggered again\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tme.clean();\r\n\t\t\t\t}, 1100 );\r\n\t\t\t} else {\r\n\t\t\t\tme.clean();\r\n\t\t\t}\r\n\r\n\t\t\tif ( _.isFalse( this.settings.allow_scroll_page ) ) {\r\n\t\t\t\t$('html').removeClass('no-scroll');\r\n\t\t\t}\r\n\r\n\t\t\tthis.$el.trigger( 'hide', this );\r\n\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\t\r\n\t\tclean: function() {\r\n\t\t\tthis.$el.html('');\r\n\t\t\tif ( this.should_remove ) {\r\n\t\t\t\tthis.$el.remove();\r\n if ( typeof this.mask !== 'undefined' && this.mask ) {\r\n this.mask.remove();\r\n }\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonShow: function() {\r\n\t\t\t$(document).trigger( 'wpoi:' + this.display_id, [this.type, this.$el, this.opt ]);\r\n\t\t},\r\n\r\n\t\tonHide: function() {\r\n\t\t\t$(document).trigger(\"wpoi:hide\", [this.type, this.$el, this.opt ]);\r\n\t\t}\r\n\t});\r\n}(jQuery,document,window));","(function($, doc, win){\r\n \"use strict\";\r\n\tif( inc_opt.is_upfront ) return;\r\n\r\n\tvar Optin = window.Optin || {};\r\n\tvar logView = Backbone.Model.extend({\r\n\t\turl: inc_opt.ajaxurl + '?action=hustle_custom_content_viewed',\r\n\t\tdefaults: {\r\n\t\t\tpage_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n type: '',\r\n uri: encodeURI( window.location.href )\r\n\t\t},\r\n\t\tparse: function( res ) {\r\n\t\t\tif ( res.success ) {\r\n\t\t\t\tconsole.log('Log success!');\r\n\t\t\t} else {\r\n\t\t\t\tconsole.log('Log failed!');\r\n\t\t\t}\r\n\t\t}\r\n\t}),\r\n\tlogConversion = logView.extend({ url: inc_opt.ajaxurl + '?action=hustle_custom_content_converted' });\r\n\r\n\tlogView = new logView();\r\n\tlogConversion = new logConversion();\r\n \r\n Optin.CC_log_view = logView;\r\n Optin.CC_log_conversion = logConversion;\r\n\r\n\tOptin.CCPopUp = Optin.View.extend({\r\n\t\tisCC: true,\r\n\t\tdisplay_id: 'cc_display',\r\n\t\tshowClass: 'wph-modal-show',\r\n\t\tmaskClass: 'wph-modal--mask',\r\n\t\tcookie_key: Hustle.consts.Never_See_Aagain_Prefix,\r\n\t\tevents: {\r\n\t\t\t'click': 'click',\r\n\t\t\t'click .wph-modal--close .wph-icon': 'closed',\r\n\t\t\t'click .wph-modal--cta': 'fire_conversion_event',\r\n\t\t\t'click .wph-modal-never-see-again': 'closed',\r\n\t\t\t'submit form': 'on_form_submit'\r\n\t\t},\r\n\r\n\t\tinitialize: function( opts ) {\r\n\t\t\tthis.opt = opts;\r\n\t\t\tthis.type = opts.type;\r\n\t\t\tthis.data = opts.content;\r\n\t\t\tthis.optin_id = this.data.optin_id;\r\n\t\t\tthis.settings = opts[this.type];\r\n\t\t\tthis.triggers = this.settings.triggers;\r\n this.tracking_types = opts.tracking_types;\r\n\t\t\tthis.appear_after = this.triggers.trigger + '_trigger';\r\n\t\t\tthis.cookie_key += this.type + '-' + this.optin_id;\r\n\t\t\tthis.expiration_days = this.settings.expiration_days ? parseInt( this.settings.expiration_days ) : 0;\r\n\t\t\tthis.settings.display = this.opt.should_display[this.type];\r\n \r\n\t\t\tif ( ! this.should_display() ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis.model = _.extend(\r\n\t\t\t\tthis.settings,\r\n\t\t\t\topts.design,\r\n\t\t\t\tthis.data,\r\n\t\t\t\t{\r\n\t\t\t\t\tid: this.optin_id,\r\n\t\t\t\t\ttype: this.type,\r\n\t\t\t\t\tposition: this.settings.position,\r\n\t\t\t\t\ttypes: {\r\n\t\t\t\t\t\tpopup: opts.popup,\r\n\t\t\t\t\t\tslide_in: opts.slide_in,\r\n\t\t\t\t\t\tafter_content: opts.after_content\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t);\r\n\r\n\t\t\tif ( _.contains( ['time', 'scrolled', 'adblock'], this.triggers.trigger )\r\n\t\t\t\t|| ( 'exit_intent_trigger' === this.appear_after && _.isTrue( this.settings.on_exit_intent_per_session ) ) ) {\r\n\t\t\t\tthis.should_remove = true;\r\n\t\t\t}\r\n\r\n\t\t\tthis.render();\r\n\t\t},\r\n\r\n\t\trender: function() {\r\n\t\t\tthis.model = _.extend( this.model,\r\n\t\t\t\tthis.handle_custom_size( this.model ),\r\n\t\t\t\tthis.enable_fullscreen( this.model ),\r\n\t\t\t\tthis.sanitize_cta_url( this.model )\r\n\t\t\t);\r\n\r\n\t\t\tvar template = Optin.template( 'hustle-modal-tpl' );\r\n\t\t\t\ttemplate = template( this.model );\r\n\r\n\t\t\tthis.setElement(template);\r\n\t\t\tthis.$el.appendTo(this.parent);\r\n\t\t\tthis.$el.display = $.proxy( this, 'display' );\r\n\t\t\tthis.$el.on( 'show', $.proxy( this, 'onShow' ) );\r\n\t\t\tthis.$el.on( 'show', $.proxy( Hustle.Events, 'trigger', 'cc_modal_shown', this, this.type ) );\r\n\t\t\tthis.$el.on( 'hide', $.proxy( this, 'onHide' ) );\r\n\t\t\tthis.html = this.$el.html();\r\n\r\n\t\t\t// Log view\r\n if ( this.tracking_types != null && _.isTrue( this.tracking_types[this.type] ) ) {\r\n Hustle.Events.once( 'cc_modal_shown', this.logView, this );\r\n }\r\n \r\n // set cookies used for \"show less than\" display condition\r\n Hustle.Events.once( 'cc_modal_shown', this.update_view_count_cookie, this );\r\n\t\t\t\r\n\t\t\t// Fix content size\r\n\t\t\tHustle.Events.on( 'cc_modal_shown', this.fit, this );\r\n\t\t\tHustle.Events.on( 'hustle_resize', this.fit, this );\r\n\r\n\t\t\tthis[this.appear_after]();\r\n \r\n // Fixed compat issue with Caldera Forms conditionals\r\n this.caldera_form_compat();\r\n \r\n\t\t},\r\n \r\n caldera_form_compat: function() {\r\n if( !inc_opt.is_caldera_active ) return;\r\n \r\n if( typeof calders_forms_init_conditions !== 'undefined' ){\r\n calders_forms_init_conditions();\r\n $('.caldera_forms_form').find('[data-field]').first().trigger('change');\r\n };\r\n },\r\n\r\n\t\tlogView: function() {\r\n\t\t\tlogView.set( 'type', this.type );\r\n\t\t\tlogView.set( 'id', this.optin_id );\r\n\t\t\tlogView.save();\r\n\t\t},\r\n\r\n\t\tupdate_view_count_cookie: function() {\r\n\t\t\tif( !window.hasOwnProperty( \"optin_vars\" ) ){ // don't set cookie in admin\r\n\t\t\t\tvar show_count_key = Hustle.consts.Module_Show_Count + this.model.type + \"-\" + this.model.id,\r\n\t\t\t\t\tcurrent_show_count = Hustle.cookie.get( show_count_key );\r\n\t\t\t\tHustle.cookie.set( show_count_key, current_show_count + 1, 90 );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tsanitize_cta_url: function( data ) {\r\n\t\t\tif ( data.cta_url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(data.cta_url)) {\r\n\t\t\t\t\tdata.cta_url = \"http://\" + data.cta_url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\r\n\t\tfire_conversion_event: function(e) {\r\n\t\t\tvar source = $(e.currentTarget).hasClass( \"wph-modal--cta\" ) ? \"cta\" : \"form\";\r\n \r\n if ( this.tracking_types != null && _.isTrue( this.tracking_types[this.type] ) ) {\r\n Hustle.Events.trigger('cc_modal_converted', this, source);\r\n logConversion.set( 'id', this.optin_id );\r\n logConversion.set( 'type', this.type );\r\n logConversion.set( 'source', source );\r\n logConversion.save();\r\n }\r\n\t\t},\r\n\r\n\t\tenable_fullscreen: function( data ) {\r\n\t\t\tdata.fullscreen = '';\r\n\r\n\t\t\tif ( 'popup' === this.type && this.settings.make_fullscreen ) {\r\n\t\t\t\tdata.fullscreen = 'wph-modal-popup-fullscreen';\r\n\t\t\t}\r\n\r\n\t\t\treturn data;\r\n\t\t},\r\n\r\n\t\thandle_custom_size: function( data ){\r\n\t\t\tdata.custom_size_attr = '';\r\n\t\t\tdata.custom_size_class = '';\r\n\r\n\t\t\tif ( data.customize_size && _.isTrue( data.customize_size ) ) {\r\n\t\t\t\tdata.custom_size_class = 'wph-modal--custom';\r\n\t\t\t\tdata.custom_size_attr += 'data-custom_width='+ data.custom_width +' data-custom_height='+ data.custom_height +'';\r\n\t\t\t}\r\n\t\t\tif ( data.border && _.isTrue( data.border ) ) {\r\n\t\t\t\tdata.custom_size_attr += ' data-border='+ data.border_weight;\r\n\t\t\t}\r\n\r\n\t\t\treturn data;\r\n\t\t},\r\n\r\n\t\ton_form_submit: function(e) {\r\n\t\t\tvar self = this,\r\n $form = $(e.target),\r\n on_submit = this.settings.on_submit;\r\n\r\n // Delay to allow for form submission and see if server-side validation was successful or not\r\n\t\t\twindow.setTimeout( $.proxy(function(){\r\n //The specific case of Contact Form 7: cancel CC close behaviour to allow the user retry submitting the form\r\n if( $form.hasClass(\"wpcf7-form\") && $form.hasClass(\"invalid\") ) return;\r\n switch ( on_submit ){\r\n default:\r\n case 'refresh_or_close':\r\n this.closed(e);\r\n break;\r\n case \"close\":\r\n case 'close_after_form_submit':\r\n this.closed(e);\r\n\r\n break;\r\n case \"redirect\":\r\n case 'redirect_to_form_target':\r\n window.location.replace( $form.attr(\"action\") );\r\n break;\r\n case 'refresh_or_nothing':\r\n break;\r\n }\r\n\t\t\t}, this), 1500 );\r\n\r\n\r\n\t\t}\r\n\t});\r\n\r\n\tOptin.CCSlideIn = Optin.CCPopUp.extend({\r\n\t\tkey_prefix: '',\r\n\t\thide_all_key: '',\r\n\t\tdelay_time: 0,\r\n\r\n\t\tshould_display: function() {\r\n\t\t\tthis.key_prefix = Hustle.consts.Slide_Cookie_Prefix + this.optin_id;\r\n\t\t\tthis.hide_all_key = Hustle.consts.Slide_Cookie_Hide_All + this.optin_id;\r\n\t\t\tthis.delay_time = this.settings.hide_after_unit === \"minutes\" ? parseInt( this.settings.hide_after_val, 10 ) * 60 * 1000 : parseInt( this.settings.hide_after_val, 10 ) * 1000;\r\n\r\n\t\t\tvar opt_cookie_never_see = Optin.cookie.get( this.cookie_key );\r\n\r\n\t\t\tif ( _.isFalse( opt_cookie_never_see ) ) {\r\n\t\t\t\t// Check prefix\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( this.key_prefix );\r\n\t\t\t}\r\n\t\t\tif ( _.isFalse( opt_cookie_never_see ) ) {\r\n\t\t\t\t// Check hide all\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( this.hide_all_key );\r\n\t\t\t}\r\n\r\n\t\t\tif ( 'keep_showing' === this.settings.after_close && opt_cookie_never_see ) {\r\n\t\t\t\topt_cookie_never_see = false;\r\n\t\t\t\tOptin.cookie.set( this.cookie_key, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( this.key_prefix, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( this.hide_all_key, this.optin_id, 0 );\r\n\t\t\t}\r\n \r\n this.add_mask = _.noop;\r\n\r\n\t\t\treturn this.opt.should_display[this.type] && !_.isTrue(opt_cookie_never_see);\r\n\t\t},\r\n\r\n\t\tonShow: function() {\r\n\t\t\tif( _.isTrue( this.settings.hide_after ) ) {\r\n var me = this;\r\n\r\n var delay_id = _.delay(function(){\r\n\t\t\t\t\tif ( ! me.prevent_hide_after ) {\r\n\t\t\t\t\t\t// if hide after is not prevented, then hide it\r\n me.$el.removeClass(me.showClass);\r\n if ( me.mask ) {\r\n me.mask.trigger('click');\r\n }\r\n\t\t\t\t\t}\r\n }, this.delay_time );\r\n }\r\n\r\n\t\t\tOptin.CCPopUp.prototype.onShow.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\tonHide: function() {\r\n\t\t\tvar should_remove = false;\r\n\r\n\t\t\tif ( 'hide_all' === this.settings.after_close ) {\r\n\t\t\t\tOptin.cookie.set( this.key_prefix, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n\t\t\t}\r\n\t\t\tif( 'no_show' === this.settings.after_close ) {\r\n Optin.cookie.set( this.hide_all_key, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n }\r\n\r\n\t\t\tif ( should_remove ) {\r\n\t\t\t\t// Remove completely\r\n if ( this.mask ) {\r\n this.mask.remove();\r\n }\r\n\t\t\t\tthis.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclick: function() {\r\n\t\t\tthis.prevent_hide_after = true;\r\n\t\t}\r\n\t});\r\n\r\n\tOptin.CCAfterContent = Optin.CCPopUp.extend({\r\n\t\tshould_display: function() {\r\n\r\n\t\t\t// If animation is off, disable in/out animation\r\n\t\t\tif ( _.isFalse( this.settings.animate ) ) {\r\n\t\t\t\tthis.settings.animation_in = this.settings.animation_out = false;\r\n\t\t\t} else {\r\n\t\t\t\tthis.settings.animation_in = this.settings.animation_out = this.settings.animation;\r\n\t\t\t}\r\n\r\n\t\t\t// Disable mask\r\n\t\t\tthis.add_mask = _.noop;\r\n\t\t\t// Set parent container\r\n\t\t\tthis.parent = '#cc-' + this.opt.uniq_id;\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\t});\r\n\r\n}(jQuery, document, window));","(function( $ ) {\r\n \"use strict\";\r\n\tif( inc_opt.is_upfront ) return;\r\n\r\n\tOptin = window.Optin || {};\r\n\tOptin.AfterContent = function() {\r\n\t\tvar $this = $(this),\r\n\t\t\toptin_id = $this.data( 'id' ),\r\n\t\t\toptin, html;\r\n\r\n\t\toptin = _.find(Optins, function (opt) {\r\n return optin_id == opt.data.optin_id;\r\n });\r\n\r\n\t\t$this.data('handle', _.findKey(Optins, optin));\r\n\t\t$this.data('type', 'after_content');\r\n\r\n\t\t$this.html( Optin.render_optin(optin) );\r\n\r\n\t\tif (optin.settings.after_content.animate\r\n\t\t\t&& 'true' == optin.settings.after_content.animate ) {\r\n\r\n $this.addClass(optin.settings.after_content.animation);\r\n\r\n\t\t\t_.delay(function() {\r\n\t\t\t\t$this.addClass('wpoi-show');\r\n\t\t\t}, 750 );\r\n }\r\n\r\n\t\t// add provider args\r\n $this.find(\".wpoi-provider-args\").html( Optin.render_provider_args( optin ) );\r\n\r\n\t\t$(document).trigger(\"wpoi:display\", [\"after_content\", $this, optin ]);\r\n\r\n\t};\r\n\r\n}(jQuery));","(function( $, doc, win ) {\r\n \"use strict\";\r\n if( inc_opt.is_upfront ) return;\r\n\r\n\tOptin = window.Optin || {};\r\n \r\n\tOptin.PopUp = Optin.View.extend({\r\n\t\tclassName: 'inc_opt_popup wpoi-animate inc_optin',\r\n\t\ttype: 'popup'\r\n\t});\r\n}(jQuery, document, window));","(function( $, doc, win ) {\r\n \"use strict\";\r\n if( inc_opt.is_upfront ) return;\r\n\r\n\tOptin = window.Optin || {};\r\n\r\n\tOptin.SlideIn = Optin.View.extend({\r\n\t\tclassName: 'inc_opt_slidein inc_optin wpoi-slide',\r\n\t\ttype: 'slide_in',\r\n\t\tprevent_hide_after: false,\r\n\t\tdelay_time: 0,\r\n\r\n\t\tshould_display: function() {\r\n\t\t\tvar cookie_key = 'popup' === this.type ? Optin.POPUP_COOKIE_PREFIX : Optin.SLIDE_IN_COOKIE_PREFIX;\r\n\t\t\tcookie_key += this.optin_id;\r\n\r\n\t\t\tvar opt_cookie_never_see = Optin.cookie.get( cookie_key );\r\n \r\n this.add_mask = _.noop;\r\n\r\n\t\t\tif ( ! opt_cookie_never_see ) {\r\n\t\t\t\t// Check cookie prefix\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( Optin.SLIDE_IN_COOKIE_PREFIX + this.optin_id );\r\n\t\t\t}\r\n\t\t\tif ( ! opt_cookie_never_see ) {\r\n\t\t\t\t// Check hide_all\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( Optin.SLIDE_IN_COOKIE_HIDE_ALL + this.optin_id );\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\tif ( 'keep_showing' === this.settings.after_close && opt_cookie_never_see ) {\r\n\t\t\t\topt_cookie_never_see = false;\r\n\t\t\t\t// Reset all cookies\r\n\t\t\t\tOptin.cookie.set( Optin.SLIDE_IN_COOKIE_PREFIX + this.optin_id, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( Optin.SLIDE_IN_COOKIE_HIDE_ALL + this.optin_id, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( cookie_key, this.optin_id, 0 );\r\n\t\t\t}\r\n\r\n\t\t\treturn _.isTrue( this.settings.display ) && ! _.isTrue( opt_cookie_never_see );\r\n\t\t},\r\n\r\n\t\trender: function() {\r\n\t\t\tvar cLass = 'inc_opt_slidein inc_opt_slidein_' + this.settings.position + ' inc_optin wpoi-slide';\r\n\t\t\tthis.delay_time = this.settings.hide_after_unit === \"minutes\" ? parseInt( this.settings.hide_after_val, 10 ) * 60 * 1000 : parseInt( this.settings.hide_after_val, 10 ) * 1000;\r\n\r\n\t\t\tthis.$el.addClass( cLass );\r\n\r\n\t\t\tOptin.View.prototype.render.apply( this, arguments );\r\n\t\t},\r\n\r\n\t\tonShow: function() {\r\n if ( this.mask ) {\r\n this.mask.removeClass('wpoi-show');\r\n }\r\n\r\n\t\t\tif( _.isTrue( this.settings.hide_after ) ) {\r\n var me = this;\r\n\r\n var delay_id = _.delay(function(){\r\n\t\t\t\t\tif ( ! me.prevent_hide_after ) {\r\n\t\t\t\t\t\t// if hide after is not prevented, then hide it\r\n me.$el.removeClass(\"wpoi-show\");\r\n\t\t\t\t\t\tme.$el.trigger( 'hide' );\r\n\t\t\t\t\t}\r\n }, this.delay_time );\r\n }\r\n\t\t\tOptin.View.prototype.onShow.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\tonHide: function() {\r\n\t\t\tvar should_remove = false;\r\n\r\n\t\t\tif ( 'hide_all' === this.settings.after_close ) {\r\n\t\t\t\tOptin.cookie.set( Optin.SLIDE_IN_COOKIE_HIDE_ALL, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n\t\t\t}\r\n\t\t\tif( \"no_show\" === this.settings.after_close ) {\r\n Optin.cookie.set( Optin.SLIDE_IN_COOKIE_PREFIX + this.optin_id, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n }\r\n\r\n\t\t\tif ( should_remove ) {\r\n\t\t\t\t// Remove completely\r\n if ( this.mask ) {\r\n this.mask.remove();\r\n }\r\n\t\t\t\tthis.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclick: function() {\r\n\t\t\tthis.prevent_hide_after = true;\r\n\t\t}\r\n\t});\r\n}(jQuery, document, window));","(function($, doc, win){\r\n \"use strict\";\r\n \r\n var Optin = window.Optin || {};\r\n \r\n Optin.SS_log_view = Backbone.Model.extend({\r\n\t\turl: inc_opt.ajaxurl + '?action=hustle_social_sharing_viewed',\r\n\t\tdefaults: {\r\n\t\t\tpage_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n type: '',\r\n uri: encodeURI( window.location.href )\r\n\t\t},\r\n\t\tparse: function( res ) {\r\n\t\t\tif ( res.success ) {\r\n\t\t\t\tconsole.log('Log success!');\r\n\t\t\t} else {\r\n\t\t\t\tconsole.log('Log failed!');\r\n\t\t\t}\r\n\t\t}\r\n\t}),\r\n\tOptin.SS_log_conversion = Optin.SS_log_view.extend({ url: inc_opt.ajaxurl + '?action=hustle_social_sharing_converted' });\r\n \r\n Optin.SS_native_share_enpoints = {\r\n 'facebook': 'https://www.facebook.com/sharer/sharer.php?u=',\r\n 'twitter': 'https://twitter.com/intent/tweet?url=',\r\n 'google': 'https://plus.google.com/share?url=',\r\n 'pinterest': 'https://www.pinterest.com/pin/create/button/?url=',\r\n 'reddit': 'https://www.reddit.com/submit?url=',\r\n 'linkedin': 'https://www.linkedin.com/shareArticle?mini=true&url=',\r\n 'vkontakte': 'https://vk.com/share.php?url=',\r\n };\r\n \r\n Optin.Social_Sharing = Backbone.View.extend({\r\n template: Optin.template(\"hustle-social-tpl\"),\r\n events: {\r\n 'click a.native-social-share': 'click_social_native',\r\n 'click a.linked-social-share': 'click_social_linked'\r\n },\r\n initialize: function( opts ) {\r\n this.opts = opts;\r\n this.optin_id = opts.optin_id;\r\n this.services = opts.services;\r\n this.appearance = opts.appearance;\r\n this.floating_social = opts.floating_social;\r\n this.is_compat = ( typeof opts.is_compat !== 'undefined' ) \r\n ? true\r\n : false;\r\n \r\n if ( typeof opts.parent !== 'undefined' ) {\r\n this.parent = opts.parent;\r\n }\r\n \r\n this.model_json = _.extend(\r\n {\r\n id: this.optin_id,\r\n display_type: this.display_type\r\n },\r\n this.services,\r\n this.appearance,\r\n this.floating_social\r\n );\r\n \r\n this.render();\r\n },\r\n\r\n render: function(args){\r\n var parent_container = this.parent,\r\n location_align_x = this.model_json.location_align_x,\r\n location_align_y = this.model_json.location_align_y,\r\n current_tpl_settings = _.templateSettings;\r\n \r\n // if needs compatibility e.g. upfront which uses another _.templateSettings\r\n if ( this.is_compat ) {\r\n Optin.global_mixin();\r\n // force our _.templateSettings setup\r\n _.templateSettings = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n }\r\n \r\n this.setElement( this.template( _.extend( {}, this.model_json ) ) );\r\n \r\n if ( this.module_display_type == 'floating_social' ) { \r\n if ( this.model_json.location_type == 'content' ) {\r\n parent_container = $('#content');\r\n } else if ( this.model_json.location_type == 'selector' ) {\r\n parent_container = $( this.model_json.location_target );\r\n } else {\r\n parent_container = $('body');\r\n }\r\n }\r\n \r\n if ( parent_container.length == 0 ) return;\r\n this.$el.appendTo(parent_container);\r\n \r\n var $widget_ss = $('.inc_social_sharing_widget_wrap .wph-social-sharing, .inc_social_sharing_shortcode_wrap .wph-social-sharing'),\r\n $main_container = ( this.module_display_type === 'floating_social' )\r\n ? $(parent_container).find('.wph-social-sharing-' + this.model_json.id ).not($widget_ss)\r\n : $(parent_container).find('.wph-social-sharing-' + this.model_json.id ),\r\n $sshare_container = $main_container.find('.wph-sshare--container');\r\n \r\n this._handle_icons_order();\r\n _.each( this.model_json.social_icons, $.proxy(function( data, key ) {\r\n \r\n var icon_template = ( this.model_json.icon_style == 'one' )\r\n ? Optin.template('wpoi-sshare-'+ key +'-one-svg-front')\r\n : Optin.template('wpoi-sshare-'+ key +'-svg-front');\r\n \r\n var link = ( this.model_json.service_type == 'native' ) \r\n ? '#'\r\n : this.sanitize_url(data.link);\r\n \r\n var target = ( this.model_json.service_type == 'native' ) \r\n ? ''\r\n : 'target=\"_blank\"';\r\n \r\n // append social icons\r\n var native_class = 'linked-social-share',\r\n icon_html = icon_template(); \r\n \r\n if ( this.model_json.service_type == 'native' ) {\r\n native_class = 'native-social-share';\r\n if ( _.isTrue( this.model_json.click_counter ) ) {\r\n icon_html += '<div class=\"wph-sshare_social_counter\"><span>'+ data.counter +'</span></div>';\r\n }\r\n }\r\n \r\n var social_sharing_html = '<a data-social=\"'+ key +'\" class=\"'+ native_class +'\" href=\"'+ link +'\" '+ target +' >'+ icon_html +'</a>';\r\n $sshare_container.append(social_sharing_html);\r\n \r\n }, this) );\r\n \r\n if ( this.module_display_type == 'floating_social' ) {\r\n $main_container.addClass('wph-social-sharing-float');\r\n if ( location_align_x == 'left' ) {\r\n $main_container.css( 'left', this.model_json.location_left + 'px' );\r\n } else {\r\n $main_container.css( 'right', this.model_json.location_right + 'px' );\r\n }\r\n if ( location_align_y == 'top' ) {\r\n $main_container.css( 'top', this.model_json.location_top + 'px' );\r\n } else {\r\n $main_container.css( 'bottom', this.model_json.location_bottom + 'px' );\r\n }\r\n }\r\n \r\n if ( this.model_json.service_type == 'native' ) {\r\n if ( this.module_display_type == 'floating_social' ) {\r\n if ( this.model_json.floating_inline_count == '1' ) {\r\n $sshare_container.addClass('wph-sshare--count_inline');\r\n } else {\r\n $sshare_container.addClass('wph-sshare--count_block');\r\n }\r\n } else {\r\n if ( this.model_json.widget_inline_count == '1' ) {\r\n $sshare_container.addClass('wph-sshare--count_inline');\r\n } else {\r\n $sshare_container.addClass('wph-sshare--count_block');\r\n }\r\n }\r\n }\r\n \r\n // after getting the template, revert back to previous _.templateSettings\r\n if ( this.is_compat ) {\r\n _.templateSettings = current_tpl_settings;\r\n }\r\n \r\n this.html = this.$el.html();\r\n this.log_view(this.module_display_type, this.opts);\r\n },\r\n _handle_icons_order: function() {\r\n var reordered = {},\r\n social_icons = this.model_json.social_icons,\r\n icons_order = this.model_json.icons_order,\r\n icons_order_arr = icons_order.split(',');\r\n \r\n if ( icons_order && icons_order_arr.length ) {\r\n _.each(icons_order_arr, function( data, key ) {\r\n if ( typeof social_icons[data] !== 'undefined' ) {\r\n reordered[data] = social_icons[data];\r\n social_icons = _.pick(social_icons, function(val, index){\r\n if ( data !== index ) {\r\n return index = val;\r\n }\r\n });\r\n }\r\n });\r\n \r\n // if still have some, append those\r\n if ( Object.keys(social_icons).length ) {\r\n reordered = _.extend( reordered, _.pick(social_icons, function(val, index) {\r\n if ( typeof val !== 'undefined' ) {\r\n return index = val;\r\n }\r\n }) );\r\n }\r\n \r\n this.model_json.social_icons = reordered;\r\n }\r\n },\r\n sanitize_url: function( url ) {\r\n\t\t\tif ( url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(url)) {\r\n\t\t\t\t\turl = \"http://\" + url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn url;\r\n\t\t},\r\n click_social_native: function(e) {\r\n e.preventDefault();\r\n var me = this,\r\n $this = this.$(e.target),\r\n $anchor = $this.closest('a.native-social-share'),\r\n social = $anchor.data('social');\r\n \r\n this._update_social_counter($anchor);\r\n // update other module with same social icon\r\n $('a[data-social=\"'+ social +'\"]').not($anchor).each( function(){\r\n me._update_social_counter($(this));\r\n } );\r\n \r\n // update social counter and log conversion\r\n this.log_conversion(this.module_display_type, this.opts, social, 'native');\r\n \r\n if ( social && typeof Optin.SS_native_share_enpoints[social] != 'undefined' ) {\r\n window.open(\r\n Optin.SS_native_share_enpoints[social]+ hustle_vars.current_url, \r\n 'MsgWindow', \r\n 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes'\r\n );\r\n }\r\n },\r\n click_social_linked: function(e) {\r\n var $this = this.$(e.target),\r\n $anchor = $this.closest('a.linked-social-share'),\r\n social = $anchor.data('social');\r\n \r\n // log conversion only if allowed\r\n if ( this.opts.tracking_types != null && _.isTrue( this.opts.tracking_types[this.module_display_type] ) ) {\r\n this.log_conversion(this.module_display_type, this.opts, social, 'linked');\r\n }\r\n },\r\n _update_social_counter: function($a){\r\n _.delay(function(){\r\n var $counter = $a.find('.wph-sshare_social_counter span');\r\n if ( $counter.length ) {\r\n var val = parseInt($counter.text()) + 1;\r\n $counter.text(val);\r\n }\r\n }, 5000);\r\n },\r\n log_view: function( type, ss ){\r\n if ( ss.tracking_types != null && _.isTrue( ss.tracking_types[type] ) ) {\r\n if ( typeof Optin.SS_log_view != 'undefined' ) {\r\n var logView = new Optin.SS_log_view();\r\n logView.set( 'type', type );\r\n logView.set( 'id', ss.optin_id );\r\n logView.save();\r\n }\r\n }\r\n // set cookies used for \"show less than\" display condition\r\n if( !window.hasOwnProperty( \"optin_vars\" ) ){ // don't set cookie in admin\r\n var show_count_key = Hustle.consts.SS_Module_Show_Count + type + \"-\" + ss.optin_id,\r\n current_show_count = Hustle.cookie.get( show_count_key );\r\n Hustle.cookie.set( show_count_key, current_show_count + 1, 90 );\r\n }\r\n },\r\n log_conversion: function( type, ss, source, service_type ) {\r\n var track_converstion = ( ss.tracking_types != null && _.isTrue( ss.tracking_types[type] ) )\r\n ? true\r\n : false;\r\n \r\n if ( typeof Optin.SS_log_conversion != 'undefined' ) {\r\n var logConversion = new Optin.SS_log_conversion();\r\n logConversion.set( 'type', type );\r\n logConversion.set( 'id', ss.optin_id );\r\n logConversion.set( 'source', source + '_icon' );\r\n logConversion.set( 'track', track_converstion );\r\n logConversion.set( 'service_type', service_type );\r\n logConversion.save();\r\n }\r\n }\r\n });\r\n \r\n Optin.SS_floating = Optin.Social_Sharing.extend({\r\n module_display_type: 'floating_social',\r\n display_type: 'column'\r\n });\r\n \r\n Optin.SS_widget = Optin.Social_Sharing.extend({\r\n module_display_type: 'widget',\r\n display_type: 'row'\r\n });\r\n \r\n Optin.SS_shortcode = Optin.Social_Sharing.extend({\r\n module_display_type: 'shortcode',\r\n display_type: 'row'\r\n });\r\n\r\n}(jQuery, document, window));","(function( $ ) {\r\n\t\"use strict\";\r\n\t/**\r\n * Functions for saving conversion data\r\n */\r\n\tOptin = Optin || {};\r\n\tOptin.handle_cc_shortcode_conversion = function(cc_id, type){\r\n var $win = $(window),\r\n $doc = $(document);\r\n\t\t\r\n\t\t$($doc).on(\"click\", \"a.wph-cc-shortcode--cta\", function(e){\r\n if ( typeof Optin.CC_log_conversion != 'undefined' ) {\r\n Optin.CC_log_conversion.set( 'id', cc_id );\r\n Optin.CC_log_conversion.set( 'type', type );\r\n Optin.CC_log_conversion.set( 'source', 'cta' );\r\n Optin.CC_log_conversion.save();\r\n }\r\n\t\t});\r\n };\r\n\t\r\n /**\r\n * Render inline optins ( widget )\r\n */\r\n Optin.inc_opt_render_widgets = function(use_compat){ \r\n\t\t// rendering widgets, shortcodes for Custom Content\r\n\t\t$(\".inc_cc_widget_wrap, .inc_cc_shortcode_wrap\").each(function () {\r\n var $this = $(this),\r\n id = $this.data(\"id\"),\r\n type = $this.is(\".inc_cc_widget_wrap\") ? \"widget\" : \"shortcode\";\r\n\r\n if( !id ) return;\r\n\t\t\t\r\n var cc = _.find(Hustle_Custom_Contents, function (opt) {\r\n return id == opt.content.optin_id;\r\n });\r\n \r\n if (!cc) return;\r\n \r\n var settings = $.parseJSON(cc.settings);\r\n if ( settings === null ) return;\r\n if ( !_.isTrue( settings[type].enabled ) ) return;\r\n\t\t\t\r\n\t\t\t$this.data(\"handle\", _.findKey(Hustle_Custom_Contents, cc));\r\n $this.data(\"type\", type);\r\n\t\t\t\r\n\t\t\t// sanitize cta_url \r\n\t\t\tif ( cc.design.cta_url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(cc.design.cta_url)) {\r\n\t\t\t\t\tcc.design.cta_url = \"http://\" + cc.design.cta_url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcc.type = type;\r\n\t\t\tvar html = Optin.render_cc_shortcode( cc, use_compat );\r\n\t\t\t// Optin.handle_cc_scroll( $this, type, id );\r\n\t\t\t$this.html(html);\r\n \r\n if ( cc.tracking_types !== null && _.isTrue( cc.tracking_types[type] ) ) {\r\n _.delay(function(){\r\n $(document).trigger(\"wpoi:cc_shortcode_or_widget_viewed\", [type, id]);\r\n }, _.random(0, 300));\r\n \r\n Optin.handle_cc_shortcode_conversion(id, type);\r\n }\r\n });\r\n\t\t\r\n\t\t// rendering widgets, shortcodes for Opt-in\r\n $(\".inc_opt_widget_wrap, .inc_opt_shortcode_wrap\").each(function () {\r\n var $this = $(this),\r\n id = $this.data(\"id\"),\r\n type = $this.is(\".inc_opt_widget_wrap\") ? \"widget\" : \"shortcode\";\r\n \r\n if( !id ) return;\r\n\t\t\t\r\n var optin = _.find(Optins, function (opt) {\r\n return id == opt.data.optin_id;\r\n });\r\n\r\n if (!optin) return;\r\n\r\n $this.data(\"handle\", _.findKey(Optins, optin));\r\n $this.data(\"type\", type);\r\n \r\n var html = Optin.render_optin( optin, use_compat );\r\n\r\n // Optin.handle_scroll( $this, type, optin );\r\n\r\n\r\n $this.html(html);\r\n\r\n // add provider args\r\n $this.find(\".wpoi-provider-args\").html( Optin.render_provider_args( optin ) );\r\n\r\n _.delay(function(){\r\n $(document).trigger(\"wpoi:display\", [type, $this, optin ]);\r\n }, _.random(0, 300));\r\n\r\n });\r\n \r\n // rendering social sharing modules widget and shortcode\r\n $(\".inc_social_sharing_widget_wrap, .inc_social_sharing_shortcode_wrap\").each( function() {\r\n var $this = $(this),\r\n id = $this.data(\"id\"),\r\n type = $this.is(\".inc_social_sharing_widget_wrap\") ? \"widget\" : \"shortcode\";\r\n \r\n if( !id ) return;\r\n\t\t\t\r\n var ss = _.find(Hustle_SS_Modules, function (opt) {\r\n return id == opt.optin_id;\r\n });\r\n \r\n if (!ss) return;\r\n \r\n var settings = $.parseJSON(ss.settings);\r\n if ( settings === null ) return;\r\n if ( !_.isTrue( settings[type].enabled ) ) return;\r\n \r\n ss.parent = $this;\r\n if ( typeof use_compat !== 'undefined' && use_compat ) {\r\n ss.is_compat = true;\r\n }\r\n \r\n $this.html('');\r\n if ( type == 'widget' ) {\r\n new Optin.SS_widget(ss);\r\n } else {\r\n new Optin.SS_shortcode(ss);\r\n }\r\n });\r\n\t\t\r\n };\r\n\r\n Optin.inc_opt_render_widgets(false);\r\n \r\n Hustle.Events.on(\"upfront:editor:widget:render\", function(widget) {\r\n Optin.inc_opt_render_widgets(true);\r\n });\r\n Hustle.Events.on(\"upfront:editor:shortcode:render\", function(shortcode) {\r\n Optin.inc_opt_render_widgets(true);\r\n });\r\n\r\n}(jQuery));","(function( $, doc, win ) {\r\n \"use strict\";\r\n if( inc_opt.is_upfront ) return;\r\n\r\n\t// Listen to exit intent\r\n\t$(doc).on( 'mouseleave', $.proxy( Hustle.Events, 'trigger', 'exit_intended' ) );\r\n\r\n\t// Listen to resize event\r\n\t$(window).on( 'resize', $.proxy( Hustle.Events, 'trigger', 'hustle_resize' ) );\r\n\r\n\t// Opt-In\r\n\t$.each( _.keys(Optins), function(i, k){\r\n\t\tvar opt = Optins[k],\r\n\t\t\tsettings = opt.settings,\r\n\t\t\toptin_id = opt.data.optin_id,\r\n\t\t\targs = {key: k};\r\n\r\n\t\t// Check for enabled popup\r\n\t\tif ( settings.popup && settings.popup.enabled\r\n\t\t\t&& ! _.isTrue( Optin.cookie.get( Optin.POPUP_COOKIE_PREFIX + optin_id ) ) ) {\r\n\t\t\tnew Optin.PopUp(args);\r\n\t\t}\r\n\r\n\t\t// Check for enabled slide_in\r\n\t\tif ( settings.slide_in && settings.slide_in.enabled\r\n\t\t\t&& ! _.isTrue( Optin.cookie.get( Optin.SLIDE_IN_COOKIE_HIDE_ALL ) ) ) {\r\n\t\t\tnew Optin.SlideIn(args);\r\n\t\t}\r\n\r\n\t\t// Check for enabled after_content\r\n\t\tif ( settings.after_content && settings.after_content.enabled ) {\r\n\t\t\tvar after_content = $('[data-id=\"' + optin_id + '\"]').filter(function() {\r\n\t\t\t\treturn $(this).is('.inc_opt_after_content_wrap');\r\n\t\t\t});\r\n\r\n\t\t\tif ( after_content.length ) {\r\n\t\t\t\tafter_content.each(Optin.AfterContent);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// CUSTOM CONTENT\r\n // console.log(Hustle_Custom_Contents);\r\n\t$.each(Hustle_Custom_Contents, function(uniq_id, cc) {\r\n\t\tcc.id = uniq_id;\r\n\r\n\t\tif ( cc.should_display ) {\r\n\t\t\t// Check for enabled popup\r\n\t\t\tif ( _.isTrue(cc.should_display.popup) && _.isTrue(cc.popup.enabled) ) {\r\n\t\t\t\tcc.type = 'popup';\r\n\t\t\t\tnew Optin.CCPopUp(cc);\r\n\t\t\t}\r\n\r\n\t\t\t// Check for enabled slide_in\r\n\t\t\tif ( _.isTrue(cc.should_display.slide_in) && _.isTrue(cc.slide_in.enabled) ) {\r\n\t\t\t\tcc.type = 'slide_in';\r\n\t\t\t\tnew Optin.CCSlideIn(cc);\r\n\t\t\t}\r\n\r\n\t\t\tif ( cc.after_content && _.isTrue(cc.should_display.after_content) && _.isTrue(cc.after_content.enabled) ){\r\n\t\t\t\tcc.type = 'after_content';\r\n\t\t\t\tcc.uniq_id = uniq_id;\r\n\t\t\t\tnew Optin.CCAfterContent(cc);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n \r\n \r\n // SOCIAL SHARING\r\n _.each(Hustle_SS_Modules, function(ss, key) {\r\n if ( _.isTrue(ss.floating_social.enabled) && _.isTrue(ss.is_floating_social_allowed) ) {\r\n new Optin.SS_floating(ss);\r\n }\r\n });\r\n \r\n}(jQuery, document, window));"]}
1
+ {"version":3,"sources":["backbone-view-model-min.js","hustle.js","utils.js","modal.js","display_triggers.js","log.js","scroll.js","submit.js","front_utils.js","overlay.js","custom-content-overlay.js","after_content.js","popup.js","slide-in.js","social_sharing.js","widgets.js","ztriggers.js"],"names":["t","e","self","global","define","amd","i","r","n","Backbone","exports","require","_","jQuery","Zepto","ender","$","s","Array","prototype","slice","VERSION","noConflict","this","emulateHTTP","emulateJSON","a","o","call","arguments","unshift","apply","h","each","isFunction","isObject","_isModel","l","isString","get","matches","attributes","u","Events","c","f","context","keys","length","test","split","on","d","_events","v","ctx","listening","_listeners","id","listenTo","_listenId","uniqueId","_listeningTo","obj","objId","listeningTo","count","push","callback","off","g","listeners","stopListening","_callback","once","p","bind","listenToOnce","trigger","Math","max","m","all","concat","unbind","extend","y","Model","cid","cidPrefix","collection","parse","result","defaults","set","changed","initialize","validationError","idAttribute","toJSON","clone","sync","escape","has","iteratee","_validate","unset","silent","_changing","_previousAttributes","isEqual","_pending","clear","hasChanged","isEmpty","changedAttributes","size","previous","previousAttributes","fetch","success","B","save","validate","wait","isNew","patch","attrs","destroy","defer","url","F","replace","encodeURIComponent","constructor","isValid","b","values","pairs","invert","pick","omit","chain","x","Collection","model","comparator","_reset","reset","w","add","remove","merge","E","I","min","map","isArray","_removeModels","changes","added","merged","removed","at","sort","_prepareModel","_addReference","models","some","index","_removeReference","previousModels","pop","shift","_byId","modelId","where","findWhere","Error","sortBy","pluck","create","indexOf","splice","_onModelEvent","S","forEach","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","any","include","includes","contains","invoke","toArray","first","head","take","initial","rest","tail","drop","last","without","difference","shuffle","lastIndexOf","sample","partition","groupBy","countBy","indexBy","findIndex","findLastIndex","k","View","P","_ensureElement","T","tagName","$el","render","_removeElement","setElement","undelegateEvents","_setElement","delegateEvents","el","match","delegate","undelegate","_createElement","document","createElement","className","_setAttributes","attr","H","type","dataType","data","contentType","JSON","stringify","_method","beforeSend","setRequestHeader","processData","error","textStatus","errorThrown","xhr","ajax","update","delete","read","Router","routes","_bindRoutes","A","C","R","j","route","isRegExp","_routeToRegExp","history","_extractParameters","execute","navigate","RegExp","exec","decodeURIComponent","N","History","handlers","checkUrl","window","location","M","O","U","started","interval","atRoot","pathname","root","getSearch","matchRoot","decodeFragment","decodeURI","href","getHash","getPath","charAt","getFragment","_usePushState","_wantsHashChange","start","options","hashChange","_hasHashChange","documentMode","_useHashChange","_wantsPushState","pushState","_hasPushState","fragment","iframe","src","style","display","tabIndex","body","insertBefore","firstChild","contentWindow","open","close","hash","addEventListener","attachEvent","_checkUrlInterval","setInterval","loadUrl","stop","removeEventListener","detachEvent","removeChild","clearInterval","title","assign","_updateHash","q","__super__","Hustle","doc","win","_modules","_template_options","evaluate","interpolate","module_name","module","splits","recursive","modules","arr","_module_name","invoked","join","get_modules","__base_events","click .wph-tabs--wrap .wph-tabs--nav li label","events","init_mix","wrap","init","__base_toggle_tab","$this","target","$content","$wrap","closest","$li","not","removeClass","addClass","siblings","template","memoize","compiled","getElementById","innerHTML","create_template","str","cache","get_template_options","cookie","name","cookie_name","ca","substring","_val","value","days","date","expires","isPlainObject","isNaN","Date","setTime","getTime","toGMTString","consts","Never_See_Aagain_Prefix","Module_Show_Count","Slide_Cookie_Prefix","Slide_Cookie_Hide_All","SS_Module_Show_Count","Optin","Models","COOKIE_PREFIX","POPUP_COOKIE_PREFIX","SLIDE_IN_COOKIE_PREFIX","SLIDE_IN_COOKIE_HIDE_ALL","global_mixin","mixin","log","console","toBool","val","isBoolean","toLowerCase","isNumber","isUndefined","isNull","isTrue","toString","isFalse","control_base","checked","current","attribute","selected","disabled","class","conditon","cls","negating_cls","add_class","toUpperCase","findKey","predicate","cb","key","json","String","toInt","parseInt","trim","html","template_compat","is","parent","Mixins","_mixins","_services_mixins","_desing_mixins","_display_mixins","get_mixins","add_services_mixin","get_services_mixins","$mask","opts","subtitle","content","animation_in","animation_out","position","click .wph-modal--close a","submit form","click .wph-modal--cta","click .wph-modal-never-see-again","type_data","types","sanitize_cta_url","enable_fullscreen","handle_custom_size_cc","clicked_background","on_form_submit","enable_body_scroll","hasOwnProperty","$close_btn","hide","preventDefault","delay","hasClass","prev","close_btn_as_never_see","never_see_again","not_close_on_background_click","show","show_count_key","current_show_count","cta_url","fullscreen","optin_provider","make_fullscreen","custom_size_attr","custom_size_class","customize_size","custom_width","custom_height","border","border_weight","allow_scroll_page","fire_conversion_event","source","expiration_days","$form","on_submit","time_trigger","optin","setting","popup","trigger_on_time","trigger_on_time_delay","appear_after_time_unit","appear_after_time_val","scroll_trigger","popup_shown","appear_after","scroll","debounce","pageYOffset","height","appear_after_page_portion_val","appear_after_element_val","top","click_trigger","trigger_on_element_click","$clickable","optin_id","exit_intent_trigger","trigger_on_exit","listen_to_exit_intend","on_exit_trigger_once_per_session","one","adblock_trigger","trigger_on_adblock","is_adblock_enabled","trigger_on_adblock_timed","trigger_on_adblock_delay","trigger_on_adblock_timed_unit","trigger_on_adblock_timed_val","Triggers","time","scrolled","click","exit_intent","adblock","$optin","prev_shown_count","settings","is_test","tracking_types","inc_opt","ajaxurl","action","page_type","page_id","uri","encodeURI","res","cc_id","CC_log_view","handle_scroll","$win","$doc","evt","rect","getBoundingClientRect","left","bottom","innerHeight","documentElement","clientHeight","right","innerWidth","clientWidth","handle_cc_scroll","cc","Hustle_Custom_Contents","opt","validate_form","requireds","errors","error_class","next","$button","$popup","handle","delay_id","Optins","$failure","l10n","submit_failure","clearTimeout","form","serialize","$formParent","design","page_redirect_url","existing","message","on_success","on_success_time","on_success_unit","popup_close","after","complete","closeSuccessContent","parentDiv","parents","$successDiv","check_if_in_view","window_height","$window","window_top_position","scrollTop","window_bottom_position","$animation_elements","$element","element_height","outerHeight","element_top_position","offset","element_bottom_position","add_proper_classes","relocate_mailchimp_button","$parent","width","css","padding","background","$child","$aside","$div","$col","$sidebar","$elements","wrapAll","$image","$section","$figure","$figtwo","$imgtwo","$cabriolet","$simple","$minimal","$header","$footer","$modal_content","$modal_message","$modal_message_section","$modal_image","$modal_img","popup_data","provider_args","group","$clone","$args_container","$mc_fields","append","cc_handle_custom_size","new_data","ev","fn","popup_overlay_delay","get_tpl","layout_id","is_compat","templates","shown","hidden","long_hidden","is_already_shown","popup_id","is_long_hidden","optin_obj","render_provider_args","optin_data","provider_args_tpl","cta_button","render_optin","use_compat","current_tpl_settings","templateSettings","layout","form_location","tpl","_show_args","html_data","image_style","has_args","borders","render_cc_shortcode","add_never_see_link","listening_to_exit_intent","checking_adblock","is_upfront","isCC","display_id","showClass","maskShowClass","add_never_see_again","mask","should_remove","anim_in_time","anim_out_time","viewed","click .inc-opt-close-btn","click .inc_opt_never_see_again","noop","maskClass","add_never_see_this_message","cookie_key","never_see_expiry","triggers","on_time","on_time_delay","on_time_unit","on_scroll","appear_after_scroll","on_scroll_page_percent","on_scroll_css_selector","on_click_element","on_exit_intent","on_exit_intent_per_session","on_adblock","on_adblock_delayed","on_adblock_delayed_time","on_adblock_delayed_unit","should_display","fit","max_height","header_height","containers","message_height","provider","appendTo","proxy","add_mask","no_scroll","no_bg_click","me","not_viewed","selector","parseFloat","scrolled_trigger","closed","sender","currentTarget","is_never_see","close_button_acts_as_never_see_again","clean","onShow","onHide","logView","logConversion","CC_log_conversion","CCPopUp","click .wph-modal--close .wph-icon","slide_in","after_content","handle_custom_size","update_view_count_cookie","caldera_form_compat","is_caldera_active","calders_forms_init_conditions","setTimeout","CCSlideIn","key_prefix","hide_all_key","delay_time","hide_after_unit","hide_after_val","opt_cookie_never_see","after_close","hide_after","prevent_hide_after","CCAfterContent","animate","animation","uniq_id","AfterContent","PopUp","SlideIn","cLass","SS_log_view","SS_log_conversion","SS_native_share_enpoints","facebook","twitter","google","pinterest","reddit","linkedin","vkontakte","Social_Sharing","click a.native-social-share","click a.linked-social-share","services","appearance","floating_social","model_json","display_type","args","parent_container","location_align_x","location_align_y","module_display_type","location_type","location_target","$widget_ss","$main_container","$sshare_container","_handle_icons_order","social_icons","icon_template","icon_style","link","service_type","sanitize_url","native_class","icon_html","click_counter","counter","social_sharing_html","location_left","location_right","location_top","location_bottom","floating_inline_count","widget_inline_count","log_view","reordered","icons_order","icons_order_arr","Object","click_social_native","$anchor","social","_update_social_counter","log_conversion","hustle_vars","current_url","click_social_linked","$a","$counter","text","ss","track_converstion","SS_floating","SS_widget","SS_shortcode","handle_cc_shortcode_conversion","inc_opt_render_widgets","parseJSON","enabled","random","Hustle_SS_Modules","widget","shortcode","is_floating_social_allowed"],"mappings":"CAAA,SAAAA,GAAA,GAAAC,GAAA,gBAAAC,OAAAA,KAAAA,OAAAA,MAAAA,MAAA,gBAAAC,SAAAA,OAAAA,SAAAA,QAAAA,MAAA,IAAA,kBAAAC,SAAAA,OAAAC,IAAAD,QAAA,aAAA,SAAA,WAAA,SAAAE,EAAAC,EAAAC,GAAAP,EAAAQ,SAAAT,EAAAC,EAAAO,EAAAF,EAAAC,SAAA,IAAA,mBAAAG,SAAA,CAAA,GAAAH,GAAAD,EAAAK,QAAA,aAAA,KAAAJ,EAAAI,QAAA,UAAA,MAAAH,IAAAR,EAAAC,EAAAS,QAAAJ,EAAAC,OAAAN,GAAAQ,SAAAT,EAAAC,KAAAA,EAAAW,EAAAX,EAAAY,QAAAZ,EAAAa,OAAAb,EAAAc,OAAAd,EAAAe,IAAA,SAAAhB,EAAAC,EAAAK,EAAAC,GAAA,GAAAC,GAAAR,EAAAS,SAAAQ,EAAAC,MAAAC,UAAAC,KAAAnB,GAAAoB,QAAA,QAAApB,EAAAe,EAAAT,EAAAN,EAAAqB,WAAA,WAAA,MAAAtB,GAAAS,SAAAD,EAAAe,MAAAtB,EAAAuB,aAAA,EAAAvB,EAAAwB,aAAA,CAAA,IAAAC,GAAA,SAAA1B,EAAAC,EAAAM,GAAA,OAAAP,GAAA,IAAA,GAAA,MAAA,YAAA,MAAAM,GAAAL,GAAAsB,KAAAhB,IAAA,KAAA,GAAA,MAAA,UAAAP,GAAA,MAAAM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,EAAAmN,cAAA+F,QAAA,CACA,GAAA/F,GAAA7uB,EAAA,aAAAqgB,EAAA,MAAAlV,OAAA,WACA,MAAAnL,GAAAO,MAAA8a,GAAA,gCAGAwT,GAAA7sB,QACA6sB,EAAA5tB,KAAAyX,MAAAwX,iBAOAlwB,EAAAiB,KAAAsiB,uBAAA,SAAA0M,EAAA3M,GACAA,EAAA5gB,GAAAutB,EAEA3M,EAAAwJ,iBAEAltB,EAAA+Z,OAAA2J,EAAAwJ,eAAA3N,QAAAvf,EAAA+Z,OAAA2J,EAAAnE,MAAAyV,WACAtR,EAAA9U,KAAA,QACA,GAAAkK,OAAAgW,QAAApL,IAIA1jB,EAAA+Z,OAAA2J,EAAAwJ,eAAA8B,WAAAhvB,EAAA+Z,OAAA2J,EAAAsL,SAAAgG,WACAtR,EAAA9U,KAAA,WACA,GAAAkK,OAAA0W,UAAA9L,IAGAA,EAAAuL,eAAAjvB,EAAA+Z,OAAA2J,EAAAwJ,eAAA+B,gBAAAjvB,EAAA+Z,OAAA2J,EAAAuL,cAAA+F,WACAtR,EAAA9U,KAAA,gBACA8U,EAAA2M,QAAAA,EACA,GAAAvX,OAAAoX,eAAAxM,OAOA1jB,EAAAqB,KAAA6zB,kBAAA,SAAAV,EAAAvZ,GACAjb,EAAA+Z,OAAAya,EAAA/C,gBAAAuD,UAAAh1B,EAAA+Z,OAAAya,EAAAa,6BACA,GAAAvc,OAAA4b,YAAAF,OAIAv0B,OAAAqO,SAAA6C","file":"../front.min.js","sourcesContent":["(function(t){var e=typeof self==\"object\"&&self.self===self&&self||typeof global==\"object\"&&global.global===global&&global;if(typeof define===\"function\"&&define.amd){define([\"underscore\",\"jquery\",\"exports\"],function(i,r,n){e.Backbone=t(e,n,i,r)})}else if(typeof exports!==\"undefined\"){var i=require(\"underscore\"),r;try{r=require(\"jquery\")}catch(n){}t(e,exports,i,r)}else{e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}})(function(t,e,i,r){var n=t.Backbone;var s=Array.prototype.slice;e.VERSION=\"1.3.3\";e.$=r;e.noConflict=function(){t.Backbone=n;return this};e.emulateHTTP=false;e.emulateJSON=false;var a=function(t,e,r){switch(t){case 1:return function(){return i[e](this[r])};case 2:return function(t){return i[e](this[r],t)};case 3:return function(t,n){return i[e](this[r],o(t,this),n)};case 4:return function(t,n,s){return i[e](this[r],o(t,this),n,s)};default:return function(){var t=s.call(arguments);t.unshift(this[r]);return i[e].apply(i,t)}}};var h=function(t,e,r){i.each(e,function(e,n){if(i[n])t.prototype[n]=a(e,n,r)})};var o=function(t,e){if(i.isFunction(t))return t;if(i.isObject(t)&&!e._isModel(t))return l(t);if(i.isString(t))return function(e){return e.get(t)};return t};var l=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}};var u=e.Events={};var c=/\\s+/;var f=function(t,e,r,n,s){var a=0,h;if(r&&typeof r===\"object\"){if(n!==void 0&&\"context\"in s&&s.context===void 0)s.context=n;for(h=i.keys(r);a<h.length;a++){e=f(t,e,h[a],r[h[a]],s)}}else if(r&&c.test(r)){for(h=r.split(c);a<h.length;a++){e=t(e,h[a],n,s)}}else{e=t(e,r,n,s)}return e};u.on=function(t,e,i){return d(this,t,e,i)};var d=function(t,e,i,r,n){t._events=f(v,t._events||{},e,i,{context:r,ctx:t,listening:n});if(n){var s=t._listeners||(t._listeners={});s[n.id]=n}return t};u.listenTo=function(t,e,r){if(!t)return this;var n=t._listenId||(t._listenId=i.uniqueId(\"l\"));var s=this._listeningTo||(this._listeningTo={});var a=s[n];if(!a){var h=this._listenId||(this._listenId=i.uniqueId(\"l\"));a=s[n]={obj:t,objId:n,id:h,listeningTo:s,count:0}}d(t,e,r,this,a);return this};var v=function(t,e,i,r){if(i){var n=t[e]||(t[e]=[]);var s=r.context,a=r.ctx,h=r.listening;if(h)h.count++;n.push({callback:i,context:s,ctx:s||a,listening:h})}return t};u.off=function(t,e,i){if(!this._events)return this;this._events=f(g,this._events,t,e,{context:i,listeners:this._listeners});return this};u.stopListening=function(t,e,r){var n=this._listeningTo;if(!n)return this;var s=t?[t._listenId]:i.keys(n);for(var a=0;a<s.length;a++){var h=n[s[a]];if(!h)break;h.obj.off(e,r,this)}return this};var g=function(t,e,r,n){if(!t)return;var s=0,a;var h=n.context,o=n.listeners;if(!e&&!r&&!h){var l=i.keys(o);for(;s<l.length;s++){a=o[l[s]];delete o[a.id];delete a.listeningTo[a.objId]}return}var u=e?[e]:i.keys(t);for(;s<u.length;s++){e=u[s];var c=t[e];if(!c)break;var f=[];for(var d=0;d<c.length;d++){var v=c[d];if(r&&r!==v.callback&&r!==v.callback._callback||h&&h!==v.context){f.push(v)}else{a=v.listening;if(a&&--a.count===0){delete o[a.id];delete a.listeningTo[a.objId]}}}if(f.length){t[e]=f}else{delete t[e]}}return t};u.once=function(t,e,r){var n=f(p,{},t,e,i.bind(this.off,this));if(typeof t===\"string\"&&r==null)e=void 0;return this.on(n,e,r)};u.listenToOnce=function(t,e,r){var n=f(p,{},e,r,i.bind(this.stopListening,this,t));return this.listenTo(t,n)};var p=function(t,e,r,n){if(r){var s=t[e]=i.once(function(){n(e,s);r.apply(this,arguments)});s._callback=r}return t};u.trigger=function(t){if(!this._events)return this;var e=Math.max(0,arguments.length-1);var i=Array(e);for(var r=0;r<e;r++)i[r]=arguments[r+1];f(m,this._events,t,void 0,i);return this};var m=function(t,e,i,r){if(t){var n=t[e];var s=t.all;if(n&&s)s=s.slice();if(n)_(n,r);if(s)_(s,[e].concat(r))}return t};var _=function(t,e){var i,r=-1,n=t.length,s=e[0],a=e[1],h=e[2];switch(e.length){case 0:while(++r<n)(i=t[r]).callback.call(i.ctx);return;case 1:while(++r<n)(i=t[r]).callback.call(i.ctx,s);return;case 2:while(++r<n)(i=t[r]).callback.call(i.ctx,s,a);return;case 3:while(++r<n)(i=t[r]).callback.call(i.ctx,s,a,h);return;default:while(++r<n)(i=t[r]).callback.apply(i.ctx,e);return}};u.bind=u.on;u.unbind=u.off;i.extend(e,u);var y=e.Model=function(t,e){var r=t||{};e||(e={});this.cid=i.uniqueId(this.cidPrefix);this.attributes={};if(e.collection)this.collection=e.collection;if(e.parse)r=this.parse(r,e)||{};var n=i.result(this,\"defaults\");r=i.defaults(i.extend({},n,r),n);this.set(r,e);this.changed={};this.initialize.apply(this,arguments)};i.extend(y.prototype,u,{changed:null,validationError:null,idAttribute:\"id\",cidPrefix:\"c\",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return this.get(t)!=null},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(t==null)return this;var n;if(typeof t===\"object\"){n=t;r=e}else{(n={})[t]=e}r||(r={});if(!this._validate(n,r))return false;var s=r.unset;var a=r.silent;var h=[];var o=this._changing;this._changing=true;if(!o){this._previousAttributes=i.clone(this.attributes);this.changed={}}var l=this.attributes;var u=this.changed;var c=this._previousAttributes;for(var f in n){e=n[f];if(!i.isEqual(l[f],e))h.push(f);if(!i.isEqual(c[f],e)){u[f]=e}else{delete u[f]}s?delete l[f]:l[f]=e}if(this.idAttribute in n)this.id=this.get(this.idAttribute);if(!a){if(h.length)this._pending=r;for(var d=0;d<h.length;d++){this.trigger(\"change:\"+h[d],this,l[h[d]],r)}}if(o)return this;if(!a){while(this._pending){r=this._pending;this._pending=false;this.trigger(\"change\",this,r)}}this._pending=false;this._changing=false;return this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:true}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,i.extend({},t,{unset:true}))},hasChanged:function(t){if(t==null)return!i.isEmpty(this.changed);return i.has(this.changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?i.clone(this.changed):false;var e=this._changing?this._previousAttributes:this.attributes;var r={};for(var n in t){var s=t[n];if(i.isEqual(e[n],s))continue;r[n]=s}return i.size(r)?r:false},previous:function(t){if(t==null||!this._previousAttributes)return null;return this._previousAttributes[t]},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:true},t);var e=this;var r=t.success;t.success=function(i){var n=t.parse?e.parse(i,t):i;if(!e.set(n,t))return false;if(r)r.call(t.context,e,i,t);e.trigger(\"sync\",e,i,t)};B(this,t);return this.sync(\"read\",this,t)},save:function(t,e,r){var n;if(t==null||typeof t===\"object\"){n=t;r=e}else{(n={})[t]=e}r=i.extend({validate:true,parse:true},r);var s=r.wait;if(n&&!s){if(!this.set(n,r))return false}else if(!this._validate(n,r)){return false}var a=this;var h=r.success;var o=this.attributes;r.success=function(t){a.attributes=o;var e=r.parse?a.parse(t,r):t;if(s)e=i.extend({},n,e);if(e&&!a.set(e,r))return false;if(h)h.call(r.context,a,t,r);a.trigger(\"sync\",a,t,r)};B(this,r);if(n&&s)this.attributes=i.extend({},o,n);var l=this.isNew()?\"create\":r.patch?\"patch\":\"update\";if(l===\"patch\"&&!r.attrs)r.attrs=n;var u=this.sync(l,this,r);this.attributes=o;return u},destroy:function(t){t=t?i.clone(t):{};var e=this;var r=t.success;var n=t.wait;var s=function(){e.stopListening();e.trigger(\"destroy\",e,e.collection,t)};t.success=function(i){if(n)s();if(r)r.call(t.context,e,i,t);if(!e.isNew())e.trigger(\"sync\",e,i,t)};var a=false;if(this.isNew()){i.defer(t.success)}else{B(this,t);a=this.sync(\"delete\",this,t)}if(!n)s();return a},url:function(){var t=i.result(this,\"urlRoot\")||i.result(this.collection,\"url\")||F();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\\/]$/,\"$&/\")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:true}))},_validate:function(t,e){if(!e.validate||!this.validate)return true;t=i.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;if(!r)return true;this.trigger(\"invalid\",this,r,i.extend(e,{validationError:r}));return false}});var b={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};h(y,b,\"attributes\");var x=e.Collection=function(t,e){e||(e={});if(e.model)this.model=e.model;if(e.comparator!==void 0)this.comparator=e.comparator;this._reset();this.initialize.apply(this,arguments);if(t)this.reset(t,i.extend({silent:true},e))};var w={add:true,remove:true,merge:true};var E={add:true,remove:false};var I=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var r=Array(t.length-i);var n=e.length;var s;for(s=0;s<r.length;s++)r[s]=t[s+i];for(s=0;s<n;s++)t[s+i]=e[s];for(s=0;s<r.length;s++)t[s+n+i]=r[s]};i.extend(x.prototype,u,{model:y,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:false},e,E))},remove:function(t,e){e=i.extend({},e);var r=!i.isArray(t);t=r?[t]:t.slice();var n=this._removeModels(t,e);if(!e.silent&&n.length){e.changes={added:[],merged:[],removed:n};this.trigger(\"update\",this,e)}return r?n[0]:n},set:function(t,e){if(t==null)return;e=i.extend({},w,e);if(e.parse&&!this._isModel(t)){t=this.parse(t,e)||[]}var r=!i.isArray(t);t=r?[t]:t.slice();var n=e.at;if(n!=null)n=+n;if(n>this.length)n=this.length;if(n<0)n+=this.length+1;var s=[];var a=[];var h=[];var o=[];var l={};var u=e.add;var c=e.merge;var f=e.remove;var d=false;var v=this.comparator&&n==null&&e.sort!==false;var g=i.isString(this.comparator)?this.comparator:null;var p,m;for(m=0;m<t.length;m++){p=t[m];var _=this.get(p);if(_){if(c&&p!==_){var y=this._isModel(p)?p.attributes:p;if(e.parse)y=_.parse(y,e);_.set(y,e);h.push(_);if(v&&!d)d=_.hasChanged(g)}if(!l[_.cid]){l[_.cid]=true;s.push(_)}t[m]=_}else if(u){p=t[m]=this._prepareModel(p,e);if(p){a.push(p);this._addReference(p,e);l[p.cid]=true;s.push(p)}}}if(f){for(m=0;m<this.length;m++){p=this.models[m];if(!l[p.cid])o.push(p)}if(o.length)this._removeModels(o,e)}var b=false;var x=!v&&u&&f;if(s.length&&x){b=this.length!==s.length||i.some(this.models,function(t,e){return t!==s[e]});this.models.length=0;I(this.models,s,0);this.length=this.models.length}else if(a.length){if(v)d=true;I(this.models,a,n==null?this.length:n);this.length=this.models.length}if(d)this.sort({silent:true});if(!e.silent){for(m=0;m<a.length;m++){if(n!=null)e.index=n+m;p=a[m];p.trigger(\"add\",p,this,e)}if(d||b)this.trigger(\"sort\",this,e);if(a.length||o.length||h.length){e.changes={added:a,removed:o,merged:h};this.trigger(\"update\",this,e)}}return r?t[0]:t},reset:function(t,e){e=e?i.clone(e):{};for(var r=0;r<this.models.length;r++){this._removeReference(this.models[r],e)}e.previousModels=this.models;this._reset();t=this.add(t,i.extend({silent:true},e));if(!e.silent)this.trigger(\"reset\",this,e);return t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return s.apply(this.models,arguments)},get:function(t){if(t==null)return void 0;return this._byId[t]||this._byId[this.modelId(t.attributes||t)]||t.cid&&this._byId[t.cid]},has:function(t){return this.get(t)!=null},at:function(t){if(t<0)t+=this.length;return this.models[t]},where:function(t,e){return this[e?\"find\":\"filter\"](t)},findWhere:function(t){return this.where(t,true)},sort:function(t){var e=this.comparator;if(!e)throw new Error(\"Cannot sort a set without a comparator\");t||(t={});var r=e.length;if(i.isFunction(e))e=i.bind(e,this);if(r===1||i.isString(e)){this.models=this.sortBy(e)}else{this.models.sort(e)}if(!t.silent)this.trigger(\"sort\",this,t);return this},pluck:function(t){return this.map(t+\"\")},fetch:function(t){t=i.extend({parse:true},t);var e=t.success;var r=this;t.success=function(i){var n=t.reset?\"reset\":\"set\";r[n](i,t);if(e)e.call(t.context,r,i,t);r.trigger(\"sync\",r,i,t)};B(this,t);return this.sync(\"read\",this,t)},create:function(t,e){e=e?i.clone(e):{};var r=e.wait;t=this._prepareModel(t,e);if(!t)return false;if(!r)this.add(t,e);var n=this;var s=e.success;e.success=function(t,e,i){if(r)n.add(t,i);if(s)s.call(i.context,t,e,i)};t.save(null,e);return t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||\"id\"]},_reset:function(){this.length=0;this.models=[];this._byId={}},_prepareModel:function(t,e){if(this._isModel(t)){if(!t.collection)t.collection=this;return t}e=e?i.clone(e):{};e.collection=this;var r=new this.model(t,e);if(!r.validationError)return r;this.trigger(\"invalid\",this,r.validationError,e);return false},_removeModels:function(t,e){var i=[];for(var r=0;r<t.length;r++){var n=this.get(t[r]);if(!n)continue;var s=this.indexOf(n);this.models.splice(s,1);this.length--;delete this._byId[n.cid];var a=this.modelId(n.attributes);if(a!=null)delete this._byId[a];if(!e.silent){e.index=s;n.trigger(\"remove\",n,this,e)}i.push(n);this._removeReference(n,e)}return i},_isModel:function(t){return t instanceof y},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes);if(i!=null)this._byId[i]=t;t.on(\"all\",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes);if(i!=null)delete this._byId[i];if(this===t.collection)delete t.collection;t.off(\"all\",this._onModelEvent,this)},_onModelEvent:function(t,e,i,r){if(e){if((t===\"add\"||t===\"remove\")&&i!==this)return;if(t===\"destroy\")this.remove(e,r);if(t===\"change\"){var n=this.modelId(e.previousAttributes());var s=this.modelId(e.attributes);if(n!==s){if(n!=null)delete this._byId[n];if(s!=null)this._byId[s]=e}}}this.trigger.apply(this,arguments)}});var S={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};h(x,S,\"models\");var k=e.View=function(t){this.cid=i.uniqueId(\"view\");i.extend(this,i.pick(t,P));this._ensureElement();this.initialize.apply(this,arguments)};var T=/^(\\S+)\\s*(.*)$/;var P=[\"model\",\"collection\",\"el\",\"id\",\"attributes\",\"className\",\"tagName\",\"events\"];i.extend(k.prototype,u,{tagName:\"div\",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){this._removeElement();this.stopListening();return this},_removeElement:function(){this.$el.remove()},setElement:function(t){this.undelegateEvents();this._setElement(t);this.delegateEvents();return this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t);this.el=this.$el[0]},delegateEvents:function(t){t||(t=i.result(this,\"events\"));if(!t)return this;this.undelegateEvents();for(var e in t){var r=t[e];if(!i.isFunction(r))r=this[r];if(!r)continue;var n=e.match(T);this.delegate(n[1],n[2],i.bind(r,this))}return this},delegate:function(t,e,i){this.$el.on(t+\".delegateEvents\"+this.cid,e,i);return this},undelegateEvents:function(){if(this.$el)this.$el.off(\".delegateEvents\"+this.cid);return this},undelegate:function(t,e,i){this.$el.off(t+\".delegateEvents\"+this.cid,e,i);return this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(!this.el){var t=i.extend({},i.result(this,\"attributes\"));if(this.id)t.id=i.result(this,\"id\");if(this.className)t[\"class\"]=i.result(this,\"className\");this.setElement(this._createElement(i.result(this,\"tagName\")));this._setAttributes(t)}else{this.setElement(i.result(this,\"el\"))}},_setAttributes:function(t){this.$el.attr(t)}});e.sync=function(t,r,n){var s=H[t];i.defaults(n||(n={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:s,dataType:\"json\"};if(!n.url){a.url=i.result(r,\"url\")||F()}if(n.data==null&&r&&(t===\"create\"||t===\"update\"||t===\"patch\")){a.contentType=\"application/json\";a.data=JSON.stringify(n.attrs||r.toJSON(n))}if(n.emulateJSON){a.contentType=\"application/x-www-form-urlencoded\";a.data=a.data?{model:a.data}:{}}if(n.emulateHTTP&&(s===\"PUT\"||s===\"DELETE\"||s===\"PATCH\")){a.type=\"POST\";if(n.emulateJSON)a.data._method=s;var h=n.beforeSend;n.beforeSend=function(t){t.setRequestHeader(\"X-HTTP-Method-Override\",s);if(h)return h.apply(this,arguments)}}if(a.type!==\"GET\"&&!n.emulateJSON){a.processData=false}var o=n.error;n.error=function(t,e,i){n.textStatus=e;n.errorThrown=i;if(o)o.call(n.context,t,e,i)};var l=n.xhr=e.ajax(i.extend(a,n));r.trigger(\"request\",r,l,n);return l};var H={create:\"POST\",update:\"PUT\",patch:\"PATCH\",\"delete\":\"DELETE\",read:\"GET\"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var A=/\\((.*?)\\)/g;var C=/(\\(\\?)?:\\w+/g;var R=/\\*\\w+/g;var j=/[\\-{}\\[\\]+?.,\\\\\\^$|#\\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,n){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){n=r;r=\"\"}if(!n)n=this[r];var s=this;e.history.route(t,function(i){var a=s._extractParameters(t,i);if(s.execute(n,a,r)!==false){s.trigger.apply(s,[\"route:\"+r].concat(a));s.trigger(\"route\",r,a);e.history.trigger(\"route\",s,r,a)}});return this},execute:function(t,e,i){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,\"routes\");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(j,\"\\\\$&\").replace(A,\"(?:$1)?\").replace(C,function(t,e){return e?t:\"([^/?]+)\"}).replace(R,\"([^?]*?)\");return new RegExp(\"^\"+t+\"(?:\\\\?([\\\\s\\\\S]*))?$\")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];this.checkUrl=i.bind(this.checkUrl,this);if(typeof window!==\"undefined\"){this.location=window.location;this.history=window.history}};var M=/^[#\\/]|\\s+$/g;var O=/^\\/+|\\/+$/g;var U=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){var t=this.location.pathname.replace(/[^\\/]$/,\"$&/\");return t===this.root&&!this.getSearch()},matchRoot:function(){var t=this.decodeFragment(this.location.pathname);var e=t.slice(0,this.root.length-1)+\"/\";return e===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,\"%2525\"))},getSearch:function(){var t=this.location.href.replace(/#.*/,\"\").match(/\\?.+/);return t?t[0]:\"\"},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:\"\"},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return t.charAt(0)===\"/\"?t.slice(1):t},getFragment:function(t){if(t==null){if(this._usePushState||!this._wantsHashChange){t=this.getPath()}else{t=this.getHash()}}return t.replace(M,\"\")},start:function(t){if(N.started)throw new Error(\"Backbone.history has already been started\");N.started=true;this.options=i.extend({root:\"/\"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._hasHashChange=\"onhashchange\"in window&&(document.documentMode===void 0||document.documentMode>7);this._useHashChange=this._wantsHashChange&&this._hasHashChange;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.history&&this.history.pushState);this._usePushState=this._wantsPushState&&this._hasPushState;this.fragment=this.getFragment();this.root=(\"/\"+this.root+\"/\").replace(O,\"/\");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||\"/\";this.location.replace(e+\"#\"+this.getPath());return true}else if(this._hasPushState&&this.atRoot()){this.navigate(this.getHash(),{replace:true})}}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement(\"iframe\");this.iframe.src=\"javascript:0\";this.iframe.style.display=\"none\";this.iframe.tabIndex=-1;var r=document.body;var n=r.insertBefore(this.iframe,r.firstChild).contentWindow;n.document.open();n.document.close();n.location.hash=\"#\"+this.fragment}var s=window.addEventListener||function(t,e){return attachEvent(\"on\"+t,e)};if(this._usePushState){s(\"popstate\",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){s(\"hashchange\",this.checkUrl,false)}else if(this._wantsHashChange){this._checkUrlInterval=setInterval(this.checkUrl,this.interval)}if(!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent(\"on\"+t,e)};if(this._usePushState){t(\"popstate\",this.checkUrl,false)}else if(this._useHashChange&&!this.iframe){t(\"hashchange\",this.checkUrl,false)}if(this.iframe){document.body.removeChild(this.iframe);this.iframe=null}if(this._checkUrlInterval)clearInterval(this._checkUrlInterval);N.started=false},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe){e=this.getHash(this.iframe.contentWindow)}if(e===this.fragment)return false;if(this.iframe)this.navigate(e);this.loadUrl()},loadUrl:function(t){if(!this.matchRoot())return false;t=this.fragment=this.getFragment(t);return i.some(this.handlers,function(e){if(e.route.test(t)){e.callback(t);return true}})},navigate:function(t,e){if(!N.started)return false;if(!e||e===true)e={trigger:!!e};t=this.getFragment(t||\"\");var i=this.root;if(t===\"\"||t.charAt(0)===\"?\"){i=i.slice(0,-1)||\"/\"}var r=i+t;t=this.decodeFragment(t.replace(U,\"\"));if(this.fragment===t)return;this.fragment=t;if(this._usePushState){this.history[e.replace?\"replaceState\":\"pushState\"]({},document.title,r)}else if(this._wantsHashChange){this._updateHash(this.location,t,e.replace);if(this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;if(!e.replace){n.document.open();n.document.close()}this._updateHash(n.location,t,e.replace)}}else{return this.location.assign(r)}if(e.trigger)return this.loadUrl(t)},_updateHash:function(t,e,i){if(i){var r=t.href.replace(/(javascript:|#).*$/,\"\");t.replace(r+\"#\"+e)}else{t.hash=\"#\"+e}}});e.history=new N;var q=function(t,e){var r=this;var n;if(t&&i.has(t,\"constructor\")){n=t.constructor}else{n=function(){return r.apply(this,arguments)}}i.extend(n,r,e);n.prototype=i.create(r.prototype,t);n.prototype.constructor=n;n.__super__=r.prototype;return n};y.extend=x.extend=$.extend=k.extend=N.extend=q;var F=function(){throw new Error('A \"url\" property or function must be specified')};var B=function(t,e){var i=e.error;e.error=function(r){if(i)i.call(e.context,t,r,e);t.trigger(\"error\",t,r,e)}};return e});","(function( $ ) {\r\n \"use strict\";\r\n\r\n /**\r\n * Defines the Hustle Object\r\n *\r\n * @type {{define, get_modules, get, modules}}\r\n */\r\n window.Hustle = (function ($, doc, win) {\r\n var _modules = {},\r\n _template_options = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n\r\n var define = function (module_name, module) {\r\n var splits = module_name.split(\".\");\r\n if (splits.length) { // if module_name has more than one object name, then add the module definition recursively\r\n var recursive = function (module_name, modules) {\r\n var arr = module_name.split(\".\"),\r\n _module_name = arr.splice(0, 1)[0];\r\n\r\n if (!_module_name) return;\r\n\r\n\r\n if (!arr.length) {\r\n var invoked = module.call(null, $, doc, win);\r\n modules[_module_name] = _.isFunction(invoked) || typeof invoked === \"undefined\" ? invoked : _.extend(modules[_module_name] || {}, invoked);\r\n } else {\r\n modules[_module_name] = modules[_module_name] || {};\r\n }\r\n\r\n if (arr.length && _module_name)\r\n recursive(arr.join(\".\"), modules[_module_name]);\r\n };\r\n\r\n recursive(module_name, _modules);\r\n } else {\r\n var m = _modules[module_name] || {};\r\n _modules[module_name] = _.extend(m, module.call(null, $, doc, win));\r\n }\r\n },\r\n get_modules = function () {\r\n return _modules;\r\n },\r\n get = function (module_name) {\r\n if (module_name.split(\".\").length) { // recursively fetch the module\r\n var module = false,\r\n recursive = function (module_name, modules) {\r\n var arr = module_name.split(\".\"),\r\n _module_name = arr.splice(0, 1)[0];\r\n\r\n module = modules[_module_name];\r\n\r\n if (arr.length)\r\n recursive(arr.join(\".\"), modules[_module_name]);\r\n };\r\n\r\n recursive(module_name, _modules);\r\n return module;\r\n }\r\n\r\n return _modules[module_name] || false;\r\n },\r\n Events = _.extend({}, Backbone.Events),\r\n View = Backbone.View.extend({\r\n __base_events:{\r\n \"click .wph-tabs--wrap .wph-tabs--nav li label\": \"__base_toggle_tab\"\r\n },\r\n initialize: function () {\r\n this.events = _.extend({}, this.events, this.__base_events);\r\n\r\n if (_.isFunction(this.init_mix))\r\n this.init_mix.apply(this, arguments);\r\n\r\n\r\n\r\n if (this.render) {\r\n this.render = _.wrap(this.render, function (render) {\r\n this.trigger(\"before_render\");\r\n render.call(this);\r\n Events.trigger(\"view.rendered\", this);\r\n this.trigger(\"rendered\");\r\n });\r\n }\r\n\r\n if (_.isFunction(this.init))\r\n this.init.apply(this, arguments);\r\n },\r\n __base_toggle_tab: function(e){\r\n var $this = this.$( e.target ),\r\n href = ( $this.attr(\"href\") || \"\" ).replace(/^\\#/, \"\"),\r\n $content = href ? this.$( \"#\" + href ) : false,\r\n $wrap = $this.closest(\".wph-tabs--wrap\"),\r\n $li = $this.closest(\"li\");\r\n\r\n if( $content && $content.length ){\r\n $wrap.find( \".wph-tabs--content\" ).not( $content ).removeClass(\"current\");\r\n $content.addClass(\"current\");\r\n $li.addClass(\"current\");\r\n $li.siblings().removeClass(\"current\");\r\n }\r\n }\r\n }),\r\n template = _.memoize(function ( id ) {\r\n var compiled;\r\n return function ( data ) {\r\n compiled = compiled || _.template( document.getElementById( id ).innerHTML, null, _template_options );\r\n return compiled( data ).replace(\"/*<![CDATA[*/\", \"\").replace(\"/*]]>*/\", \"\");\r\n };\r\n }),\r\n create_template = _.memoize(function( str ){\r\n var cache;\r\n return function(data){\r\n cache = cache || _.template( str, null, _template_options );\r\n return cache( data );\r\n };\r\n }),\r\n get_template_options = function(){\r\n return $.extend( true, {}, _template_options );\r\n },\r\n cookie = (function(){\r\n // Get a cookie value.\r\n var get = function (name) {\r\n var i, c, cookie_name, value,\r\n ca = document.cookie.split(';');\r\n\r\n\r\n cookie_name = name + \"=\";\r\n\r\n for (i = 0; i < ca.length; i += 1) {\r\n c = ca[i];\r\n while (c.charAt(0) === ' ') {\r\n c = c.substring(1, c.length);\r\n }\r\n if (c.indexOf(cookie_name) === 0) {\r\n var _val = c.substring(cookie_name.length, c.length);\r\n return !_val ? _val : JSON.parse(_val);\r\n }\r\n }\r\n return null;\r\n };\r\n\r\n // Saves the value into a cookie.\r\n var set = function (name, value, days) {\r\n var date, expires;\r\n\r\n value = $.isArray(value) || $.isPlainObject(value) ? JSON.stringify(value) : value;\r\n\r\n if (!isNaN(days)) {\r\n date = new Date();\r\n date.setTime(date.getTime() + ( days * 24 * 60 * 60 * 1000 ));\r\n expires = \"; expires=\" + date.toGMTString();\r\n } else {\r\n expires = \"\";\r\n }\r\n\r\n document.cookie = name + \"=\" + value + expires + \"; path=/\";\r\n };\r\n return {\r\n set: set,\r\n get: get\r\n };\r\n }()),\r\n consts = (function(){\r\n return {\r\n Never_See_Aagain_Prefix: \"hustle_never_see_again-\",\r\n Module_Show_Count: \"hustle_module_show_count-\",\r\n\t\t\t\t\tSlide_Cookie_Prefix: 'hustle_slide_in_prefix-',\r\n\t\t\t\t\tSlide_Cookie_Hide_All: 'hustle_slide_in_hide_all-',\r\n\t\t\t\t\tSS_Module_Show_Count: 'hustle_ss_module_show_count-'\r\n };\r\n }());\r\n\r\n return {\r\n define: define,\r\n get_modules: get_modules,\r\n get: get,\r\n Events: Events,\r\n View: View,\r\n template: template,\r\n create_template: create_template,\r\n get_template_options: get_template_options,\r\n cookie: cookie,\r\n consts: consts\r\n };\r\n }(jQuery, document, window) );\r\n\r\n}(jQuery));","var Optin = Optin || {};\r\n\r\nOptin.View = {};\r\nOptin.Models = {};\r\nOptin.Events = {};\r\n\r\nif( typeof Backbone !== \"undefined\")\r\n _.extend(Optin.Events, Backbone.Events);\r\n(function( $ ) {\r\n \"use strict\";\r\n Optin.COOKIE_PREFIX = \"inc_optin_long_hidden-\";\r\n Optin.POPUP_COOKIE_PREFIX = \"inc_optin_popup_long_hidden-\";\r\n Optin.SLIDE_IN_COOKIE_PREFIX = \"inc_optin_slide_in_long_hidden-\";\r\n Optin.SLIDE_IN_COOKIE_HIDE_ALL = \"inc_optin_slide_in_hide_all\";\r\n \r\n Optin.global_mixin = function() {\r\n _.mixin({\r\n /**\r\n * Logs to console\r\n */\r\n log: function(){\r\n console.log( arguments );\r\n },\r\n /**\r\n * Converts val to boolian\r\n *\r\n * @param val\r\n * @returns {*}\r\n */\r\n toBool: function(val){\r\n if( _.isBoolean(val) )\r\n return val;\r\n\r\n if( _.isString( val ) && [\"true\", \"false\", \"1\"].indexOf( val.toLowerCase() ) !== -1 ){\r\n return val.toLowerCase() === \"true\" || val.toLowerCase() === \"1\" ? true : false;\r\n }\r\n\r\n if( _.isNumber( val ) )\r\n return !!val;\r\n\r\n if(_.isUndefined( val ) || _.isNull(val) || _.isNaN( val ) )\r\n return false;\r\n\r\n return val;\r\n },\r\n /**\r\n * Checks if val is truthy\r\n *\r\n * @param val\r\n * @returns {boolean}\r\n */\r\n isTrue: function(val) {\r\n if( _.isUndefined( val ) || _.isNull( val ) || _.isNaN( val ) )\r\n return false;\r\n\r\n if( _.isNumber( val ) )\r\n return val !== 0;\r\n\r\n val = val.toString().toLowerCase();\r\n return ['1', \"true\", \"on\"].indexOf( val ) !== -1;\r\n },\r\n isFalse: function(val){\r\n return !_.isTrue( val );\r\n },\r\n control_base: function(checked, current, attribute){\r\n attribute = _.isUndefined( attribute ) ? \"checked\" : attribute;\r\n checked = _.toBool(checked);\r\n current = _.isBoolean( checked ) ? _.isTrue( current ) : current;\r\n\r\n if(_.isEqual(checked, current )){\r\n return attribute + '=' + attribute;\r\n }\r\n return \"\";\r\n },\r\n /**\r\n * Returns checked=check if checked variable is equal to current state\r\n *\r\n *\r\n * @param checked checked state\r\n * @param current current state\r\n * @returns {*}\r\n */\r\n checked: function(checked, current){\r\n return _.control_base( checked, current, \"checked\" );\r\n },\r\n /**\r\n * Adds selected attribute\r\n *\r\n * @param selected\r\n * @param current\r\n * @returns {*}\r\n */\r\n selected: function(selected, current){\r\n return _.control_base( selected, current, \"selected\" );\r\n },\r\n /**\r\n * Adds disabled attribute\r\n *\r\n * @param disabled\r\n * @param current\r\n * @returns {*}\r\n */\r\n disabled: function( disabled, current ){\r\n return _.control_base( disabled, current, \"disabled\" );\r\n },\r\n /**\r\n * Returns css class based on the passed in condition\r\n *\r\n * @param conditon\r\n * @param cls\r\n * @param negating_cls\r\n * @returns {*}\r\n */\r\n class: function( conditon, cls, negating_cls ){\r\n\r\n if( _.isTrue( conditon ) )\r\n return cls;\r\n\r\n return typeof negating_cls !== \"undefined\" ? negating_cls : \"\";\r\n },\r\n /**\r\n * Returns class attribute with relevant class name\r\n *\r\n * @param conditon\r\n * @param cls\r\n * @param negating_cls\r\n * @returns {string}\r\n */\r\n add_class: function( conditon, cls, negating_cls ){\r\n return 'class={class}'.replace( \"{class}\", _.class( conditon, cls, negating_cls ) );\r\n },\r\n toUpperCase: function(str){\r\n return _.isString( str ) ? str.toUpperCase() : \"\";\r\n }\r\n });\r\n\r\n if( !_.findKey ) {\r\n _.mixin({\r\n findKey: function(obj, predicate, context) {\r\n predicate = cb(predicate, context);\r\n var keys = _.keys(obj), key;\r\n for (var i = 0, length = keys.length; i < length; i++) {\r\n key = keys[i];\r\n if (predicate(obj[key], key, obj)) return key;\r\n }\r\n }\r\n });\r\n }\r\n };\r\n \r\n Optin.global_mixin();\r\n \r\n \r\n /**\r\n * Recursive toJSON\r\n *\r\n * @returns {*}\r\n */\r\n Backbone.Model.prototype.toJSON = function() {\r\n var json = _.clone(this.attributes);\r\n for(var attr in json) {\r\n if((json[attr] instanceof Backbone.Model) || (Backbone.Collection && json[attr] instanceof Backbone.Collection)) {\r\n json[attr] = json[attr].toJSON();\r\n }\r\n }\r\n return json;\r\n };\r\n\r\n\r\n String.prototype.toInt = function(){\r\n return parseInt(this, 10);\r\n };\r\n\r\n String.prototype.isEmpty = function() {\r\n return (this.length === 0 || !this.trim());\r\n };\r\n\r\n Optin.template = _.memoize(function ( id ) {\r\n var compiled,\r\n\r\n options = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n\r\n return function ( data ) {\r\n compiled = compiled || _.template( $( '#' + id ).html(), null, options );\r\n return compiled( data ).replace(\"/*<![CDATA[*/\", \"\").replace(\"/*]]>*/\", \"\");\r\n };\r\n });\r\n \r\n /**\r\n * Compatibility with other plugin/theme e.g. upfront\r\n *\r\n */\r\n Optin.template_compat = _.memoize(function ( id ) {\r\n var compiled;\r\n\r\n return function ( data ) {\r\n compiled = compiled || _.template( $( '#' + id ).html() );\r\n return compiled( data ).replace(\"/*<![CDATA[*/\", \"\").replace(\"/*]]>*/\", \"\");\r\n };\r\n });\r\n\r\n Optin.cookie = Hustle.cookie;\r\n\r\n $(document).on('blur', 'input, textarea, select', function(){\r\n\t var $this = $(this);\r\n\t if($this.is(':input[type=button], :input[type=submit], :input[type=reset]')) return;\r\n\t if( $this.val() && $this.val().trim && $this.val().trim() !== '' ) {\r\n\t\t $this.parent().addClass('wpoi-filled');\r\n\t\t} else{\r\n $this.parent().removeClass('wpoi-filled');\r\n }\r\n });\r\n\r\n Optin.Mixins = {\r\n _mixins: {},\r\n _services_mixins: {},\r\n _desing_mixins: {},\r\n _display_mixins: {},\r\n add: function(id, obj){\r\n this._mixins[id] = obj;\r\n },\r\n get_mixins: function(){\r\n return this._mixins;\r\n },\r\n add_services_mixin: function( id, obj ){\r\n this._services_mixins[id] = obj;\r\n },\r\n get_services_mixins: function(){\r\n return this._services_mixins;\r\n }\r\n };\r\n\r\n\r\n})( jQuery );\r\n","Hustle.define(\"Modal\", function($){\r\n \"use strict\";\r\n\r\n return Backbone.View.extend({\r\n template: Optin.template(\"hustle-modal-tpl\"),\r\n $mask: $('<div class=\"wph-modal--mask\"></div>'),\r\n opts: {\r\n\r\n },\r\n data:{\r\n id: \"\",\r\n type: \"popup\",\r\n style: \"\",\r\n title: \"\",\r\n subtitle: \"\",\r\n content: \"Content\",\r\n animation_in: \"\",\r\n animation_out: \"\",\r\n position: \"\"\r\n },\r\n events:{\r\n \"click .wph-modal--close a\": \"hide\",\r\n \"submit form\": \"fire_conversion_event\",\r\n \"click .wph-modal--cta\": \"fire_conversion_event\",\r\n \"click .wph-modal-never-see-again\": \"never_see_again\"\r\n },\r\n initialize: function( options ){\r\n this.opts = _.extend( {}, this.opts, options );\r\n if( options.template )\r\n this.template = options.template;\r\n\r\n this.render();\r\n return this;\r\n },\r\n render: function(){\r\n var data = _.extend( {}, this.data, this.model.toJSON() );\r\n\r\n this.type_data = data.types[ data.type ];\r\n\r\n this.animation_in = data.animation_in = data.types[ data.type ].animation_in || data.animation_in;\r\n this.animation_out = data.animation_out = data.types[ data.type ].animation_out || data.animation_out;\r\n\r\n data.position = data.types[ data.type ].position || data.position;\r\n\t\t\t\r\n\t\t\t// check cta_url if preceeds http\r\n\t\t\tdata = this.sanitize_cta_url(data);\r\n\t\t\t\r\n\t\t\t// enable fullscreen\r\n\t\t\tdata = this.enable_fullscreen(data);\r\n\t\t\t\r\n\t\t\t// handle custom size for custom content\r\n\t\t\tdata = this.handle_custom_size_cc(data);\r\n\t\t\t\r\n this.setElement( this.template( data ) );\r\n\r\n this.$mask = this.$mask.clone();\r\n this.$mask.on(\"click\", _.bind( this.clicked_background, this ) );\r\n\r\n this.$el.find( \"form\" ).on(\"submit\", _.bind( this.on_form_submit, this ) );\r\n\t\t\t\r\n\t\t\t// check if CC and scroll enabled\r\n\t\t\tthis.enable_body_scroll(data);\r\n\t\t\t\r\n\t\t\t// hide close button if on admin\r\n\t\t\tif( window.hasOwnProperty( \"optin_vars\" ) ) {\r\n\t\t\t\tvar $close_btn = this.$el.find('a.wph-icon.i-close');\r\n\t\t\t\tif ( $close_btn.length ) $close_btn.parent().hide();\r\n\t\t\t}\r\n\t\t\t\r\n return this;\r\n },\r\n hide: function(e){\r\n var self = this;\r\n if( e )\r\n e.preventDefault();\r\n\t\t\t\r\n if ( self.animation_in !== self.animation_out ) self.$el.removeClass( self.animation_in );\r\n _.delay(function(){\r\n\t\t\t\tif ( self.animation_out && !self.$el.hasClass(self.animation_out) ) {\r\n\t\t\t\t\tself.$el.addClass( self.animation_out );\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t_.delay( function(){\r\n\t\t\t\t\tself.$el.removeClass(\"wph-modal-show\");\r\n\t\t\t\t\tself.$el.prev(\".wph-modal--mask\").remove();\r\n\t\t\t\t\tHustle.Events.trigger(\"hide_modal\", self );\r\n\t\t\t\t\tself.trigger(\"hidden\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t// only for close button\r\n\t\t\t\t\tif( _.isTrue( self.type_data.close_btn_as_never_see ) && e && $(e.target).hasClass('wph-icon i-close') )\r\n\t\t\t\t\t\tself.never_see_again( e );\r\n }, 550 );\r\n\r\n }, 350);\r\n\t\t\t\r\n\t\t\t// remove any no-scroll class on html\r\n\t\t\t$('html').removeClass('no-scroll');\r\n },\r\n\t\tclicked_background: function(e){\r\n\t\t\tif ( !_.isTrue( this.type_data.not_close_on_background_click ) ) {\r\n\t\t\t\tthis.hide(e);\r\n\t\t\t}\r\n\t\t},\r\n show:function(){\r\n var self = this;\r\n if( !window.hasOwnProperty( \"optin_vars\" ) ){ // don't set cookie in admin\r\n var show_count_key = Hustle.consts.Module_Show_Count + this.model.get(\"type\") + \"-\" + this.model.get(\"id\"),\r\n current_show_count = Hustle.cookie.get( show_count_key );\r\n\r\n Hustle.cookie.set( show_count_key, current_show_count + 1, 90 );\r\n }\r\n\t\t\t\r\n if ( self.animation_in !== self.animation_out ) self.$el.removeClass( self.animation_out );\r\n _.delay( function(){\r\n self.$el.addClass(\"wph-modal-show\");\r\n self.trigger(\"shown\", self, self.model.get(\"type\"));\r\n Hustle.Events.trigger(\"show_modal\", self, self.model.get(\"type\") );\r\n\r\n _.delay( function(){\r\n\t\t\t\t\tif ( self.animation_in && !self.$el.hasClass(self.animation_in) ) {\r\n\t\t\t\t\t\tself.$el.addClass( self.animation_in );\r\n\t\t\t\t\t}\r\n }, 350 );\r\n\r\n }, 550 );\r\n\r\n },\r\n\t\tsanitize_cta_url: function( data ) {\r\n\t\t\tif ( data.cta_url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(data.cta_url)) {\r\n\t\t\t\t\tdata.cta_url = \"http://\" + data.cta_url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\t\tenable_fullscreen: function( data ) {\r\n\t\t\tdata.fullscreen = '';\r\n\t\t\t// only for custom content popup\r\n\t\t\tif ( !data || typeof data.optin_provider === 'undefined' || typeof data.type === 'undefined' ) {\r\n\t\t\t\treturn data;\r\n\t\t\t}\r\n\t\t\tif ( data.optin_provider == 'custom_content' && data.type == 'popup' ) {\r\n\t\t\t\tif ( typeof this.type_data.make_fullscreen === 'undefined' ) {\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t}\r\n\t\t\t\tif ( _.isTrue( this.type_data.make_fullscreen ) ) {\r\n\t\t\t\t\tdata.fullscreen = 'wph-modal-popup-fullscreen';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\t\thandle_custom_size_cc: function( data ){\r\n\t\t\tdata.custom_size_attr = '';\r\n\t\t\tdata.custom_size_class = '';\r\n\t\t\t// only for custom content\r\n\t\t\tif ( !data || typeof data.optin_provider === 'undefined' ) {\r\n\t\t\t\treturn data;\r\n\t\t\t}\r\n\t\t\tif ( data.optin_provider == 'custom_content' ) {\r\n\t\t\t\tif ( _.isTrue( data.customize_size ) ) {\r\n\t\t\t\t\tdata.custom_size_class = 'wph-modal--custom';\r\n\t\t\t\t\tdata.custom_size_attr += 'data-custom_width='+ data.custom_width +' data-custom_height='+ data.custom_height +'';\r\n\t\t\t\t}\r\n\t\t\t\tif ( _.isTrue( data.border ) ) {\r\n\t\t\t\t\tdata.custom_size_attr += ' data-border='+ data.border_weight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\t\tenable_body_scroll: function( data ) {\r\n\t\t\t// only for custom content popup\r\n\t\t\tif ( !data || typeof data.optin_provider === 'undefined' || typeof data.type === 'undefined' ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif ( data.optin_provider == 'custom_content' && data.type == 'popup' ) {\r\n\t\t\t\tif ( typeof this.type_data.allow_scroll_page === 'undefined' ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif ( _.isTrue( this.type_data.allow_scroll_page ) ) {\r\n\t\t\t\t\t$('html').addClass('can-scroll');\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$('html').addClass('no-scroll');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n fire_conversion_event: function( e ){\r\n var source = $(e.target).hasClass( \"wph-modal--cta\" ) ? \"cta\" : \"form\";\r\n Hustle.Events.trigger(\"cc_modal_converted\", this, source);\r\n this.trigger(\"converted\", this, source);\r\n },\r\n never_see_again: function(e){\r\n if( e )\r\n e.preventDefault();\r\n\r\n if( !window.hasOwnProperty( \"optin_vars\" ) ) // don't set cookie in admin\r\n Hustle.cookie.set( Hustle.consts.Never_See_Aagain_Prefix + this.model.get(\"type\") + \"-\" + this.model.get(\"id\") , this.model.get(\"id\"), this.type_data.expiration_days );\r\n\r\n // do not hide if close button to avoid infinite loop\r\n\t\t\tif ( e && !$(e.target).hasClass('wph-icon i-close') ) {\r\n\t\t\t\tthis.hide();\r\n\t\t\t}\r\n },\r\n on_form_submit: function(e){\r\n var self = this,\r\n $form = $(e.target),\r\n on_submit = this.type_data.on_submit;\r\n\r\n switch ( on_submit ){\r\n case \"close\":\r\n self.hide();\r\n break;\r\n case \"redirect\":\r\n window.location.replace( $form.attr(\"action\") );\r\n break;\r\n case \"default\":\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n }\r\n });\r\n});","\"use strict\";\r\n(function( $, doc, win ) {\r\n\r\n var time_trigger = function( optin, setting, popup ){\r\n if( \"immediately\" === setting.trigger_on_time ){\r\n popup.display();\r\n }\r\n\r\n if( \"time\" === setting.trigger_on_time ){\r\n var trigger_on_time_delay;\r\n switch( setting.appear_after_time_unit ){\r\n case \"minutes\":\r\n trigger_on_time_delay = parseInt( setting.appear_after_time_val, 10 ) * 60 * 1000;\r\n break;\r\n case \"hours\":\r\n trigger_on_time_delay = parseInt( setting.appear_after_time_val, 10 ) * 60 * 60 * 1000;\r\n break;\r\n default:\r\n trigger_on_time_delay = parseInt( setting.appear_after_time_val, 10 ) * 1000;\r\n }\r\n\r\n _.delay(function(){\r\n popup.display();\r\n }, trigger_on_time_delay);\r\n }\r\n };\r\n\r\n var scroll_trigger = function( optin, setting, popup ){\r\n\t\tvar popup_shown = false;\r\n\r\n if( \"scrolled\" === setting.appear_after ){\r\n $(win).scroll(_.debounce( function(){\r\n\t\t\t\tif ( popup_shown ) return;\r\n\r\n if( ( win.pageYOffset * 100 / $(doc).height() ) >= parseInt( setting.appear_after_page_portion_val, 10 ) ) {\r\n popup.display();\r\n\t\t\t\t\tpopup_shown = true;\r\n }\r\n\r\n }, 50) );\r\n }\r\n\r\n if( \"selector\" === setting.appear_after ){\r\n var $el = $( setting.appear_after_element_val );\r\n if( $el.length ){\r\n $(win).scroll(_.debounce( function(){\r\n\t\t\t\t\tif ( popup_shown ) return;\r\n\r\n if( win.pageYOffset >= $el.position().top ) {\r\n popup.display();\r\n\t\t\t\t\t\tpopup_shown = true;\r\n }\r\n\r\n }, 50));\r\n }\r\n }\r\n };\r\n\r\n var click_trigger = function( optin, setting, popup ){\r\n if( \"\" !== $.trim( setting.trigger_on_element_click ) ){\r\n var $clickable = $( $.trim( setting.trigger_on_element_click ) );\r\n if( $clickable.length )\r\n $(doc).on( \"click\", $.trim( setting.trigger_on_element_click ), popup.display);\r\n }\r\n\r\n /**\r\n * Clickable button added with shortcode\r\n */\r\n $(doc).on(\"click\", \".inc_opt_hustle_shortcode_trigger\", function(e){\r\n e.preventDefault();\r\n if( $(this).data(\"id\") == optin.data.optin_id ) {\r\n\t\t\t\tpopup.display();\r\n\t\t\t}\r\n });\r\n };\r\n\r\n var exit_intent_trigger = function( optin, setting, popup ){\r\n if(_.isTrue( setting.trigger_on_exit ) ){\r\n Optin.listen_to_exit_intend();\r\n if(_.isTrue( setting.on_exit_trigger_once_per_session ) ){\r\n $(doc).one(\"wpoi:exit_intended\", popup.display);\r\n }else{\r\n $(doc).on(\"wpoi:exit_intended\", popup.display);\r\n }\r\n \r\n }\r\n };\r\n\r\n\r\n var adblock_trigger = function( optin, setting, popup ) {\r\n if(_.isTrue( setting.trigger_on_adblock ) ){\r\n\r\n if( !Optin.is_adblock_enabled() ) return;\r\n\r\n if( !_.isTrue( setting.trigger_on_adblock_timed ) ){\r\n popup.display();\r\n }else{\r\n var trigger_on_adblock_delay;\r\n switch( setting.trigger_on_adblock_timed_unit ){\r\n case \"minutes\":\r\n trigger_on_adblock_delay = parseInt( setting.trigger_on_adblock_timed_val, 10 ) * 60 * 1000;\r\n break;\r\n case \"hours\":\r\n trigger_on_adblock_delay = parseInt( setting.trigger_on_adblock_timed_val, 10 ) * 60 * 60 * 1000;\r\n break;\r\n default:\r\n trigger_on_adblock_delay = parseInt( setting.trigger_on_adblock_timed_val, 10 ) * 1000;\r\n }\r\n\r\n _.delay(function(){\r\n popup.display();\r\n }, trigger_on_adblock_delay);\r\n }\r\n\r\n }\r\n };\r\n\r\n Optin.Triggers = {\r\n time: time_trigger,\r\n scroll: scroll_trigger,\r\n scrolled: scroll_trigger,\r\n click: click_trigger,\r\n exit_intent: exit_intent_trigger,\r\n adblock: adblock_trigger\r\n };\r\n\r\n}(jQuery, document, window));","(function( $ ) {\r\n\r\n /**\r\n * Log optin view when it's being viewed\r\n */\r\n $(document).on(\"wpoi:display\", function (e, type, $optin, optin) {\r\n var k = 'wpoi-optin-{type}-shown-count-'.replace(\"{type}\", type) + optin.data.optin_id,\r\n prev_shown_count = Optin.cookie.get( k ) || 0,\r\n is_test = type && optin.settings[type].is_test;\r\n \r\n // set cookies used for \"show less than\" display condition\r\n Optin.cookie.set( k , prev_shown_count + 1 , 30 ); \r\n\r\n /**\r\n * Log number of times this optin type has been shown so far\r\n *\r\n * @type {string}\r\n */\r\n if ( optin.data.tracking_types != null && _.isTrue( optin.data.tracking_types[type] ) ) {\r\n $.ajax({\r\n type: \"POST\",\r\n url: inc_opt.ajaxurl,\r\n dataType: \"json\",\r\n data: {\r\n action: \"inc_opt_optin_viewed\",\r\n data: {\r\n optin_id: optin.data.optin_id,\r\n page_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n type: type,\r\n uri: encodeURI( window.location.href )\r\n }\r\n },\r\n success: function (res) {}\r\n });\r\n }\r\n });\r\n\t\r\n\t/**\r\n * Log CC shortcode or widget when it's being viewed\r\n */\r\n\t$(document).on(\"wpoi:cc_shortcode_or_widget_viewed\", function (e, type, cc_id) {\r\n if ( typeof Optin.CC_log_view != 'undefined' ) {\r\n Optin.CC_log_view.set( 'type', type );\r\n Optin.CC_log_view.set( 'id', cc_id );\r\n Optin.CC_log_view.save();\r\n }\r\n\t});\r\n\r\n}(jQuery));","(function( $ ) {\r\n Optin = Optin || {};\r\n Optin.handle_scroll = function( $el, type, optin ){\r\n var $win = $(window),\r\n $doc = $(document);\r\n\r\n $win.on('scroll', _.debounce( function (evt) {\r\n\r\n var el = $el[0];\r\n\r\n var rect = el.getBoundingClientRect();\r\n\r\n if (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */\r\n ) {\r\n $win.off(evt);\r\n $el.addClass(\"wpoi-show\");\r\n $doc.trigger(\"wpoi:display\", [type, $el, optin ]);\r\n }\r\n\r\n }, 5, true) );\r\n\r\n }\r\n\tOptin.handle_cc_scroll = function( $el, type, id ){\r\n var $win = $(window),\r\n $doc = $(document);\r\n\r\n $win.on('scroll', _.debounce( function (evt) {\r\n\r\n var el = $el[0];\r\n\r\n var rect = el.getBoundingClientRect();\r\n\r\n if (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\r\n ) {\r\n $win.off(evt);\r\n \r\n var cc = _.find(Hustle_Custom_Contents, function (opt) {\r\n return id == opt.content.optin_id;\r\n });\r\n \r\n if (!cc) return;\r\n \r\n if ( cc.tracking_types != null && _.isTrue( cc.tracking_types[type] ) ) {\r\n $doc.trigger(\"wpoi:cc_shortcode_or_widget_viewed\", [type, id]);\r\n }\r\n }\r\n\r\n }, 5, true) );\r\n\r\n }\r\n}(jQuery));","(function( $ ) {\r\n\r\n\r\n function validate_form( $form, is_test ){\r\n var requireds = $form.find(\".required\"),\r\n $icon = $('<i class=\"wphi-font wphi-error\"></i>'),\r\n errors = [];\r\n $('.wpoi-field-error').remove();\r\n requireds.each(function(){\r\n var $this = $(this),\r\n error_class = $this.attr(\"name\") + \"_\" + \"error\";\r\n\r\n if( is_test ){\r\n //$icon = $icon.clone().addClass( error_class ).attr(\"title\", inc_opt.l10n.test_cant_submit );\r\n //$this.after( $icon );\r\n $this.next('label').find('i.wphi-font').addClass('wphi-error');\r\n errors.push( $this );\r\n return errors;\r\n }\r\n\r\n if( _.isEmpty( this.value ) || ( $this.is(\"[type='email']\") && !this.value.trim().match( /^[\\S]+\\@[a-zA-Z0-9\\-]+\\.[\\S]{2,}$/gi ) ) ){\r\n //$icon = $icon.clone().addClass( error_class ).attr(\"title\", $this.data(\"error\") );\r\n //$this.next('label').find('i.wphi-email').after($icon);\r\n $this.next('label').find('i.wphi-font').addClass('wphi-error');\r\n errors.push( $this );\r\n }else{\r\n $(\".\" + error_class).remove();\r\n }\r\n\r\n });\r\n\r\n return errors.length === 0;\r\n }\r\n\r\n $(document).on(\"submit\", '.inc_optin form',function(e){\r\n e.preventDefault();\r\n var $form = $(e.target),\r\n $button = $form.find(\"button\"),\r\n $popup = $form.closest( '.inc_optin'),\r\n handle = $popup.data( 'handle'),\r\n delay_id = $popup.data(\"delay_id\"),\r\n optin = Optins[ handle ],\r\n self = this,\r\n $wrap = $(this).closest('.wpoi-optin > .wpoi-container'),\r\n type = $form.closest(\".inc_optin\").data(\"type\"),\r\n is_test = type && optin.settings[type].is_test,\r\n get_success_message = function(){\r\n return optin.design.success_message.replace(\"{name}\", optin.data.optin_name);\r\n },\r\n $failure = $(\"<span class='wpoi-submit-failure'>\" + inc_opt.l10n.submit_failure + \"</span>\")\r\n ;\r\n\r\n\r\n $form.parent().find('.wpoi-submit-failure').remove();\r\n\r\n if( !_.isUndefined( delay_id ) )\r\n clearTimeout( delay_id );\r\n\r\n if( $form.data(\"sending\") || !validate_form( $form, is_test ) ) return;\r\n\r\n $button.attr(\"disabled\", true);\r\n $button.addClass(\"loading\");\r\n $form.addClass(\"loading\");\r\n\r\n $form.data(\"sending\", true);\r\n\r\n $.ajax({\r\n type: \"POST\",\r\n url: inc_opt.ajaxurl,\r\n dataType: \"json\",\r\n data: {\r\n action: \"inc_opt_submit_opt_in\",\r\n data: {\r\n form: $form.serialize(),\r\n optin_id: optin.data.optin_id,\r\n page_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n uri: encodeURI( window.location.href ),\r\n type: type\r\n }\r\n },\r\n success: function(res){\r\n if( res && res.success ){\r\n //$form.html( \"\" );\r\n var $formParent = $form.closest(\".wpoi-hustle\");\r\n //$formParent.find(\".wpoi-form-title\").fadeOut();\r\n\r\n if( optin.design.hasOwnProperty(\"on_submit\") && optin.design.on_submit === \"page_redirect\" ){\r\n window.location.replace( optin.design.page_redirect_url );\r\n }else{\r\n if(optin.data.optin_provider === 'mailchimp' && typeof res.data.existing !== 'undefined' ){\r\n $formParent.find(\".wpoi-success-message .wpoi-content p\").html(res.data.message);\r\n }\r\n $formParent.find(\".wpoi-success-message\").addClass(\"wpoi-show-message\");\r\n\r\n\t\t\t\t\t\tif ( optin.design.hasOwnProperty('on_success') && 'autoclose' === optin.design.on_success ) {\r\n\t\t\t\t\t\t\tvar on_success_time = parseInt( optin.design.on_success_time ),\r\n\t\t\t\t\t\t\t\ton_success_unit = optin.design.on_success_unit;\r\n\r\n\t\t\t\t\t\t\tif ( 'm' === on_success_unit ) {\r\n\t\t\t\t\t\t\t\ton_success_time *= 60;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\ton_success_time *= 1000;\r\n\t\t\t\t\t\t\t_.delay(function(){\r\n\t\t\t\t\t\t\t\tvar popup_close = $(self).closest(\".inc_optin\").find(\".inc-opt-close-popup\");\r\n\r\n\t\t\t\t\t\t\t\tif ( popup_close.length > 0 ) {\r\n\t\t\t\t\t\t\t\t\tpopup_close.trigger(\"click\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$formParent.find( '.wpoi-success-message' ).removeClass( 'wpoi-show-message' );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}, on_success_time );\r\n\t\t\t\t\t\t}\r\n }\r\n\r\n }else{\r\n\t\t\t\t\tvar message = '';\r\n\t\t\t\t\tif ( res.data ) {\r\n\t\t\t\t\t\tmessage = $.isArray( res.data ) ? res.data.pop() : res.data;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmessage = inc_opt.l10n.submit_failure;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$failure.html( message ? message : inc_opt.l10n.submit_failure );\r\n\r\n $form.after( $failure );\r\n }\r\n },\r\n error: function(){\r\n $form.after( $failure );\r\n },\r\n complete: function(){\r\n $button.attr(\"disabled\", false);\r\n $form.removeClass(\"loading\");\r\n $button.removeClass(\"loading\");\r\n $form.data(\"sending\", false);\r\n }\r\n });\r\n\r\n });\r\n\r\n\tvar closeSuccessContent = function() {\r\n\t\tvar target = $(this),\r\n\t\t\tparentDiv = target.parents( '.wpoi-hustle' ),\r\n\t\t\t$form = $( 'form', parentDiv ),\r\n\t\t\t$successDiv = $( '.wpoi-success-message', parentDiv );\r\n\t\t$successDiv.removeClass( 'wpoi-show-message' );\r\n\t};\r\n\r\n\t$(document).on( 'click', '.wpoi-success-close', closeSuccessContent );\r\n\r\n}(jQuery));","var Optin = Optin || {};\r\n(function( $, doc ) {\r\n \"use strict\";\r\n $.each(['show', 'hide'], function (i, ev) {\r\n var el = $.fn[ev];\r\n $.fn[ev] = function () {\r\n this.trigger(ev);\r\n return el.apply(this, arguments);\r\n };\r\n });\r\n \r\n Optin.popup_overlay_delay = 750;\r\n\r\n\r\n /**\r\n * Set optin id from the html template\r\n */\r\n Optin.get_tpl = function( layout_id, is_compat ){\r\n var templates = [\"optin-layout-one\", \"optin-layout-two\", \"optin-layout-three\", \"optin-layout-four\"];\r\n return ( is_compat ) \r\n ? Optin.template_compat( templates[ layout_id ] )\r\n : Optin.template( templates[ layout_id ] );\r\n };\r\n\r\n Optin.popup = {\r\n shown:[],\r\n hidden:[],\r\n long_hidden: [],\r\n is_already_shown: function( popup_id ){\r\n return -1 !== this.shown.indexOf( popup_id );\r\n },\r\n is_long_hidden: function(optin_obj){\r\n return !!Optin.cookie.get( Optin.POPUP_COOKIE_PREFIX + optin_obj.id );\r\n },\r\n show: function( optin_obj ){\r\n\r\n if( this.is_long_hidden( optin_obj ) )\r\n return false;\r\n\r\n if( !this.is_already_shown( optin_obj.id ) )\r\n return optin_obj.show();\r\n\r\n }\r\n };\r\n\r\n // posts/pages bounce in animation\r\n var $animation_elements = $('.inc_opt_inline_wrap');\r\n var $window = $(window);\r\n\r\n function check_if_in_view() {\r\n var window_height = $window.height();\r\n var window_top_position = $window.scrollTop();\r\n var window_bottom_position = (window_top_position + window_height);\r\n\r\n $.each($animation_elements, function() {\r\n var $element = $(this);\r\n var element_height = $element.outerHeight();\r\n var element_top_position = $element.offset().top;\r\n var element_bottom_position = (element_top_position + element_height);\r\n\r\n //check to see if this current container is within viewport\r\n if ((element_bottom_position >= window_top_position) &&\r\n (element_top_position <= window_bottom_position)) {\r\n $element.addClass('in-view');\r\n } else {\r\n $element.removeClass('in-view');\r\n }\r\n });\r\n }\r\n\r\n function add_proper_classes(e, type, $popup, data){\r\n \r\n // relocate mailchimp submit button if no groups\r\n if ( data.data.optin_provider === 'mailchimp' ) {\r\n relocate_mailchimp_button(data);\r\n }\r\n \r\n if( ( e.type === \"wpoi:display\" || e.type === \"wpoi:cc_display\" ) && type === \"popup\" ){\r\n (function (){\r\n var $parent = type === \"popup\" ? $(window) : $(this),\r\n $this = $popup.find(\".wpoi-hustle\");\r\n if ( $parent.width() <= 405){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-small\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-small\");\r\n }\r\n\r\n if ( ( $parent.width() <= 585) && ($parent.width() > 405) ){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-medium\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-medium\");\r\n }\r\n }());\r\n }else{\r\n $(\".wpoi-hustle\").each(function(){\r\n var $parent = type === \"popup\" ? $(window) : $(this),\r\n $this = $(this);\r\n if ( $parent.width() <= 405){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-small\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-small\");\r\n }\r\n\r\n if ( ( $parent.width() <= 585) && ($parent.width() > 405) ){\r\n $this.find(\".wpoi-optin\").addClass(\"wpoi-medium\");\r\n } else {\r\n $this.find(\".wpoi-optin\").removeClass(\"wpoi-medium\");\r\n }\r\n });\r\n \r\n // for CC widget & shortcode\r\n $(\".wph-modal\").each(function(){\r\n var $parent = $(this).parent(),\r\n $this = $(this);\r\n \r\n if ( $parent.data('type') === 'widget' || $parent.data('type') === 'shortcode' ) {\r\n if ( $parent.width() <= 405){\r\n $this.addClass(\"wph-modal--small\");\r\n } else {\r\n $this.removeClass(\"wph-modal--small\");\r\n }\r\n }\r\n });\r\n }\r\n\r\n $(\".wpoi-mcg-select\").each(function(){\r\n\t $(this).parent(\".wpoi-provider-args > .wpoi-container > .wpoi-element:nth-child(2) > .wpoi-container > .wpoi-element\").css({\"padding\":\"0\",\"background\":\"transparent\"});\r\n });\r\n \r\n // Layout #3\r\n // Set height of image container same to parent div\r\n // This to avoid Safari conflicts with [ height: 100% ]\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small) .nocontent:not(.noimage)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$parent = $this.find(\".wpoi-aside-x\").prev(\".wpoi-element\"),\r\n\t \t$child = $this.find(\".wpoi-aside-x\").prev(\".wpoi-element\").find(\".wpoi-container.wpoi-col\");\r\n\t $child.css(\"height\", $parent.height());\r\n });\r\n \r\n // Layout #3\r\n // Vertical align content\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$aside = $this.find(\".wpoi-aside-x\"),\r\n\t \t$div = $this.find(\".wpoi-image\").next(\".wpoi-element\"),\r\n\t \t$element = $aside.prev(\".wpoi-element\"),\r\n\t \t$content = $this.find(\".wpoi-content\"),\r\n\t \t$col = $element.find(\".wpoi-col\"),\r\n\t \t$form = $this.find(\"form\");\r\n\t \r\n\t if ( $form.height() > $content.height() ){\r\n\t\t $col.css(\"height\", $aside.height() + 'px' );\r\n\t\t $div.addClass(\"wpoi-align\");\r\n\t\t $content.addClass(\"wpoi-align-element\");\r\n\t }\r\n\t if ( $form.height() < $content.height() ){\r\n\t\t $aside.css(\"height\", $element.height() + 'px');\r\n\t\t $aside.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$sidebar = $this.find(\".wpoi-aside-x\"),\r\n\t \t$element = $sidebar.prev(\".wpoi-element\"),\r\n\t \t$form = $this.find(\"form\");\r\n\t \r\n\t if ( $form.height() < $element.height() ){\r\n\t\t $sidebar.css(\"height\", $element.height());\r\n\t\t $sidebar.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n \r\n // Layout #3\r\n // Group module fields\r\n $(\".wpoi-layout-three .wpoi-optin:not(.wpoi-small)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$elements = $this.find('form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)');\r\n $elements.addClass(\"wpoi-grouped-element\");\r\n \r\n //The elements will be grouped a single time, it doesn't matter how many times this function is called\r\n\t for (var i = 0; i < $elements.length; i+=2) {\r\n\t\t $elements.slice(i, i+2).wrapAll('<div class=\"wpoi-element wpoi-grouped-element\" style=\"background-color: transparent;\"><div class=\"wpoi-container\"></div></div>');\r\n\t\t }\r\n });\r\n \r\n // Layout #4\r\n // Group module fields\r\n $(\".wpoi-layout-four .wpoi-optin:not(.wpoi-small)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$elements = $this.find('form > .wpoi-element:not(.wpoi-provider-args,.wpoi-grouped-element)');\r\n\t $elements.addClass(\"wpoi-grouped-element\");\r\n\r\n //The elements will be grouped a single time, it doesn't matter how many times this function is called\r\n\t for (var i = 0; i < $elements.length; i+=2) {\r\n\t\t $elements.slice(i, i+2).wrapAll('<div class=\"wpoi-element wpoi-grouped-element\" style=\"background-color: transparent;\"><div class=\"wpoi-container\"></div></div>');\r\n\t\t }\r\n });\r\n \r\n // Layout #4\r\n // Vertical align content\r\n $(\".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container.noimage:not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$aside = $this.find(\".wpoi-aside-xl\"),\r\n\t \t$col = $this.find(\".wpoi-aside-xl > .wpoi-container\"),\r\n\t \t$parent = $aside.find(\".wpoi-form\"),\r\n\t \t$form = $aside.find(\"form\"),\r\n\t \t$element = $aside.next(\".wpoi-element\"),\r\n\t \t$content = $element.find(\".wpoi-content\");\r\n\t \r\n\t if ( $content.height() > $form.height() ){\r\n\t\t $col.css(\"height\", $aside.height() + 'px');\r\n\t\t $parent.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n\t if ( $content.height() < $form.height() ) {\r\n\t\t $element.css(\"height\", $col.height() + 'px');\r\n\t\t $element.addClass(\"wpoi-align\");\r\n\t\t $content.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n $(\".wpoi-layout-four .wpoi-optin:not(.wpoi-small) > .wpoi-container:not(.noimage):not(.nocontent)\").each(function(){\r\n\t var $this = $(this),\r\n\t \t$aside = $this.find(\".wpoi-aside-xl\"),\r\n\t \t$col = $this.find(\".wpoi-aside-xl > .wpoi-container\"),\r\n\t \t$image = $this.find(\".wpoi-image\"),\r\n\t \t$parent = $aside.find(\".wpoi-form\"),\r\n\t \t$form = $aside.find(\"form\"),\r\n\t \t$element = $aside.next(\".wpoi-element\"),\r\n\t \t$content = $this.find(\".wpoi-content\");\r\n\t \r\n\t if ( $content.height() > $col.height() ){\r\n\t\t $col.css(\"height\", $aside.height() + 'px');\r\n\t\t $parent.css(\"height\", $col.height() - $image.height() );\r\n\t\t $parent.addClass(\"wpoi-align\");\r\n\t\t $form.addClass(\"wpoi-align-element\");\r\n\t }\r\n\t if ( $content.height() < $col.height() ) {\r\n\t\t $element.css(\"height\", $aside.height() + 'px');\r\n\t\t $element.addClass(\"wpoi-align\");\r\n\t\t $content.addClass(\"wpoi-align-element\");\r\n\t }\r\n });\r\n \r\n // Custom Content\r\n // Add proper width and height to img\r\n // parent div and make object-fit work\r\n $(\".wph-modal\").each(function(){\r\n\t var $this = $(this),\r\n $content = $this.find(\".wph-modal--content\"),\r\n $section = $this.find(\".wph-modal--content > section\"),\r\n $figure = $content.find(\"section > figure\"),\r\n $figtwo = $this.find(\".wph-modal--content > figure\"),\r\n $image = $figure.find(\"img\"),\r\n $imgtwo = $figtwo.find(\"img\");\r\n \r\n var $cabriolet = $this.hasClass(\"wph-modal--cabriolet\") && ( $figure.hasClass(\"wph-modal--image_full\") || ( $figure.hasClass(\"wph-modal--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n var $simple = $this.hasClass(\"wph-modal--simple\") && ( $figtwo.hasClass(\"wph-modal--image_full\") || ( $figtwo.hasClass(\"wph-modal--image\") && ( $imgtwo.height() < $figtwo.height() ) ) );\r\n \r\n var $minimal = $this.hasClass(\"wph-modal--minimal\") && ( $figure.hasClass(\"wph-modal--image_full\") || ( $figure.hasClass(\"wph-modal--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n if ( $cabriolet || $minimal ){\r\n\t $image.css({\r\n\t\t \"height\" : $section.height() + 'px',\r\n\t\t \"width\" : $section.width() + 'px'\r\n\t });\r\n }\r\n \r\n if ( $simple ){\r\n\t $imgtwo.css({\r\n\t\t \"height\" : $content.height() + 'px',\r\n\t\t \"width\" : $content.width() + 'px'\r\n\t });\r\n }\r\n\t\t\t\r\n\t\t\t// apply styles for custom size\r\n\t\t\tvar $header = $this.find(\".wph-modal--content header\"),\r\n\t\t\t\t$footer = $this.find(\".wph-modal--content footer\"),\r\n\t\t\t\t$modal_content = $this.find(\".wph-modal--content\"),\r\n\t\t\t\t$modal_message = $this.find(\".wph-modal--content .wph-modal--message\"),\r\n\t\t\t\t$modal_message_section = $this.find(\".wph-modal--content section\"),\r\n\t\t\t\t$modal_image = $this.find(\".wph-modal--content .wph-modal--image\"),\r\n\t\t\t\t$modal_img = $this.find(\".wph-modal--content .wph-modal--image img\"),\r\n\t\t\t\tcustom_width = parseInt($this.data(\"custom_width\")),\r\n\t\t\t\tcustom_height = parseInt($this.data(\"custom_height\")),\r\n\t\t\t\tborder_weight = parseInt($this.data(\"border\")) * 2\r\n\t\t\t;\r\n\t\t\tborder_weight = ( isNaN(border_weight) ) \r\n\t\t\t\t? 0\r\n\t\t\t\t: border_weight\r\n\t\t\t;\r\n\t\t\tif ( custom_width && custom_height ) {\r\n\t\t\t\t$this.css('width', custom_width + 'px');\r\n\t\t\t\t$this.css('max-width', 'none');\r\n\t\t\t\tif ( $this.hasClass(\"wph-modal--cabriolet\") ) {\r\n\t\t\t\t\t$modal_message.outerHeight( custom_height - ( $header.outerHeight(true) ) - border_weight );\r\n\t\t\t\t\t$modal_image.outerHeight( $modal_message.outerHeight(true) );\r\n\t\t\t\t\t$modal_img.outerHeight( $modal_message.outerHeight(true) );\r\n\t\t\t\t}\r\n\t\t\t\tif ( $this.hasClass(\"wph-modal--simple\") ) {\r\n\t\t\t\t\t$modal_content.outerHeight( custom_height );\r\n\t\t\t\t\t$modal_image.outerHeight( $modal_content.height() );\r\n\t\t\t\t\t$modal_img.outerHeight( $modal_content.height() );\r\n\t\t\t\t}\r\n\t\t\t\tif ( $this.hasClass(\"wph-modal--minimal\") ) {\r\n\t\t\t\t\t$modal_message_section.outerHeight( custom_height - ( $header.outerHeight(true) + $footer.outerHeight(true) ) - border_weight );\r\n\t\t\t\t\t$modal_image.outerHeight( $modal_message_section.outerHeight(true) );\r\n\t\t\t\t\t$modal_img.outerHeight( $modal_message_section.outerHeight(true) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t// Custom Content Shortcode\r\n\t\t// Add proper width and height to img\r\n // parent div and make object-fit work\r\n $(\".wph-cc-shortcode\").each(function(){\r\n\t var $this = $(this),\r\n $content = $this.find(\".wph-cc-shortcode--content\"),\r\n $section = $this.find(\".wph-cc-shortcode--content > section\"),\r\n $figure = $content.find(\"section > figure\"),\r\n $figtwo = $this.find(\".wph-cc-shortcode--content > figure\"),\r\n $image = $figure.find(\"img\"),\r\n $imgtwo = $figtwo.find(\"img\");\r\n \r\n var $cabriolet = $this.hasClass(\"wph-cc-shortcode--cabriolet\") && ( $figure.hasClass(\"wph-cc-shortcode--image_full\") || ( $figure.hasClass(\"wph-cc-shortcode--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n var $simple = $this.hasClass(\"wph-cc-shortcode--simple\") && ( $figtwo.hasClass(\"wph-cc-shortcode--image_full\") || ( $figtwo.hasClass(\"wph-cc-shortcode--image\") && ( $imgtwo.height() < $figtwo.height() ) ) );\r\n \r\n var $minimal = $this.hasClass(\"wph-cc-shortcode--minimal\") && ( $figure.hasClass(\"wph-cc-shortcode--image_full\") || ( $figure.hasClass(\"wph-cc-shortcode--image\") && ( $image.height() < $figure.height() ) ) );\r\n \r\n if ( $cabriolet || $minimal ){\r\n\t $image.css({\r\n\t\t \"height\" : $section.height() + 'px',\r\n\t\t \"width\" : $section.width() + 'px'\r\n\t });\r\n }\r\n \r\n if ( $simple ){\r\n\t $imgtwo.css({\r\n\t\t \"height\" : $content.height() + 'px',\r\n\t\t \"width\" : $content.width() + 'px'\r\n\t });\r\n }\r\n\t\t});\r\n }\r\n \r\n /**\r\n Relocate submit button if no mailchimp groups\r\n */\r\n function relocate_mailchimp_button( popup_data ) {\r\n if ( typeof popup_data.provider_args === 'undefined' || typeof popup_data.provider_args.group === 'undefined' ) {\r\n // relocate buttons\r\n $('.inc_optin_' + popup_data.data.optin_id + ' .wpoi-element .wpoi-button').each(function(){\r\n var $this = $(this),\r\n $clone = $this.clone(),\r\n $args_container = $this.closest('.wpoi-element.wpoi-provider-args'),\r\n $mc_fields = $args_container.siblings('.wpoi-mcg-common-fields');\r\n \r\n $mc_fields.find('.wpoi-container').append($clone);\r\n $args_container.remove();\r\n \r\n });\r\n }\r\n }\r\n\r\n $(doc).on(\"wpoi:display\", _.debounce(add_proper_classes, 100, false));\r\n $(doc).on(\"wpoi:cc_display\", _.debounce(add_proper_classes, 100, false));\r\n $(window).on(\"resize\", _.debounce( add_proper_classes, 100, false ) );\r\n\r\n $window.on('scroll resize', _.debounce( check_if_in_view, 100, false ) );\r\n $window.trigger('scroll');\r\n \r\n $(document).on('blur', 'input, textarea, select', function(){\r\n\t var $this = $(this);\r\n\t if($this.is(':input[type=button], :input[type=submit], :input[type=reset]')) return;\r\n\t if($this.val().trim() !== '') {\r\n\t\t $this.parent().addClass('wpoi-filled');\r\n\t\t} else{\r\n $this.parent().removeClass('wpoi-filled');\r\n }\r\n });\r\n\r\n $(document).on('focus', '.wpoi-optin input.required', function(){\r\n $(this).next('label').find('i.wphi-font').removeClass('i-error');\r\n });\r\n\r\n /**\r\n * Renders provider args and returns html\r\n *\r\n *\r\n * @since 1.0.1\r\n *\r\n * @param optin_data\r\n * @return html\r\n */\r\n Optin.render_provider_args = function( optin_data ){\r\n if( _.isEmpty( optin_data.provider_args ) || _.isEmpty( optin_data.data.optin_provider ) ) return \"\";\r\n\r\n var provider_args_tpl = Optin.template( \"optin-\" + optin_data.data.optin_provider + \"-args\" );\r\n optin_data.provider_args.cta_button = optin_data.design.cta_button;\r\n \r\n if ( $(\"#optin-\" + optin_data.data.optin_provider + \"-args\" ).length ) {\r\n return provider_args_tpl( optin_data.provider_args );\r\n } else {\r\n return '';\r\n }\r\n \r\n };\r\n\r\n /**\r\n * Renders optin front layout based on give optin_data\r\n *\r\n * @param optin_data\r\n */\r\n Optin.render_optin = function( optin_data, use_compat ){ \r\n var is_compat = ( typeof use_compat !== 'undefined' && use_compat ) ? true : false,\r\n current_tpl_settings = _.templateSettings;\r\n \r\n // if needs compatibility e.g. upfront which uses another _.templateSettings\r\n if ( is_compat ) {\r\n Optin.global_mixin();\r\n // force our _.templateSettings setup\r\n _.templateSettings = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n }\r\n \r\n var layout = parseInt(optin_data.design.form_location),\r\n tpl = Optin.get_tpl( layout, is_compat ),\r\n _show_args = function(){\r\n //Mailchimp might not always have groups\r\n if( \"mailchimp\" === optin_data.data.optin_provider\r\n && optin_data.provider_args\r\n )\r\n return true;\r\n\r\n return false;\r\n },\r\n html_data = _.extend({\r\n image_style: \"\",\r\n has_args: _show_args()\r\n }, \r\n optin_data.design, \r\n optin_data.design.borders, \r\n optin_data.data\r\n ),\r\n html = tpl(html_data);\r\n \r\n // after getting the template, revert back to previous _.templateSettings\r\n if ( is_compat ) {\r\n _.templateSettings = current_tpl_settings;\r\n }\r\n\r\n $(doc).trigger(\"wpoi:layout:rendered\");\r\n return html;\r\n };\r\n\t\r\n\t/**\r\n * Renders cc shortcode front layout based on given optin_data\r\n *\r\n * @param optin_data\r\n */\r\n Optin.render_cc_shortcode = function( optin_data, use_compat ){\r\n var is_compat = ( typeof use_compat !== 'undefined' && use_compat ) ? true : false,\r\n types = [],\r\n current_tpl_settings = _.templateSettings;\r\n \r\n types[optin_data.type] = {\r\n add_never_see_link: ''\r\n };\r\n \r\n // if needs compatibility e.g. upfront which uses another _.templateSettings\r\n if ( is_compat ) {\r\n Optin.global_mixin();\r\n // force our _.templateSettings setup\r\n _.templateSettings = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n }\r\n \r\n var tpl = ( is_compat ) ? Optin.template_compat( 'hustle-modal-tpl' ) : Optin.template( 'hustle-modal-tpl' ),\r\n\t\t\thtml = tpl( _.extend({\r\n type: optin_data.type,\r\n id: optin_data.content.optin_id,\r\n position: '',\r\n animation_in: '',\r\n fullscreen: '',\r\n types: types\r\n }, \r\n optin_data.content, \r\n optin_data.design,\r\n cc_handle_custom_size(optin_data.design)\r\n ) );\r\n \r\n // after getting the template, revert back to previous _.templateSettings\r\n if ( is_compat ) {\r\n _.templateSettings = current_tpl_settings;\r\n }\r\n\r\n $(doc).trigger(\"wpoi:layout:rendered\");\r\n $(doc).trigger(\"wpoi:cc_display\", optin_data.type);\r\n return html;\r\n };\r\n \r\n function cc_handle_custom_size( data ) {\r\n var new_data = {};\r\n new_data.custom_size_attr = '';\r\n new_data.custom_size_class = '';\r\n\r\n if ( data.customize_size && _.isTrue( data.customize_size ) ) {\r\n new_data.custom_size_class = 'wph-modal--custom';\r\n new_data.custom_size_attr += 'data-custom_width='+ data.custom_width +' data-custom_height='+ data.custom_height +'';\r\n }\r\n if ( data.border && _.isTrue( data.border ) ) {\r\n new_data.custom_size_attr += ' data-border='+ data.border_weight;\r\n }\r\n\r\n return new_data;\r\n }\r\n\r\n var listening_to_exit_intent = false;\r\n Optin.listen_to_exit_intend = function(){\r\n\r\n if( listening_to_exit_intent ) return;\r\n\r\n $(doc).on(\"mouseleave\", _.debounce( function(e){\r\n $(doc).trigger(\"wpoi:exit_intended\", e);\r\n }, 100, true));\r\n\r\n listening_to_exit_intent = true;\r\n };\r\n\r\n var checking_adblock = false;\r\n Optin.is_adblock_enabled = function(){\r\n if( checking_adblock ) return;\r\n //\r\n //var $script = $('<script src=\"{url}\" type=\"text/javascript\"></script>'.replace(\"{url}\", inc_opt.adblock_detector_js) );\r\n //$script.appendTo( \"body\" );\r\n\r\n if( $(\"#hustle_optin_adBlock_detector\").length ){\r\n return false;\r\n }else{\r\n return true;\r\n }\r\n\r\n checking_adblock = true;\r\n };\r\n}(jQuery, document));\r\n","(function($,doc,win){\r\n \"use strict\";\r\n\tif( inc_opt.is_upfront ) return;\r\n\r\n\t/**\r\n\t * Front View Model\r\n\t *\r\n\t * This model is use to render Opt-In/Custom-Content popup and slide_in.\r\n\t **/\r\n\tOptin.View = Backbone.View.extend({\r\n\t\tisCC: false,\r\n\t\tdisplay_id: 'display',\r\n\t\tshowClass: 'wpoi-show',\r\n\t\tmaskShowClass: 'inc_optin_',\r\n\t\toptin_id: '',\r\n\t\ttype: '',\r\n\t\tsettings: {},\r\n\t\tdata: {},\r\n\t\tadd_never_see_again: false,\r\n\t\tappear_after: 'time',\r\n\t\tmask: false,\r\n\t\tshould_remove: false,\r\n\t\tparent: 'body',\r\n\t\tanim_in_time: Optin.popup_overlay_delay,\r\n\t\tanim_out_time: 2000,\r\n\t\tviewed: false,\r\n\t\tevents: {\r\n\t\t\t'click': 'click',\r\n\t\t\t'click .inc-opt-close-btn': 'closed',\r\n\t\t\t'click .inc_opt_never_see_again': 'closed'\r\n\t\t},\r\n\t\tclick: _.noop,\r\n\r\n\t\tinitialize: function( opts ) {\r\n\t\t\tthis.key = opts.key;\r\n\t\t\tthis.opt = Optins[ this.key ];\r\n\t\t\tthis.settings = this.opt.settings[this.type];\r\n\t\t\tthis.data = this.opt.data;\r\n\t\t\tthis.optin_id = this.data.optin_id;\r\n\t\t\tthis.maskClass = 'inc_optin_' + this.optin_id + ' ' + this.maskClass;\r\n\t\t\tthis.add_never_see_again = _.isTrue( this.settings.add_never_see_this_message );\r\n\t\t\tthis.appear_after = this.settings.appear_after;\r\n\t\t\tthis.cookie_key = ( 'popup' === this.type ? Optin.POPUP_COOKIE_PREFIX : Optin.SLIDE_IN_COOKIE_PREFIX ) + this.optin_id;\r\n\t\t\tthis.expiration_days = parseInt( this.settings.never_see_expiry, 10 );\r\n\r\n\t\t\tthis.triggers = {\r\n\t\t\t\ton_time: this.settings.trigger_on_time,\r\n\t\t\t\ton_time_delay: this.settings.appear_after_time_val,\r\n\t\t\t\ton_time_unit: this.settings.appear_after_time_unit,\r\n\t\t\t\ton_scroll: this.settings.appear_after_scroll,\r\n\t\t\t\ton_scroll_page_percent: parseInt( this.settings.appear_after_page_portion_val ),\r\n\t\t\t\ton_scroll_css_selector: this.settings.appear_after_element_val,\r\n\t\t\t\ton_click_element: this.settings.trigger_on_element_click,\r\n\t\t\t\ton_exit_intent: this.settings.trigger_on_exit,\r\n\t\t\t\ton_exit_intent_per_session: this.settings.on_exit_trigger_once_per_session,\r\n\t\t\t\ton_adblock: this.settings.trigger_on_adblock,\r\n\t\t\t\ton_adblock_delayed: this.settings.trigger_on_adblock_timed,\r\n\t\t\t\ton_adblock_delayed_time: this.settings.trigger_on_adblock_timed_val,\r\n\t\t\t\ton_adblock_delayed_unit: this.settings.trigger_on_adblock_timed_unit\r\n\t\t\t};\r\n\r\n\t\t\tif ( ! this.should_display() ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif ( _.contains( ['time', 'scrolled', 'adblock'], this.appear_after )\r\n\t\t\t\t|| ( 'exit_intent' === this.appear_after && _.isTrue( this.settings.on_exit_trigger_once_per_session ) ) ) {\r\n\t\t\t\tthis.should_remove = true;\r\n\t\t\t}\r\n\r\n\t\t\tthis.render();\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Check if popup should display. **/\r\n\t\tshould_display: function() {\r\n\t\t\treturn _.isTrue( this.settings.display )\r\n\t\t\t\t&& !_.isTrue( Optin.cookie.get( this.cookie_key ) );\r\n\t\t},\r\n\r\n\t\t/**\r\n\t\t * Trigger to completely hide this. **/\r\n\t\tnever_see_again: function() {\r\n\t\t\tOptin.cookie.set( this.cookie_key, this.optin_id, this.expiration_days );\r\n\t\t},\r\n\r\n\t\tfit: function() {\r\n\t\t\tvar height = $(win).height(),\r\n\t\t\t\tmax_height = ( height / 100 ) * 65,\r\n\t\t\t\theader_height = this.$('header').outerHeight(),\r\n\t\t\t\tcontainers = this.$('.wph-modal--message, .wph-modal--image'),\r\n\t\t\t\tmessage_height = max_height - header_height,\r\n\t\t\t\tel_css = {'max-height': max_height };\r\n\r\n\t\t\tthis.$el.css( 'max-height', max_height );\r\n\t\t\tcontainers.css('max-height', message_height );\r\n\r\n\t\t\tif ( 'popup' === this.type && 'cabriolet' !== this.settings.style ) {\r\n\t\t\t\tvar top = (height - max_height)/2;\r\n\t\t\t\t\ttop = top - (top * 1.5);\r\n\r\n\t\t\t\tthis.$el.css('margin-top', top + 'px');\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\trender: function() {\r\n\t\t\tvar html = '<a href=\"#\" aria-label=\"Close\" class=\"inc-opt-close-btn inc-opt-close-' + this.type + '\">&times;</a>';\r\n\t\t\t\thtml += Optin.render_optin( this.opt );\r\n var data = {handle: this.key, type: this.type, popup: this.opt};\r\n\r\n\t\t\tif ( this.add_never_see_again ) {\r\n\t\t\t\thtml += '<div class=\"wpoi-nsa\"><a class=\"inc_opt_never_see_again\">%s</a></div>'.replace(\"%s\", inc_opt.l10n.never_see_again );\r\n\t\t\t}\r\n\r\n\t\t\tif( this.settings.animation_in ){\r\n\t\t\t\tthis.$el.addClass( this.settings.animation_in );\r\n\t\t\t}\r\n\t\t\tthis.$el.addClass( ' inc_optin_' + this.optin_id );\r\n\t\t\tthis.$el.html( html );\r\n \r\n var provider = this.$(\".wpoi-provider-args\");\r\n\r\n\t\t\tif ( provider.length ) {\r\n\t\t\t\t// Add provider args\r\n\t\t\t\tprovider.html( Optin.render_provider_args( this.opt ) );\r\n\t\t\t}\r\n\r\n\t\t\tthis.$el.appendTo(this.parent);\r\n\t\t\tthis.$el.display = $.proxy( this, 'display' );\r\n\t\t\tthis.$el.on( 'show', $.proxy( this, 'onShow' ) );\r\n\t\t\tthis.$el.on( 'hide', $.proxy( this, 'onHide' ) );\r\n\t\t\tthis.$el.data(data);\r\n\t\t\tthis.html = this.$el.html();\r\n\r\n\t\t\t// Trigger display\r\n\t\t\tthis[this.appear_after + '_trigger']();\r\n\r\n\t\t\treturn this;\r\n\t\t},\r\n\r\n\t\tdisplay: function() {\r\n\t\t\tvar me = this;\r\n\r\n\t\t\t// Marked viewed when display is triggered\r\n\t\t\tthis.viewed = true;\r\n\r\n\t\t\tif( this.$el.is( '.' + this.showClass ) ) {\r\n\t\t\t\t// If already shown, return\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis.$el.html( this.html );\r\n\t\t\tthis.$el.removeClass( this.settings.animation_out );\r\n\t\t\tthis.add_mask();\r\n\t\t\tthis.animation_in();\r\n\t\t\tthis.$el.trigger( 'show', this );\r\n\t\t},\r\n\r\n\t\tadd_mask: function() {\r\n\t\t\tvar me = this,\r\n no_scroll = _.isFalse(this.settings.allow_scroll_page),\r\n no_bg_click = _.isFalse(this.settings.not_close_on_background_click);\r\n \r\n _.delay( $.proxy(function() {\r\n if ( no_scroll ) {\r\n $('html').addClass('no-scroll');\r\n }\r\n\r\n if ( ! this.mask ) {\r\n this.mask = $( '<div class=\"' + this.maskClass + ' wpoi-overlay-mask wpoi-animate fadein\">' +\r\n '<div class=\"wpoi-' + this.type + '-overlay\"></div></div>' );\r\n this.mask.insertBefore(this.$el).addClass('wpoi-show');\r\n\r\n if ( no_bg_click ) {\r\n this.mask.on( 'click', $.proxy( this, 'closed' ) );\r\n }\r\n } else {\r\n this.mask.addClass('wpoi-show');\r\n }\r\n }, this), Optin.popup_overlay_delay);\r\n\t\t},\r\n\r\n\t\tanimation_in: function() {\r\n\t\t\tvar me = this,\r\n not_viewed = _.isFalse( me.viewed );\r\n\r\n\t\t\tif( this.settings.animation_in ) {\r\n\t\t\t\tthis.$el.addClass( this.settings.animation_in );\r\n\t\t\t}\r\n\r\n\t\t\t_.delay(function(){\r\n\r\n\t\t\t\tif ( not_viewed ) {\r\n\t\t\t\t\t// Prevent from running if display is abruptly closed\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tme.$el.addClass( me.showClass );\r\n\r\n\t\t\t\t// If we have an OUT animation,\r\n\t\t\t\t// we should swap the animations right after the IN ends\r\n\t\t\t\tif( me.settings.animation_out ){\r\n\t\t\t\t\tif( me.settings.animation_in ){\r\n\r\n\t\t\t\t\t\t_.delay(function(){\r\n\t\t\t\t\t\t\tme.$el.removeClass( me.settings.animation_in );\r\n\t\t\t\t\t\t\tme.$el.addClass( me.settings.animation_out );\r\n\t\t\t\t\t\t}, 350 );\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tme.$el.addClass( me.settings.animation_out );\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else if( me.settings.animation_in ){\r\n\t\t\t\t\t_.delay(function(){\r\n\t\t\t\t\t\tme.$el.removeClass( me.settings.animation_in );\r\n\t\t\t\t\t}, 350);\r\n\t\t\t\t}\r\n \r\n\t\t\t}, Optin.popup_overlay_delay );\r\n\t\t},\r\n\r\n\t\ttime_trigger: function() {\r\n\t\t\tif ( 'immediately' == this.triggers.on_time ) {\r\n\t\t\t\tthis.display();\r\n\t\t\t} else {\r\n\t\t\t\tvar delay = parseInt( this.triggers.on_time_delay, 10 ) * 1000;\r\n\r\n\t\t\t\tif( 'minutes' === this.triggers.on_time_unit ) {\r\n\t\t\t\t\tdelay *= 60;\r\n\t\t\t\t} else if( 'hours' === this.triggers.on_time_unit ) {\r\n\t\t\t\t\tdelay *= ( 60 * 60 );\r\n\t\t\t\t}\r\n\r\n\t\t\t\t_.delay( $.proxy( this, 'display' ), delay );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclick_trigger: function() {\r\n var me = this,\r\n selector = '';\r\n \r\n\t\t\tif( \"\" !== (selector = $.trim( this.triggers.on_click_element ) ) ){\r\n\t\t\t\tvar $clickable = $(selector);\r\n\r\n\t\t\t\tif( $clickable.length ) {\r\n\t\t\t\t\t$(doc).on( 'click', selector, function(e) {\r\n e.preventDefault();\r\n me.display();\r\n } );\r\n\t\t\t\t}\r\n\t\t\t}\r\n \r\n /**\r\n * Clickable button added with shortcode\r\n */\r\n $(doc).on(\"click\", \".inc_opt_hustle_shortcode_trigger\", function(e){\r\n e.preventDefault();\r\n if( $(this).data(\"id\") == me.data.optin_id && $(this).data(\"type\") == me.type ) {\r\n me.display();\r\n }\r\n });\r\n\t\t},\r\n\r\n\t\tscroll_trigger: function() {\r\n\t\t\tvar me = this, popup_shown = false;\r\n\r\n\t\t\tif( 'scrolled' === this.triggers.on_scroll ){\r\n\t\t\t\t$(win).scroll(_.debounce( function(){\r\n\t\t\t\t\tif ( popup_shown ) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif( ( win.pageYOffset * 100 / $(doc).height() ) >= parseFloat( me.triggers.on_scroll_page_percent ) ) {\r\n\t\t\t\t\t\tme.display();\r\n\t\t\t\t\t popup_shown = true;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}, 50) );\r\n\t\t\t}\r\n\r\n\t\t\tif( 'selector' === this.triggers.on_scroll ){\r\n\t\t\t\t var $el = $( this.triggers.on_scroll_css_selector );\r\n\r\n\t\t\t\t if( $el.length ){\r\n\t\t\t\t\t $(win).scroll(_.debounce( function(){\r\n\t\t\t\t\t\t if ( popup_shown ) {\r\n\t\t\t\t\t\t\t return;\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t if( win.pageYOffset >= $el.position().top ) {\r\n\t\t\t\t\t\t\t me.display();\r\n\t\t\t\t\t\t\t popup_shown = true;\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }, 50));\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t},\r\n\r\n\t\tscrolled_trigger: function() {\r\n\t\t\treturn this.scroll_trigger();\r\n\t\t},\r\n\r\n\t\texit_intent_trigger: function() {\r\n\t\t\tif(_.isTrue( this.triggers.on_exit_intent ) ){\r\n\t\t\t\tif ( _.isTrue( this.triggers.on_exit_intent_per_session ) ) {\r\n\t\t\t\t\tHustle.Events.once( 'exit_intended', $.proxy( this, 'display' ) );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tHustle.Events.on( 'exit_intended', $.proxy( this, 'display' ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tadblock_trigger: function() {\r\n\t\t\tvar adblock = ! $('#hustle_optin_adBlock_detector').length;\r\n\r\n\t\t\tif ( adblock && _.isTrue( this.triggers.on_adblock ) ) {\r\n\t\t\t\tif( _.isFalse( this.triggers.on_adblock_delayed ) ){ \r\n\t\t\t\t\tthis.display();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar delay = parseInt( this.triggers.on_adblock_delayed_time, 10 ) * 1000;\r\n\r\n\t\t\t\t\tif( 'minutes' === this.triggers.on_adblock_delayed_unit ) {\r\n\t\t\t\t\t\tdelay *= 60;\r\n\t\t\t\t\t} else if( 'hours' === this.triggers.on_adblock_delayed_unit ) {\r\n\t\t\t\t\t\tdelay *= ( 60 * 60 );\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t_.delay( $.proxy( this, 'display' ), delay );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclosed: function(e) {\r\n\t\t\tvar me = this,\r\n\t\t\t\tsender = $(e.currentTarget),\r\n\t\t\t\tis_never_see = this.isCC ? _.isTrue( this.settings.close_btn_as_never_see ) : _.isTrue( this.settings.close_button_acts_as_never_see_again );\r\n\r\n\t\t\tthis.viewed = false;\r\n\t\t\tthis.$el.removeClass('wpoi-show');\r\n\r\n\t\t\tif ( ( sender.is('.wph-modal--close .wph-icon, .inc-opt-close-' + this.type ) && is_never_see )\r\n\t\t\t\t|| sender.is( '.inc_opt_never_see_again,.wph-modal-never-see-again' ) ) {\r\n\t\t\t\tthis.never_see_again();\r\n\t\t\t}\r\n\r\n\t\t\t_.delay(function() {\r\n\t\t\t\tif ( me.viewed ) {\r\n\t\t\t\t\t// Prevent from being hiding if display is triggered again\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tme.$el.removeClass(me.showClass);\r\n if ( typeof me.mask !== 'undefined' && me.mask ) {\r\n me.mask.removeClass('wpoi-show');\r\n }\r\n\t\t\t}, Optin.popup_overlay_delay );\r\n\r\n\t\t\tif ( this.settings.animation_in ) {\r\n\t\t\t\tif ( this.settings.animation_out ) {\r\n\t\t\t\t\t_.delay(function() {\r\n\t\t\t\t\t\tif ( me.viewed ) {\r\n\t\t\t\t\t\t\t// Prevent from being hiding if display is triggered again\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tme.$el.removeClass( me.settings.animation_out );\r\n\t\t\t\t\t\tme.$el.addClass( me.settings.animation_in );\r\n\t\t\t\t\t}, 1000 );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$el.addClass( this.settings.animation_in );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! this.settings.animation_out ) {\r\n\t\t\t\t// Make sure all contents are being hidden if popup doesn't have any animation_out\r\n\t\t\t\tthis.$el.hide();\r\n\t\t\t\t_.defer(function() {\r\n\t\t\t\t\t( me.$el[0].style || {} ).display = '';\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tif ( _.isTrue( this.settings.close_button_acts_as_never_see_again )\r\n\t\t\t\t&& _.isTrue( this.settings.trigger_on_exit ) ) {\r\n\t\t\t\t$(doc).off( 'wpoi:exit_intended' );\r\n\t\t\t}\r\n\r\n\t\t\t// delay only if has animations\r\n\t\t\tif ( this.settings.animation_out ) {\r\n\t\t\t\t_.delay(function() {\r\n\t\t\t\t\tif ( me.viewed ) {\r\n\t\t\t\t\t\t// Prevent from being hiding if display is triggered again\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tme.clean();\r\n\t\t\t\t}, 1100 );\r\n\t\t\t} else {\r\n\t\t\t\tme.clean();\r\n\t\t\t}\r\n\r\n\t\t\tif ( _.isFalse( this.settings.allow_scroll_page ) ) {\r\n\t\t\t\t$('html').removeClass('no-scroll');\r\n\t\t\t}\r\n\r\n\t\t\tthis.$el.trigger( 'hide', this );\r\n\r\n\t\t\treturn false;\r\n\t\t},\r\n\t\t\r\n\t\tclean: function() {\r\n\t\t\tthis.$el.html('');\r\n\t\t\tif ( this.should_remove ) {\r\n\t\t\t\tthis.$el.remove();\r\n if ( typeof this.mask !== 'undefined' && this.mask ) {\r\n this.mask.remove();\r\n }\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tonShow: function() {\r\n\t\t\t$(document).trigger( 'wpoi:' + this.display_id, [this.type, this.$el, this.opt ]);\r\n\t\t},\r\n\r\n\t\tonHide: function() {\r\n\t\t\t$(document).trigger(\"wpoi:hide\", [this.type, this.$el, this.opt ]);\r\n\t\t}\r\n\t});\r\n}(jQuery,document,window));","(function($, doc, win){\r\n \"use strict\";\r\n\tif( inc_opt.is_upfront ) return;\r\n\r\n\tvar Optin = window.Optin || {};\r\n\tvar logView = Backbone.Model.extend({\r\n\t\turl: inc_opt.ajaxurl + '?action=hustle_custom_content_viewed',\r\n\t\tdefaults: {\r\n\t\t\tpage_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n type: '',\r\n uri: encodeURI( window.location.href )\r\n\t\t},\r\n\t\tparse: function( res ) {\r\n\t\t\tif ( res.success ) {\r\n\t\t\t\tconsole.log('Log success!');\r\n\t\t\t} else {\r\n\t\t\t\tconsole.log('Log failed!');\r\n\t\t\t}\r\n\t\t}\r\n\t}),\r\n\tlogConversion = logView.extend({ url: inc_opt.ajaxurl + '?action=hustle_custom_content_converted' });\r\n\r\n\tlogView = new logView();\r\n\tlogConversion = new logConversion();\r\n \r\n Optin.CC_log_view = logView;\r\n Optin.CC_log_conversion = logConversion;\r\n\r\n\tOptin.CCPopUp = Optin.View.extend({\r\n\t\tisCC: true,\r\n\t\tdisplay_id: 'cc_display',\r\n\t\tshowClass: 'wph-modal-show',\r\n\t\tmaskClass: 'wph-modal--mask',\r\n\t\tcookie_key: Hustle.consts.Never_See_Aagain_Prefix,\r\n\t\tevents: {\r\n\t\t\t'click': 'click',\r\n\t\t\t'click .wph-modal--close .wph-icon': 'closed',\r\n\t\t\t'click .wph-modal--cta': 'fire_conversion_event',\r\n\t\t\t'click .wph-modal-never-see-again': 'closed',\r\n\t\t\t'submit form': 'on_form_submit'\r\n\t\t},\r\n\r\n\t\tinitialize: function( opts ) {\r\n\t\t\tthis.opt = opts;\r\n\t\t\tthis.type = opts.type;\r\n\t\t\tthis.data = opts.content;\r\n\t\t\tthis.optin_id = this.data.optin_id;\r\n\t\t\tthis.settings = opts[this.type];\r\n\t\t\tthis.triggers = this.settings.triggers;\r\n this.tracking_types = opts.tracking_types;\r\n\t\t\tthis.appear_after = this.triggers.trigger + '_trigger';\r\n\t\t\tthis.cookie_key += this.type + '-' + this.optin_id;\r\n\t\t\tthis.expiration_days = this.settings.expiration_days ? parseInt( this.settings.expiration_days ) : 0;\r\n\t\t\tthis.settings.display = this.opt.should_display[this.type];\r\n \r\n\t\t\tif ( ! this.should_display() ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis.model = _.extend(\r\n\t\t\t\tthis.settings,\r\n\t\t\t\topts.design,\r\n\t\t\t\tthis.data,\r\n\t\t\t\t{\r\n\t\t\t\t\tid: this.optin_id,\r\n\t\t\t\t\ttype: this.type,\r\n\t\t\t\t\tposition: this.settings.position,\r\n\t\t\t\t\ttypes: {\r\n\t\t\t\t\t\tpopup: opts.popup,\r\n\t\t\t\t\t\tslide_in: opts.slide_in,\r\n\t\t\t\t\t\tafter_content: opts.after_content\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t);\r\n\r\n\t\t\tif ( _.contains( ['time', 'scrolled', 'adblock'], this.triggers.trigger )\r\n\t\t\t\t|| ( 'exit_intent_trigger' === this.appear_after && _.isTrue( this.settings.on_exit_intent_per_session ) ) ) {\r\n\t\t\t\tthis.should_remove = true;\r\n\t\t\t}\r\n\r\n\t\t\tthis.render();\r\n\t\t},\r\n\r\n\t\trender: function() {\r\n\t\t\tthis.model = _.extend( this.model,\r\n\t\t\t\tthis.handle_custom_size( this.model ),\r\n\t\t\t\tthis.enable_fullscreen( this.model ),\r\n\t\t\t\tthis.sanitize_cta_url( this.model )\r\n\t\t\t);\r\n\r\n\t\t\tvar template = Optin.template( 'hustle-modal-tpl' );\r\n\t\t\t\ttemplate = template( this.model );\r\n\r\n\t\t\tthis.setElement(template);\r\n\t\t\tthis.$el.appendTo(this.parent);\r\n\t\t\tthis.$el.display = $.proxy( this, 'display' );\r\n\t\t\tthis.$el.on( 'show', $.proxy( this, 'onShow' ) );\r\n\t\t\tthis.$el.on( 'show', $.proxy( Hustle.Events, 'trigger', 'cc_modal_shown', this, this.type ) );\r\n\t\t\tthis.$el.on( 'hide', $.proxy( this, 'onHide' ) );\r\n\t\t\tthis.html = this.$el.html();\r\n\r\n\t\t\t// Log view\r\n if ( this.tracking_types != null && _.isTrue( this.tracking_types[this.type] ) ) {\r\n Hustle.Events.once( 'cc_modal_shown', this.logView, this );\r\n }\r\n \r\n // set cookies used for \"show less than\" display condition\r\n Hustle.Events.once( 'cc_modal_shown', this.update_view_count_cookie, this );\r\n\t\t\t\r\n\t\t\t// Fix content size\r\n\t\t\tHustle.Events.on( 'cc_modal_shown', this.fit, this );\r\n\t\t\tHustle.Events.on( 'hustle_resize', this.fit, this );\r\n\r\n\t\t\tthis[this.appear_after]();\r\n \r\n // Fixed compat issue with Caldera Forms conditionals\r\n this.caldera_form_compat();\r\n \r\n\t\t},\r\n \r\n caldera_form_compat: function() {\r\n if( !inc_opt.is_caldera_active ) return;\r\n \r\n if( typeof calders_forms_init_conditions !== 'undefined' ){\r\n calders_forms_init_conditions();\r\n $('.caldera_forms_form').find('[data-field]').first().trigger('change');\r\n };\r\n },\r\n\r\n\t\tlogView: function() {\r\n\t\t\tlogView.set( 'type', this.type );\r\n\t\t\tlogView.set( 'id', this.optin_id );\r\n\t\t\tlogView.save();\r\n\t\t},\r\n\r\n\t\tupdate_view_count_cookie: function() {\r\n\t\t\tif( !window.hasOwnProperty( \"optin_vars\" ) ){ // don't set cookie in admin\r\n\t\t\t\tvar show_count_key = Hustle.consts.Module_Show_Count + this.model.type + \"-\" + this.model.id,\r\n\t\t\t\t\tcurrent_show_count = Hustle.cookie.get( show_count_key );\r\n\t\t\t\tHustle.cookie.set( show_count_key, current_show_count + 1, 90 );\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tsanitize_cta_url: function( data ) {\r\n\t\t\tif ( data.cta_url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(data.cta_url)) {\r\n\t\t\t\t\tdata.cta_url = \"http://\" + data.cta_url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn data;\r\n\t\t},\r\n\r\n\t\tfire_conversion_event: function(e) {\r\n\t\t\tvar source = $(e.currentTarget).hasClass( \"wph-modal--cta\" ) ? \"cta\" : \"form\";\r\n \r\n if ( this.tracking_types != null && _.isTrue( this.tracking_types[this.type] ) ) {\r\n Hustle.Events.trigger('cc_modal_converted', this, source);\r\n logConversion.set( 'id', this.optin_id );\r\n logConversion.set( 'type', this.type );\r\n logConversion.set( 'source', source );\r\n logConversion.save();\r\n }\r\n\t\t},\r\n\r\n\t\tenable_fullscreen: function( data ) {\r\n\t\t\tdata.fullscreen = '';\r\n\r\n\t\t\tif ( 'popup' === this.type && this.settings.make_fullscreen ) {\r\n\t\t\t\tdata.fullscreen = 'wph-modal-popup-fullscreen';\r\n\t\t\t}\r\n\r\n\t\t\treturn data;\r\n\t\t},\r\n\r\n\t\thandle_custom_size: function( data ){\r\n\t\t\tdata.custom_size_attr = '';\r\n\t\t\tdata.custom_size_class = '';\r\n\r\n\t\t\tif ( data.customize_size && _.isTrue( data.customize_size ) ) {\r\n\t\t\t\tdata.custom_size_class = 'wph-modal--custom';\r\n\t\t\t\tdata.custom_size_attr += 'data-custom_width='+ data.custom_width +' data-custom_height='+ data.custom_height +'';\r\n\t\t\t}\r\n\t\t\tif ( data.border && _.isTrue( data.border ) ) {\r\n\t\t\t\tdata.custom_size_attr += ' data-border='+ data.border_weight;\r\n\t\t\t}\r\n\r\n\t\t\treturn data;\r\n\t\t},\r\n\r\n\t\ton_form_submit: function(e) {\r\n\t\t\tvar self = this,\r\n $form = $(e.target),\r\n on_submit = this.settings.on_submit;\r\n\r\n // Delay to allow for form submission and see if server-side validation was successful or not\r\n\t\t\twindow.setTimeout( $.proxy(function(){\r\n //The specific case of Contact Form 7: cancel CC close behaviour to allow the user retry submitting the form\r\n if( $form.hasClass(\"wpcf7-form\") && $form.hasClass(\"invalid\") ) return;\r\n switch ( on_submit ){\r\n default:\r\n case 'refresh_or_close':\r\n this.closed(e);\r\n break;\r\n case \"close\":\r\n case 'close_after_form_submit':\r\n this.closed(e);\r\n\r\n break;\r\n case \"redirect\":\r\n case 'redirect_to_form_target':\r\n window.location.replace( $form.attr(\"action\") );\r\n break;\r\n case 'refresh_or_nothing':\r\n break;\r\n }\r\n\t\t\t}, this), 1500 );\r\n\r\n\r\n\t\t}\r\n\t});\r\n\r\n\tOptin.CCSlideIn = Optin.CCPopUp.extend({\r\n\t\tkey_prefix: '',\r\n\t\thide_all_key: '',\r\n\t\tdelay_time: 0,\r\n\r\n\t\tshould_display: function() {\r\n\t\t\tthis.key_prefix = Hustle.consts.Slide_Cookie_Prefix + this.optin_id;\r\n\t\t\tthis.hide_all_key = Hustle.consts.Slide_Cookie_Hide_All + this.optin_id;\r\n\t\t\tthis.delay_time = this.settings.hide_after_unit === \"minutes\" ? parseInt( this.settings.hide_after_val, 10 ) * 60 * 1000 : parseInt( this.settings.hide_after_val, 10 ) * 1000;\r\n\r\n\t\t\tvar opt_cookie_never_see = Optin.cookie.get( this.cookie_key );\r\n\r\n\t\t\tif ( _.isFalse( opt_cookie_never_see ) ) {\r\n\t\t\t\t// Check prefix\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( this.key_prefix );\r\n\t\t\t}\r\n\t\t\tif ( _.isFalse( opt_cookie_never_see ) ) {\r\n\t\t\t\t// Check hide all\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( this.hide_all_key );\r\n\t\t\t}\r\n\r\n\t\t\tif ( 'keep_showing' === this.settings.after_close && opt_cookie_never_see ) {\r\n\t\t\t\topt_cookie_never_see = false;\r\n\t\t\t\tOptin.cookie.set( this.cookie_key, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( this.key_prefix, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( this.hide_all_key, this.optin_id, 0 );\r\n\t\t\t}\r\n \r\n this.add_mask = _.noop;\r\n\r\n\t\t\treturn this.opt.should_display[this.type] && !_.isTrue(opt_cookie_never_see);\r\n\t\t},\r\n\r\n\t\tonShow: function() {\r\n\t\t\tif( _.isTrue( this.settings.hide_after ) ) {\r\n var me = this;\r\n\r\n var delay_id = _.delay(function(){\r\n\t\t\t\t\tif ( ! me.prevent_hide_after ) {\r\n\t\t\t\t\t\t// if hide after is not prevented, then hide it\r\n me.$el.removeClass(me.showClass);\r\n if ( me.mask ) {\r\n me.mask.trigger('click');\r\n }\r\n\t\t\t\t\t}\r\n }, this.delay_time );\r\n }\r\n\r\n\t\t\tOptin.CCPopUp.prototype.onShow.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\tonHide: function() {\r\n\t\t\tvar should_remove = false;\r\n\r\n\t\t\tif ( 'hide_all' === this.settings.after_close ) {\r\n\t\t\t\tOptin.cookie.set( this.key_prefix, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n\t\t\t}\r\n\t\t\tif( 'no_show' === this.settings.after_close ) {\r\n Optin.cookie.set( this.hide_all_key, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n }\r\n\r\n\t\t\tif ( should_remove ) {\r\n\t\t\t\t// Remove completely\r\n if ( this.mask ) {\r\n this.mask.remove();\r\n }\r\n\t\t\t\tthis.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclick: function() {\r\n\t\t\tthis.prevent_hide_after = true;\r\n\t\t}\r\n\t});\r\n\r\n\tOptin.CCAfterContent = Optin.CCPopUp.extend({\r\n\t\tshould_display: function() {\r\n\r\n\t\t\t// If animation is off, disable in/out animation\r\n\t\t\tif ( _.isFalse( this.settings.animate ) ) {\r\n\t\t\t\tthis.settings.animation_in = this.settings.animation_out = false;\r\n\t\t\t} else {\r\n\t\t\t\tthis.settings.animation_in = this.settings.animation_out = this.settings.animation;\r\n\t\t\t}\r\n\r\n\t\t\t// Disable mask\r\n\t\t\tthis.add_mask = _.noop;\r\n\t\t\t// Set parent container\r\n\t\t\tthis.parent = '#cc-' + this.opt.uniq_id;\r\n\r\n\t\t\treturn true;\r\n\t\t}\r\n\t});\r\n\r\n}(jQuery, document, window));","(function( $ ) {\r\n \"use strict\";\r\n\tif( inc_opt.is_upfront ) return;\r\n\r\n\tOptin = window.Optin || {};\r\n\tOptin.AfterContent = function() {\r\n\t\tvar $this = $(this),\r\n\t\t\toptin_id = $this.data( 'id' ),\r\n\t\t\toptin, html;\r\n\r\n\t\toptin = _.find(Optins, function (opt) {\r\n return optin_id == opt.data.optin_id;\r\n });\r\n\r\n\t\t$this.data('handle', _.findKey(Optins, optin));\r\n\t\t$this.data('type', 'after_content');\r\n\r\n\t\t$this.html( Optin.render_optin(optin) );\r\n\r\n\t\tif (optin.settings.after_content.animate\r\n\t\t\t&& 'true' == optin.settings.after_content.animate ) {\r\n\r\n $this.addClass(optin.settings.after_content.animation);\r\n\r\n\t\t\t_.delay(function() {\r\n\t\t\t\t$this.addClass('wpoi-show');\r\n\t\t\t}, 750 );\r\n }\r\n\r\n\t\t// add provider args\r\n $this.find(\".wpoi-provider-args\").html( Optin.render_provider_args( optin ) );\r\n\r\n\t\t$(document).trigger(\"wpoi:display\", [\"after_content\", $this, optin ]);\r\n\r\n\t};\r\n\r\n}(jQuery));","(function( $, doc, win ) {\r\n \"use strict\";\r\n if( inc_opt.is_upfront ) return;\r\n\r\n\tOptin = window.Optin || {};\r\n \r\n\tOptin.PopUp = Optin.View.extend({\r\n\t\tclassName: 'inc_opt_popup wpoi-animate inc_optin',\r\n\t\ttype: 'popup'\r\n\t});\r\n}(jQuery, document, window));","(function( $, doc, win ) {\r\n \"use strict\";\r\n if( inc_opt.is_upfront ) return;\r\n\r\n\tOptin = window.Optin || {};\r\n\r\n\tOptin.SlideIn = Optin.View.extend({\r\n\t\tclassName: 'inc_opt_slidein inc_optin wpoi-slide',\r\n\t\ttype: 'slide_in',\r\n\t\tprevent_hide_after: false,\r\n\t\tdelay_time: 0,\r\n\r\n\t\tshould_display: function() {\r\n\t\t\tvar cookie_key = 'popup' === this.type ? Optin.POPUP_COOKIE_PREFIX : Optin.SLIDE_IN_COOKIE_PREFIX;\r\n\t\t\tcookie_key += this.optin_id;\r\n\r\n\t\t\tvar opt_cookie_never_see = Optin.cookie.get( cookie_key );\r\n \r\n this.add_mask = _.noop;\r\n\r\n\t\t\tif ( ! opt_cookie_never_see ) {\r\n\t\t\t\t// Check cookie prefix\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( Optin.SLIDE_IN_COOKIE_PREFIX + this.optin_id );\r\n\t\t\t}\r\n\t\t\tif ( ! opt_cookie_never_see ) {\r\n\t\t\t\t// Check hide_all\r\n\t\t\t\topt_cookie_never_see = Optin.cookie.get( Optin.SLIDE_IN_COOKIE_HIDE_ALL + this.optin_id );\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\tif ( 'keep_showing' === this.settings.after_close && opt_cookie_never_see ) {\r\n\t\t\t\topt_cookie_never_see = false;\r\n\t\t\t\t// Reset all cookies\r\n\t\t\t\tOptin.cookie.set( Optin.SLIDE_IN_COOKIE_PREFIX + this.optin_id, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( Optin.SLIDE_IN_COOKIE_HIDE_ALL + this.optin_id, this.optin_id, 0 );\r\n\t\t\t\tOptin.cookie.set( cookie_key, this.optin_id, 0 );\r\n\t\t\t}\r\n\r\n\t\t\treturn _.isTrue( this.settings.display ) && ! _.isTrue( opt_cookie_never_see );\r\n\t\t},\r\n\r\n\t\trender: function() {\r\n\t\t\tvar cLass = 'inc_opt_slidein inc_opt_slidein_' + this.settings.position + ' inc_optin wpoi-slide';\r\n\t\t\tthis.delay_time = this.settings.hide_after_unit === \"minutes\" ? parseInt( this.settings.hide_after_val, 10 ) * 60 * 1000 : parseInt( this.settings.hide_after_val, 10 ) * 1000;\r\n\r\n\t\t\tthis.$el.addClass( cLass );\r\n\r\n\t\t\tOptin.View.prototype.render.apply( this, arguments );\r\n\t\t},\r\n\r\n\t\tonShow: function() {\r\n if ( this.mask ) {\r\n this.mask.removeClass('wpoi-show');\r\n }\r\n\r\n\t\t\tif( _.isTrue( this.settings.hide_after ) ) {\r\n var me = this;\r\n\r\n var delay_id = _.delay(function(){\r\n\t\t\t\t\tif ( ! me.prevent_hide_after ) {\r\n\t\t\t\t\t\t// if hide after is not prevented, then hide it\r\n me.$el.removeClass(\"wpoi-show\");\r\n\t\t\t\t\t\tme.$el.trigger( 'hide' );\r\n\t\t\t\t\t}\r\n }, this.delay_time );\r\n }\r\n\t\t\tOptin.View.prototype.onShow.apply(this, arguments);\r\n\t\t},\r\n\r\n\t\tonHide: function() {\r\n\t\t\tvar should_remove = false;\r\n\r\n\t\t\tif ( 'hide_all' === this.settings.after_close ) {\r\n\t\t\t\tOptin.cookie.set( Optin.SLIDE_IN_COOKIE_HIDE_ALL, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n\t\t\t}\r\n\t\t\tif( \"no_show\" === this.settings.after_close ) {\r\n Optin.cookie.set( Optin.SLIDE_IN_COOKIE_PREFIX + this.optin_id, this.optin_id, 30 );\r\n\t\t\t\tshould_remove = true;\r\n }\r\n\r\n\t\t\tif ( should_remove ) {\r\n\t\t\t\t// Remove completely\r\n if ( this.mask ) {\r\n this.mask.remove();\r\n }\r\n\t\t\t\tthis.remove();\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\tclick: function() {\r\n\t\t\tthis.prevent_hide_after = true;\r\n\t\t}\r\n\t});\r\n}(jQuery, document, window));","(function($, doc, win){\r\n \"use strict\";\r\n \r\n var Optin = window.Optin || {};\r\n \r\n Optin.SS_log_view = Backbone.Model.extend({\r\n\t\turl: inc_opt.ajaxurl + '?action=hustle_social_sharing_viewed',\r\n\t\tdefaults: {\r\n\t\t\tpage_type: inc_opt.page_type,\r\n page_id: inc_opt.page_id,\r\n type: '',\r\n uri: encodeURI( window.location.href )\r\n\t\t},\r\n\t\tparse: function( res ) {\r\n\t\t\tif ( res.success ) {\r\n\t\t\t\tconsole.log('Log success!');\r\n\t\t\t} else {\r\n\t\t\t\tconsole.log('Log failed!');\r\n\t\t\t}\r\n\t\t}\r\n\t}),\r\n\tOptin.SS_log_conversion = Optin.SS_log_view.extend({ url: inc_opt.ajaxurl + '?action=hustle_social_sharing_converted' });\r\n \r\n Optin.SS_native_share_enpoints = {\r\n 'facebook': 'https://www.facebook.com/sharer/sharer.php?u=',\r\n 'twitter': 'https://twitter.com/intent/tweet?url=',\r\n 'google': 'https://plus.google.com/share?url=',\r\n 'pinterest': 'https://www.pinterest.com/pin/create/button/?url=',\r\n 'reddit': 'https://www.reddit.com/submit?url=',\r\n 'linkedin': 'https://www.linkedin.com/shareArticle?mini=true&url=',\r\n 'vkontakte': 'https://vk.com/share.php?url=',\r\n };\r\n \r\n Optin.Social_Sharing = Backbone.View.extend({\r\n template: Optin.template(\"hustle-social-tpl\"),\r\n events: {\r\n 'click a.native-social-share': 'click_social_native',\r\n 'click a.linked-social-share': 'click_social_linked'\r\n },\r\n initialize: function( opts ) {\r\n this.opts = opts;\r\n this.optin_id = opts.optin_id;\r\n this.services = opts.services;\r\n this.appearance = opts.appearance;\r\n this.floating_social = opts.floating_social;\r\n this.is_compat = ( typeof opts.is_compat !== 'undefined' ) \r\n ? true\r\n : false;\r\n \r\n if ( typeof opts.parent !== 'undefined' ) {\r\n this.parent = opts.parent;\r\n }\r\n \r\n this.model_json = _.extend(\r\n {\r\n id: this.optin_id,\r\n display_type: this.display_type\r\n },\r\n this.services,\r\n this.appearance,\r\n this.floating_social\r\n );\r\n \r\n this.render();\r\n },\r\n\r\n render: function(args){\r\n var parent_container = this.parent,\r\n location_align_x = this.model_json.location_align_x,\r\n location_align_y = this.model_json.location_align_y,\r\n current_tpl_settings = _.templateSettings;\r\n \r\n // if needs compatibility e.g. upfront which uses another _.templateSettings\r\n if ( this.is_compat ) {\r\n Optin.global_mixin();\r\n // force our _.templateSettings setup\r\n _.templateSettings = {\r\n evaluate: /<#([\\s\\S]+?)#>/g,\r\n interpolate: /\\{\\{\\{([\\s\\S]+?)\\}\\}\\}/g,\r\n escape: /\\{\\{([^\\}]+?)\\}\\}(?!\\})/g\r\n };\r\n }\r\n \r\n this.setElement( this.template( _.extend( {}, this.model_json ) ) );\r\n \r\n if ( this.module_display_type == 'floating_social' ) { \r\n if ( this.model_json.location_type == 'content' ) {\r\n parent_container = $('#content');\r\n } else if ( this.model_json.location_type == 'selector' ) {\r\n parent_container = $( this.model_json.location_target );\r\n } else {\r\n parent_container = $('body');\r\n }\r\n }\r\n \r\n if ( parent_container.length == 0 ) return;\r\n this.$el.appendTo(parent_container);\r\n \r\n var $widget_ss = $('.inc_social_sharing_widget_wrap .wph-social-sharing, .inc_social_sharing_shortcode_wrap .wph-social-sharing'),\r\n $main_container = ( this.module_display_type === 'floating_social' )\r\n ? $(parent_container).find('.wph-social-sharing-' + this.model_json.id ).not($widget_ss)\r\n : $(parent_container).find('.wph-social-sharing-' + this.model_json.id ),\r\n $sshare_container = $main_container.find('.wph-sshare--container');\r\n \r\n this._handle_icons_order();\r\n _.each( this.model_json.social_icons, $.proxy(function( data, key ) {\r\n \r\n var icon_template = ( this.model_json.icon_style == 'one' )\r\n ? Optin.template('wpoi-sshare-'+ key +'-one-svg-front')\r\n : Optin.template('wpoi-sshare-'+ key +'-svg-front');\r\n \r\n var link = ( this.model_json.service_type == 'native' ) \r\n ? '#'\r\n : this.sanitize_url(data.link);\r\n \r\n var target = ( this.model_json.service_type == 'native' ) \r\n ? ''\r\n : 'target=\"_blank\"';\r\n \r\n // append social icons\r\n var native_class = 'linked-social-share',\r\n icon_html = icon_template(); \r\n \r\n if ( this.model_json.service_type == 'native' ) {\r\n native_class = 'native-social-share';\r\n if ( _.isTrue( this.model_json.click_counter ) ) {\r\n icon_html += '<div class=\"wph-sshare_social_counter\"><span>'+ data.counter +'</span></div>';\r\n }\r\n }\r\n \r\n var social_sharing_html = '<a data-social=\"'+ key +'\" class=\"'+ native_class +'\" href=\"'+ link +'\" '+ target +' >'+ icon_html +'</a>';\r\n $sshare_container.append(social_sharing_html);\r\n \r\n }, this) );\r\n \r\n if ( this.module_display_type == 'floating_social' ) {\r\n $main_container.addClass('wph-social-sharing-float');\r\n if ( location_align_x == 'left' ) {\r\n $main_container.css( 'left', this.model_json.location_left + 'px' );\r\n } else {\r\n $main_container.css( 'right', this.model_json.location_right + 'px' );\r\n }\r\n if ( location_align_y == 'top' ) {\r\n $main_container.css( 'top', this.model_json.location_top + 'px' );\r\n } else {\r\n $main_container.css( 'bottom', this.model_json.location_bottom + 'px' );\r\n }\r\n }\r\n \r\n if ( this.model_json.service_type == 'native' ) {\r\n if ( this.module_display_type == 'floating_social' ) {\r\n if ( this.model_json.floating_inline_count == '1' ) {\r\n $sshare_container.addClass('wph-sshare--count_inline');\r\n } else {\r\n $sshare_container.addClass('wph-sshare--count_block');\r\n }\r\n } else {\r\n if ( this.model_json.widget_inline_count == '1' ) {\r\n $sshare_container.addClass('wph-sshare--count_inline');\r\n } else {\r\n $sshare_container.addClass('wph-sshare--count_block');\r\n }\r\n }\r\n }\r\n \r\n // after getting the template, revert back to previous _.templateSettings\r\n if ( this.is_compat ) {\r\n _.templateSettings = current_tpl_settings;\r\n }\r\n \r\n this.html = this.$el.html();\r\n this.log_view(this.module_display_type, this.opts);\r\n },\r\n _handle_icons_order: function() {\r\n var reordered = {},\r\n social_icons = this.model_json.social_icons,\r\n icons_order = this.model_json.icons_order,\r\n icons_order_arr = icons_order.split(',');\r\n \r\n if ( icons_order && icons_order_arr.length ) {\r\n _.each(icons_order_arr, function( data, key ) {\r\n if ( typeof social_icons[data] !== 'undefined' ) {\r\n reordered[data] = social_icons[data];\r\n social_icons = _.pick(social_icons, function(val, index){\r\n if ( data !== index ) {\r\n return index = val;\r\n }\r\n });\r\n }\r\n });\r\n \r\n // if still have some, append those\r\n if ( Object.keys(social_icons).length ) {\r\n reordered = _.extend( reordered, _.pick(social_icons, function(val, index) {\r\n if ( typeof val !== 'undefined' ) {\r\n return index = val;\r\n }\r\n }) );\r\n }\r\n \r\n this.model_json.social_icons = reordered;\r\n }\r\n },\r\n sanitize_url: function( url ) {\r\n\t\t\tif ( url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(url)) {\r\n\t\t\t\t\turl = \"http://\" + url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn url;\r\n\t\t},\r\n click_social_native: function(e) {\r\n e.preventDefault();\r\n var me = this,\r\n $this = this.$(e.target),\r\n $anchor = $this.closest('a.native-social-share'),\r\n social = $anchor.data('social');\r\n \r\n this._update_social_counter($anchor);\r\n // update other module with same social icon\r\n $('a[data-social=\"'+ social +'\"]').not($anchor).each( function(){\r\n me._update_social_counter($(this));\r\n } );\r\n \r\n // update social counter and log conversion\r\n this.log_conversion(this.module_display_type, this.opts, social, 'native');\r\n \r\n if ( social && typeof Optin.SS_native_share_enpoints[social] != 'undefined' ) {\r\n window.open(\r\n Optin.SS_native_share_enpoints[social]+ hustle_vars.current_url, \r\n 'MsgWindow', \r\n 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes'\r\n );\r\n }\r\n },\r\n click_social_linked: function(e) {\r\n var $this = this.$(e.target),\r\n $anchor = $this.closest('a.linked-social-share'),\r\n social = $anchor.data('social');\r\n \r\n // log conversion only if allowed\r\n if ( this.opts.tracking_types != null && _.isTrue( this.opts.tracking_types[this.module_display_type] ) ) {\r\n this.log_conversion(this.module_display_type, this.opts, social, 'linked');\r\n }\r\n },\r\n _update_social_counter: function($a){\r\n _.delay(function(){\r\n var $counter = $a.find('.wph-sshare_social_counter span');\r\n if ( $counter.length ) {\r\n var val = parseInt($counter.text()) + 1;\r\n $counter.text(val);\r\n }\r\n }, 5000);\r\n },\r\n log_view: function( type, ss ){\r\n if ( ss.tracking_types != null && _.isTrue( ss.tracking_types[type] ) ) {\r\n if ( typeof Optin.SS_log_view != 'undefined' ) {\r\n var logView = new Optin.SS_log_view();\r\n logView.set( 'type', type );\r\n logView.set( 'id', ss.optin_id );\r\n logView.save();\r\n }\r\n }\r\n // set cookies used for \"show less than\" display condition\r\n if( !window.hasOwnProperty( \"optin_vars\" ) ){ // don't set cookie in admin\r\n var show_count_key = Hustle.consts.SS_Module_Show_Count + type + \"-\" + ss.optin_id,\r\n current_show_count = Hustle.cookie.get( show_count_key );\r\n Hustle.cookie.set( show_count_key, current_show_count + 1, 90 );\r\n }\r\n },\r\n log_conversion: function( type, ss, source, service_type ) {\r\n var track_converstion = ( ss.tracking_types != null && _.isTrue( ss.tracking_types[type] ) )\r\n ? true\r\n : false;\r\n \r\n if ( typeof Optin.SS_log_conversion != 'undefined' ) {\r\n var logConversion = new Optin.SS_log_conversion();\r\n logConversion.set( 'type', type );\r\n logConversion.set( 'id', ss.optin_id );\r\n logConversion.set( 'source', source + '_icon' );\r\n logConversion.set( 'track', track_converstion );\r\n logConversion.set( 'service_type', service_type );\r\n logConversion.save();\r\n }\r\n }\r\n });\r\n \r\n Optin.SS_floating = Optin.Social_Sharing.extend({\r\n module_display_type: 'floating_social',\r\n display_type: 'column'\r\n });\r\n \r\n Optin.SS_widget = Optin.Social_Sharing.extend({\r\n module_display_type: 'widget',\r\n display_type: 'row'\r\n });\r\n \r\n Optin.SS_shortcode = Optin.Social_Sharing.extend({\r\n module_display_type: 'shortcode',\r\n display_type: 'row'\r\n });\r\n\r\n}(jQuery, document, window));","(function( $ ) {\r\n\t\"use strict\";\r\n\t/**\r\n * Functions for saving conversion data\r\n */\r\n\tOptin = Optin || {};\r\n\tOptin.handle_cc_shortcode_conversion = function(cc_id, type){\r\n var $win = $(window),\r\n $doc = $(document);\r\n\t\t\r\n\t\t$($doc).on(\"click\", \"a.wph-cc-shortcode--cta\", function(e){\r\n if ( typeof Optin.CC_log_conversion != 'undefined' ) {\r\n Optin.CC_log_conversion.set( 'id', cc_id );\r\n Optin.CC_log_conversion.set( 'type', type );\r\n Optin.CC_log_conversion.set( 'source', 'cta' );\r\n Optin.CC_log_conversion.save();\r\n }\r\n\t\t});\r\n };\r\n\t\r\n /**\r\n * Render inline optins ( widget )\r\n */\r\n Optin.inc_opt_render_widgets = function(use_compat){ \r\n\t\t// rendering widgets, shortcodes for Custom Content\r\n\t\t$(\".inc_cc_widget_wrap, .inc_cc_shortcode_wrap\").each(function () {\r\n var $this = $(this),\r\n id = $this.data(\"id\"),\r\n type = $this.is(\".inc_cc_widget_wrap\") ? \"widget\" : \"shortcode\";\r\n\r\n if( !id ) return;\r\n\t\t\t\r\n var cc = _.find(Hustle_Custom_Contents, function (opt) {\r\n return id == opt.content.optin_id;\r\n });\r\n \r\n if (!cc) return;\r\n \r\n var settings = $.parseJSON(cc.settings);\r\n if ( settings === null ) return;\r\n if ( !_.isTrue( settings[type].enabled ) ) return;\r\n\t\t\t\r\n\t\t\t$this.data(\"handle\", _.findKey(Hustle_Custom_Contents, cc));\r\n $this.data(\"type\", type);\r\n\t\t\t\r\n\t\t\t// sanitize cta_url \r\n\t\t\tif ( cc.design.cta_url ) {\r\n\t\t\t\tif (!/^(f|ht)tps?:\\/\\//i.test(cc.design.cta_url)) {\r\n\t\t\t\t\tcc.design.cta_url = \"http://\" + cc.design.cta_url;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcc.type = type;\r\n\t\t\tvar html = Optin.render_cc_shortcode( cc, use_compat );\r\n\t\t\t// Optin.handle_cc_scroll( $this, type, id );\r\n\t\t\t$this.html(html);\r\n \r\n if ( cc.tracking_types !== null && _.isTrue( cc.tracking_types[type] ) ) {\r\n _.delay(function(){\r\n $(document).trigger(\"wpoi:cc_shortcode_or_widget_viewed\", [type, id]);\r\n }, _.random(0, 300));\r\n \r\n Optin.handle_cc_shortcode_conversion(id, type);\r\n }\r\n });\r\n\t\t\r\n\t\t// rendering widgets, shortcodes for Opt-in\r\n $(\".inc_opt_widget_wrap, .inc_opt_shortcode_wrap\").each(function () {\r\n var $this = $(this),\r\n id = $this.data(\"id\"),\r\n type = $this.is(\".inc_opt_widget_wrap\") ? \"widget\" : \"shortcode\";\r\n \r\n if( !id ) return;\r\n\t\t\t\r\n var optin = _.find(Optins, function (opt) {\r\n return id == opt.data.optin_id;\r\n });\r\n\r\n if (!optin) return;\r\n\r\n $this.data(\"handle\", _.findKey(Optins, optin));\r\n $this.data(\"type\", type);\r\n \r\n var html = Optin.render_optin( optin, use_compat );\r\n\r\n // Optin.handle_scroll( $this, type, optin );\r\n\r\n\r\n $this.html(html);\r\n\r\n // add provider args\r\n $this.find(\".wpoi-provider-args\").html( Optin.render_provider_args( optin ) );\r\n\r\n _.delay(function(){\r\n $(document).trigger(\"wpoi:display\", [type, $this, optin ]);\r\n }, _.random(0, 300));\r\n\r\n });\r\n \r\n // rendering social sharing modules widget and shortcode\r\n $(\".inc_social_sharing_widget_wrap, .inc_social_sharing_shortcode_wrap\").each( function() {\r\n var $this = $(this),\r\n id = $this.data(\"id\"),\r\n type = $this.is(\".inc_social_sharing_widget_wrap\") ? \"widget\" : \"shortcode\";\r\n \r\n if( !id ) return;\r\n\t\t\t\r\n var ss = _.find(Hustle_SS_Modules, function (opt) {\r\n return id == opt.optin_id;\r\n });\r\n \r\n if (!ss) return;\r\n \r\n var settings = $.parseJSON(ss.settings);\r\n if ( settings === null ) return;\r\n if ( !_.isTrue( settings[type].enabled ) ) return;\r\n \r\n ss.parent = $this;\r\n if ( typeof use_compat !== 'undefined' && use_compat ) {\r\n ss.is_compat = true;\r\n }\r\n \r\n $this.html('');\r\n if ( type == 'widget' ) {\r\n new Optin.SS_widget(ss);\r\n } else {\r\n new Optin.SS_shortcode(ss);\r\n }\r\n });\r\n\t\t\r\n };\r\n\r\n Optin.inc_opt_render_widgets(false);\r\n \r\n Hustle.Events.on(\"upfront:editor:widget:render\", function(widget) {\r\n Optin.inc_opt_render_widgets(true);\r\n });\r\n Hustle.Events.on(\"upfront:editor:shortcode:render\", function(shortcode) {\r\n Optin.inc_opt_render_widgets(true);\r\n });\r\n\r\n}(jQuery));","(function( $, doc, win ) {\r\n \"use strict\";\r\n if( inc_opt.is_upfront ) return;\r\n\r\n\t// Listen to exit intent\r\n\t$(doc).on( 'mouseleave', $.proxy( Hustle.Events, 'trigger', 'exit_intended' ) );\r\n\r\n\t// Listen to resize event\r\n\t$(window).on( 'resize', $.proxy( Hustle.Events, 'trigger', 'hustle_resize' ) );\r\n\r\n\t// Opt-In\r\n\t$.each( _.keys(Optins), function(i, k){\r\n\t\tvar opt = Optins[k],\r\n\t\t\tsettings = opt.settings,\r\n\t\t\toptin_id = opt.data.optin_id,\r\n\t\t\targs = {key: k};\r\n\r\n\t\t// Check for enabled popup\r\n\t\tif ( settings.popup && settings.popup.enabled\r\n\t\t\t&& ! _.isTrue( Optin.cookie.get( Optin.POPUP_COOKIE_PREFIX + optin_id ) ) ) {\r\n\t\t\tnew Optin.PopUp(args);\r\n\t\t}\r\n\r\n\t\t// Check for enabled slide_in\r\n\t\tif ( settings.slide_in && settings.slide_in.enabled\r\n\t\t\t&& ! _.isTrue( Optin.cookie.get( Optin.SLIDE_IN_COOKIE_HIDE_ALL ) ) ) {\r\n\t\t\tnew Optin.SlideIn(args);\r\n\t\t}\r\n\r\n\t\t// Check for enabled after_content\r\n\t\tif ( settings.after_content && settings.after_content.enabled ) {\r\n\t\t\tvar after_content = $('[data-id=\"' + optin_id + '\"]').filter(function() {\r\n\t\t\t\treturn $(this).is('.inc_opt_after_content_wrap');\r\n\t\t\t});\r\n\r\n\t\t\tif ( after_content.length ) {\r\n\t\t\t\tafter_content.each(Optin.AfterContent);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n\r\n\t// CUSTOM CONTENT\r\n // console.log(Hustle_Custom_Contents);\r\n\t$.each(Hustle_Custom_Contents, function(uniq_id, cc) {\r\n\t\tcc.id = uniq_id;\r\n\r\n\t\tif ( cc.should_display ) {\r\n\t\t\t// Check for enabled popup\r\n\t\t\tif ( _.isTrue(cc.should_display.popup) && _.isTrue(cc.popup.enabled) ) {\r\n\t\t\t\tcc.type = 'popup';\r\n\t\t\t\tnew Optin.CCPopUp(cc);\r\n\t\t\t}\r\n\r\n\t\t\t// Check for enabled slide_in\r\n\t\t\tif ( _.isTrue(cc.should_display.slide_in) && _.isTrue(cc.slide_in.enabled) ) {\r\n\t\t\t\tcc.type = 'slide_in';\r\n\t\t\t\tnew Optin.CCSlideIn(cc);\r\n\t\t\t}\r\n\r\n\t\t\tif ( cc.after_content && _.isTrue(cc.should_display.after_content) && _.isTrue(cc.after_content.enabled) ){\r\n\t\t\t\tcc.type = 'after_content';\r\n\t\t\t\tcc.uniq_id = uniq_id;\r\n\t\t\t\tnew Optin.CCAfterContent(cc);\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n \r\n \r\n // SOCIAL SHARING\r\n _.each(Hustle_SS_Modules, function(ss, key) {\r\n if ( _.isTrue(ss.floating_social.enabled) && _.isTrue(ss.is_floating_social_allowed) ) {\r\n new Optin.SS_floating(ss);\r\n }\r\n });\r\n \r\n}(jQuery, document, window));"]}
changelog.txt CHANGED
@@ -4,6 +4,11 @@ Author:Victor Ivanov (Incsub), Robert Setiadi (Incsub), Diobeth Ray Villasencio
4
  Change Log:
5
  ----------------------------------------------------------------------
6
 
 
 
 
 
 
7
  5.1.3.1
8
  ----------------------------------------------------------------------
9
  - Improved API Connection Security for Integrations.
4
  Change Log:
5
  ----------------------------------------------------------------------
6
 
7
+ 5.1.3.2
8
+ ----------------------------------------------------------------------
9
+ - Improved compatibility with PHP 5.2 and 5.3.
10
+ - Improved the display for MailChimp Groups on frontend.
11
+
12
  5.1.3.1
13
  ----------------------------------------------------------------------
14
  - Improved API Connection Security for Integrations.
inc/providers/opt-in-aweber.php CHANGED
@@ -47,7 +47,7 @@ class Opt_In_Aweber extends Opt_In_Provider_Abstract implements Opt_In_Provide
47
  * @param $default
48
  * @return mixed
49
  */
50
- function get_option($option_key, $default = '' ){
51
  return get_site_option( self::ID . "_" . $option_key, $default );
52
  }
53
 
47
  * @param $default
48
  * @return mixed
49
  */
50
+ function get_option($option_key, $default ){
51
  return get_site_option( self::ID . "_" . $option_key, $default );
52
  }
53
 
inc/providers/opt-in-constantcontact.php CHANGED
@@ -41,7 +41,7 @@ class Opt_In_ConstantContact extends Opt_In_Provider_Abstract implements Opt_I
41
  * @param $default
42
  * @return mixed
43
  */
44
- function get_option($option_key, $default = '' )
45
  {
46
  return get_site_option(self::ID . "_" . $option_key, $default);
47
  }
41
  * @param $default
42
  * @return mixed
43
  */
44
+ function get_option($option_key, $default )
45
  {
46
  return get_site_option(self::ID . "_" . $option_key, $default);
47
  }
inc/providers/opt-in-hubspot.php CHANGED
@@ -49,7 +49,7 @@ class Opt_In_HubSpot extends Opt_In_Provider_Abstract implements Opt_In_Provid
49
  * @param $default
50
  * @return mixed
51
  */
52
- function get_option($option_key, $default = '' ) {
53
  return get_site_option( self::ID . "_" . $option_key, $default );
54
  }
55
 
49
  * @param $default
50
  * @return mixed
51
  */
52
+ function get_option($option_key, $default ) {
53
  return get_site_option( self::ID . "_" . $option_key, $default );
54
  }
55
 
inc/providers/opt-in-sendinblue.php CHANGED
@@ -48,7 +48,7 @@ if( !class_exists("Opt_In_SendinBlue") ) :
48
  * @param $default
49
  * @return mixed
50
  */
51
- function get_option( $option_key, $default = '' ) {
52
  return get_site_option( self::ID . "_" . $option_key, $default );
53
  }
54
 
48
  * @param $default
49
  * @return mixed
50
  */
51
+ function get_option( $option_key, $default ) {
52
  return get_site_option( self::ID . "_" . $option_key, $default );
53
  }
54
 
popover.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Hustle
4
  Plugin URI: https://premium.wpmudev.org/project/hustle/
5
  Description: Start collecting email addresses and quickly grow your mailing list with big bold pop-ups, slide-ins, widgets, or in post opt-in forms.
6
- Version: 5.1.3.1
7
  Author: WPMU DEV
8
  Author URI: https://premium.wpmudev.org
9
 
@@ -123,12 +123,6 @@ class Opt_In extends Opt_In_Static{
123
  "name" => "MailChimp",
124
  "file_name" => "opt-in-mailchimp.php",
125
  "class_name" => "Opt_In_Mailchimp"
126
- ),
127
- array(
128
- "id" => "constantcontact",
129
- "name" => "ConstantContact",
130
- "file_name" => "opt-in-constantcontact-loader.php",
131
- "class_name" => "Opt_In_ConstantContact"
132
  ),
133
  array(
134
  'id' => 'convertkit',
@@ -142,12 +136,6 @@ class Opt_In extends Opt_In_Static{
142
  "file_name" => "opt-in-get-response.php",
143
  "class_name" => "Opt_In_Get_Response"
144
  ),
145
- array(
146
- "id" => "hubspot",
147
- "name" => "Hubspot",
148
- "file_name" => "opt-in-hubspot.php",
149
- "class_name" => "Opt_In_HubSpot",
150
- ),
151
  array(
152
  "id" => "sendy",
153
  "name" => "Sendy",
@@ -179,6 +167,14 @@ class Opt_In extends Opt_In_Static{
179
  "class_name" => "Opt_In_SendinBlue",
180
  ),
181
  );
 
 
 
 
 
 
 
 
182
 
183
  /**
184
  * @var Opt_In_E_Newsletter $_e_newsletter
@@ -344,6 +340,11 @@ class Opt_In extends Opt_In_Static{
344
  private function _register_providers(){
345
 
346
  foreach ( $this->_providers as $provider) {
 
 
 
 
 
347
  $path = dirname(__FILE__) . "/inc/providers/" . $provider['file_name'];
348
  if ( is_file($path) && is_readable( $path ) ) {
349
  require_once $path;
@@ -643,7 +644,11 @@ class Opt_In extends Opt_In_Static{
643
  * @return Opt_In_Provider_Abstract
644
  */
645
  public static function provider_instance( $provider_obj ){
646
- return call_user_func( array( $provider_obj, "instance" ) );
 
 
 
 
647
  }
648
 
649
 
3
  Plugin Name: Hustle
4
  Plugin URI: https://premium.wpmudev.org/project/hustle/
5
  Description: Start collecting email addresses and quickly grow your mailing list with big bold pop-ups, slide-ins, widgets, or in post opt-in forms.
6
+ Version: 5.1.3.2
7
  Author: WPMU DEV
8
  Author URI: https://premium.wpmudev.org
9
 
123
  "name" => "MailChimp",
124
  "file_name" => "opt-in-mailchimp.php",
125
  "class_name" => "Opt_In_Mailchimp"
 
 
 
 
 
 
126
  ),
127
  array(
128
  'id' => 'convertkit',
136
  "file_name" => "opt-in-get-response.php",
137
  "class_name" => "Opt_In_Get_Response"
138
  ),
 
 
 
 
 
 
139
  array(
140
  "id" => "sendy",
141
  "name" => "Sendy",
167
  "class_name" => "Opt_In_SendinBlue",
168
  ),
169
  );
170
+
171
+ /**
172
+ * @var $_skip_providers array
173
+ * these providers will be skipped on PHP version lower than 5.3
174
+ */
175
+ protected $_skip_providers = array(
176
+ 'mautic'
177
+ );
178
 
179
  /**
180
  * @var Opt_In_E_Newsletter $_e_newsletter
340
  private function _register_providers(){
341
 
342
  foreach ( $this->_providers as $provider) {
343
+
344
+ if ( ( version_compare( PHP_VERSION, '5.3', '<' ) && in_array( $provider['id'], $this->_skip_providers ) ) ) {
345
+ continue;
346
+ }
347
+
348
  $path = dirname(__FILE__) . "/inc/providers/" . $provider['file_name'];
349
  if ( is_file($path) && is_readable( $path ) ) {
350
  require_once $path;
644
  * @return Opt_In_Provider_Abstract
645
  */
646
  public static function provider_instance( $provider_obj ){
647
+ if ( method_exists( $provider_obj, "instance" ) ) {
648
+ return call_user_func( array( $provider_obj, "instance" ) );
649
+ } else {
650
+ return false;
651
+ }
652
  }
653
 
654
 
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: WPMUDEV
3
  Tags: marketing, floating social, pop-up, slide-in, opt-in, email, advertise, signup, mailing list
4
  Requires at least: 3.1
5
- Tested up to: 4.7
6
  Stable tag: trunk
7
 
8
  The complete marketing plugin for email opt-ins, pop-up advertising, social sharing, and building your user base.
@@ -104,6 +104,10 @@ No! Hustle gives you all the same settings and options as Hustle Pro. The only d
104
 
105
  == Changelog ==
106
 
 
 
 
 
107
  = 5.1.3.1 =
108
  * Improved API Connection Security for Integrations.
109
 
2
  Contributors: WPMUDEV
3
  Tags: marketing, floating social, pop-up, slide-in, opt-in, email, advertise, signup, mailing list
4
  Requires at least: 3.1
5
+ Tested up to: 4.8.1
6
  Stable tag: trunk
7
 
8
  The complete marketing plugin for email opt-ins, pop-up advertising, social sharing, and building your user base.
104
 
105
  == Changelog ==
106
 
107
+ = 5.1.3.2 =
108
+ * Improved compatibility with PHP 5.2 and 5.3.
109
+ * Improved the display for MailChimp Groups on frontend.
110
+
111
  = 5.1.3.1 =
112
  * Improved API Connection Security for Integrations.
113
 
views/general/providers/mailchimp.php CHANGED
@@ -74,7 +74,7 @@
74
 
75
  </div>
76
 
77
- <div class="wpoi-button wpoi-button-big">
78
 
79
  <button type="submit" class="wpoi-subscribe-send">{{cta_button}}</button>
80
 
74
 
75
  </div>
76
 
77
+ <div class="wpoi-button wpoi-button-big {{ ( typeof group === 'undefined' ) ? 'wpoi-button-relocate' : '' }}">
78
 
79
  <button type="submit" class="wpoi-subscribe-send">{{cta_button}}</button>
80