/*! * BizPanda Lockers - v2.6.0, 2020-06-10 * for jQuery: http://onepress-media.com/plugin/social-locker-for-jquery/get * for Wordpress: http://onepress-media.com/plugin/social-locker-for-wordpress/get * * Copyright 2020, OnePress, http://byonepress.com * Help Desk: http://support.onepress-media.com/ */ /*! * Localization * Copyright 2020, OnePress, http://byonepress.com * * @since 1.0.0 * @pacakge core */ (function ($) { /** * Text resources. */ if ( !$.pandalocker ) $.pandalocker = {}; if (!$.pandalocker.lang) $.pandalocker.lang = {}; if (!$.pandalocker.lang.defaults ) $.pandalocker.lang.defaults = {}; $.pandalocker.lang.defaults = { // - translatable text // the Screen "Confirm Your Like" confirm_like_screen_header: 'Almost Ready', confirm_like_screen_message: 'Click the button below to like and unlock.', confirm_like_screen_button: 'Confirm Like', // the Screen "Please Confirm Your Email" confirm_screen_title: 'Please Confirm Your Email', confirm_screen_instruction: 'We have sent a confirmation email to {email}. Please click on the confirmation link in the email to reveal the content.', confirm_screen_note1: 'The content will be unlocked automatically within 10 seconds after confirmation.', confirm_screen_note2: 'Note delivering the email may take several minutes.', confirm_screen_cancel: '(cancel)', confirm_screen_open: 'Open my inbox on {service}', // the Screen "One Step To Complete" onestep_screen_title: 'One Step To Complete', onestep_screen_instruction: 'Please enter your email below to continue.', onestep_screen_button: 'Complete', // the sign-in buttons signin_long: 'Sign in via {name}', signin_short: 'via {name}', signin_facebook_name: 'Facebook', signin_twitter_name: 'Twitter', signin_google_name: 'Google', signin_linkedin_name: 'LinkedIn', // miscellaneous misc_data_processing: 'Processing data, please wait...', misc_or_enter_email: 'or enter your email manually to sign in', misc_enter_your_name: 'enter your name', misc_enter_your_email: 'enter your email address', misc_your_agree_with: 'By clicking on the button(s), you agree with {links}', misc_terms_of_use: 'Terms of Use', misc_privacy_policy: 'Privacy Policy', misc_agreement_checkbox: 'I consent to processing of my data according to {links}', misc_agreement_checkbox_alt: 'I agree with {links}', misc_or_wait: 'or wait {timer}s', misc_close: 'Close', misc_or: 'OR', // errors & notices errors_empty_email: "Please enter your email address.", errors_incorrect_email: "It seems you entered an incorrect email address. Please check it.", errors_empty_name: "Please enter your name.", errors_empty_field: "Please fill this field.", errors_empty_checkbox: "Please mark this checkbox to continue.", errors_invalid_url: "Please enter a valid URL.", errors_invalid_integer: "Please enter an integer number.", errors_greater_number: "Please enter a number greater than or equal to {0}.", errors_less_number: "Please enter a number less than or equal to {0}.", errors_invalid_value: "Invalid value. Please check the value you entered.", errors_invalid_date: "Please enter a valid date.", errors_invalid_month: "Please enter a valid month number (between 01 and 12).", errors_invalid_day: "Please enter a valid day number (between 01 and 31).", errors_subscription_canceled: "You have canceled your subscription.", errors_not_signed_in: "Sorry, but you have not signed in. Please try again.", res_errors_not_granted: "Sorry, but you have not granted all the required permissions ({permissions}). Please try again.", errors_no_consent: "Please give us your consent in order to continue.", // - default text & internal errors // common resources error: 'error', noSpam: 'Your email address is 100% safe from spam!', errors: { ajaxError: 'Unexpected ajax error. Please check the console log to get more details.', unableToLoadSDK: 'Unable to load SDK script for "{0}" due to the error "{1}". Please make sure that nothing blocks loading of social scripts in your browser. Some browser extentions (Avast, PrivDog, AdBlock etc.) or usage of private tabs in FireFox may cause this issue. Turn them off and try again.', unableToCreateControl: 'Unable to create ({0}). Please make sure that nothing blocks loading of social scripts in your browser. Some browser extentions (Avast, PrivDog, AdBlock etc.) can cause this issue. Turn them off and try again.', emptyFBAppIdError: 'Please set your Facebook App ID.', emptyTwitterFollowUrlError: 'Please set an URL of your Twitter profile.', tweetNotFound: 'Please make sure that you have posted the tweet. Unfortunately we have not manage to find the tweet in your account.', followingNotFound: 'Please make sure that you have followed us. Unfortunately we have not managed to find you in the list of followers.', emptyYoutubeChannelId: 'Please set your Youtube Channel ID.', actionsProxyEmpty: 'The action proxy URL is empty. The proxy is used to call action API.', socialProxyEmpty: 'The social proxy URL is empty. This proxy is used to call social API.' }, // locker type-dependent resources scopes: { // when the Connect Buttons is the primary group signinLocker: { defaultHeader: "Sing In To Unlock This Content", defaultMessage: "Please sign in. Just click one of the buttons below to get instant access.", btnSubscribe: "sign in to unlock", viaSignInLong: "{long}", viaSignInShort: "{short}" }, // when the Subscription is the primary group emailLocker: { defaultHeader: "This Content Is Only For Subscribers", defaultMessage: "Please subscribe to unlock this content. Just enter your email.", btnSubscribe: "subscribe to unlock", viaSignInLong: "{short}", viaSignInShort: "{name}" }, // when the Social Buttons is the primary group socialLocker: { defaultHeader: "This content is locked", defaultMessage: "Please support us, use one of the buttons below to unlock the content.", }, }, // text resources for the group 'connect-buttons' connectButtons: { defaultMessage: "subscribe via your social profile by one click", facebook: {}, google: {}, linkedin: {}, defaultSeparator: "or", errorYouTubeChannelMissed: "Please set an ID of your Youtube channel to subscribe.", errorLinkedInCompanyNotFound: "The LinkedIn company '{0}' not found.", errorLinkedInCompanyMissed: "Please specify the LinkedIn company ID or name to follow.", errorTwitterUserMissed: "Please specify the Twitter user name to follow.", errorTwitterMessageMissed: "Please specify the message to tweet." }, // text resources for the group 'subscription' subscription: { defaultText: 'Cannot sign in via social networks? Enter your email manually.', defaultButtonText: 'done, sign in to unlock' }, // text resources for the group 'social-buttons' socialButtons: { // default labels for the buttons covers facebookLike: 'like us', facebookShare: 'share', twitterTweet: 'tweet', twitterFollow: 'follow us', youtubeSubscribe: 'subscribe', linkedinShare: 'share' } }; $.pandalocker.lang = $.pandalocker.lang.defaults; if ( window.__pandalockers && window.__pandalockers.lang ) { $.pandalocker.lang = $.extend( $.pandalocker.lang, window.__pandalockers.lang ); window.__pandalockers.lang = null; } })(jQuery);; /*! * Themes Presets * Copyright 2020, OnePress, http://byonepress.com * * @since 1.0.0 * @pacakge core */ (function ($) { if (!$.pandalocker.themes) $.pandalocker.themes = {}; // Theme: Great Attractor $.pandalocker.themes['great-attractor'] = { socialButtons: { display: 'covers', unsupported: { display: ['covers-native'] } } }; // Theme: Friendly Giant $.pandalocker.themes['friendly-giant'] = { socialButtons: { display: 'covers', unsupported: { display: ['covers-native'] } }, theme: { fonts: [{ name: 'Open Sans', styles: ['400', '700'] }] } }; // Theme: Dark Force $.pandalocker.themes['dark-force'] = { socialButtons: { display: 'covers', unsupported: { display: ['covers-native'] } }, theme: { fonts: [{ name: 'Montserrat', styles: ['400', '700'] }] } }; // Theme: Starter $.pandalocker.themes['starter'] = { socialButtons: { counter: true, display: 'covers-native' } }; // Theme: Secrets $.pandalocker.themes['secrets'] = { socialButtons: { counter: true, display: 'covers-native' } }; // Theme: Dandyish $.pandalocker.themes['dandyish'] = { socialButtons: { counter: false, display: 'native' } }; // Theme: Glass $.pandalocker.themes['glass'] = { socialButtons: { counter: true, display: 'native' } }; // Theme: Flat $.pandalocker.themes['flat'] = { socialButtons: { counter: true, display: 'covers' } }; })(jQuery);; !function(o){"use strict";o.pandalocker||(o.pandalocker={}),o.pandalocker.data||(o.pandalocker.data={}),o.pandalocker.entity||(o.pandalocker.entity={}),o.pandalocker.groups||(o.pandalocker.groups={}),o.pandalocker.controls||(o.pandalocker.controls={}),o.pandalocker.tools||(o.pandalocker.tools={}),o.pandalocker.storages||(o.pandalocker.storages={}),o.pandalocker.services||(o.pandalocker.services={}),o.pandalocker.extras||(o.pandalocker.extras={}),o.pandalocker.controls["social-buttons"]||(o.pandalocker.controls["social-buttons"]={}),o.pandalocker.controls["connect-buttons"]||(o.pandalocker.controls["connect-buttons"]={}),o.pandalocker.controls.subscription||(o.pandalocker.controls.subscription={})}(jQuery);; !function(s){"use strict";s.pandalocker||(s.pandalocker={}),s.pandalocker.filters=s.pandalocker.filters||{_items:{},_priorities:{},run:function(i,t){var r=t&&0
"+e+"
"):"object"==typeof e?e.clone():e:e},s.pandalocker.tools.diffArrays=function(e,r){return s.grep(e,function(e){return-1==s.inArray(e,r)})},s.pandalocker.tools.unionArrays=function(e,r){return s.grep(e,function(e){return-1!==s.inArray(e,r)})},s.pandalocker.tools.cookie=s.pandalocker.tools.cookie||function(e,r,o){var n,t;if(1<<5)-r+e.charCodeAt(o);r&=r}return r=(r=r.toString(16)).replace("-","0")},s.pandalocker.tools.has3d=s.pandalocker.tools.has3d||function(){var e,r=document.createElement("p"),o={WebkitTransform:"-webkit-transform",OTransform:"-o-transform",MSTransform:"-ms-transform",MozTransform:"-moz-transform",Transform:"transform"};for(var n in r.className="onp-sl-always-visible",document.body.insertBefore(r,null),o)void 0!==r.style[n]&&(r.style[n]="translate3d(1px,1px,1px)",e=window.getComputedStyle(r).getPropertyValue(o[n]));return document.body.removeChild(r),void 0!==e&&0
'),o.element=s(".onp-sl-body-inner-wrap")),o.options=s.extend(!0,o.options,r),o._init&&o._init(),o._create&&o._create(),s.data(e,"plugin_"+t,o)},u=function(e,r){return e[r]&&e[r]()};s.fn[t]=function(){var r=arguments,o=arguments.length,n=this;return this.each(function(){var e=s.data(this,"plugin_"+t);e||1!=o||"object"!=typeof r[0]||null===r[0]?e&&1==o&&(n=u(e,r[0]),"dispose"===r[0]&&s.data(this,"plugin_"+t,null)):a(this,!!o&&r[0])}),n}},s.pandalocker.detectBrowser=s.pandalocker.detectBrowser||function(){var e=(jQuery.uaMatch||function(e){e=e.toLowerCase();var r=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:r[1]||"",version:r[2]||"0"}})(navigator.userAgent);s.pandalocker.browser={},e.browser&&(s.pandalocker.browser[e.browser]=!0,s.pandalocker.browser.version=e.version);var r,o,n=(o=-1,"Microsoft Internet Explorer"==navigator.appName?(r=navigator.userAgent,null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(r)&&(o=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(r=navigator.userAgent,null!=new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(r)&&(o=parseFloat(RegExp.$1))),o);0<=n)return null;do{o=e.substring(n,r+1);try{var t=s.parseJSON(o);if(t)return t}catch(e){}r=e.substr(0,r).lastIndexOf("}")}while(n<0)throw"I can animate only positive numbers";var i=new m.Deferred;return o&&o.stop(!0,!0),o=new m.Animation(s,{intensity:t},m.extend(s.animationOptions,e)).progress(m.proxy(this.blur,this)).done(i.resolve),i.promise()},this.unblur=function(){return this.$elm.css(d,"none"),this.$elm[0].style[d]="none",f=!1,this},this.toggleblur=function(){return f?this.unblur():this.blur(),this},this.destroy=function(){for(var t in a&&m("filter#blur-effect-id-"+n).parent().remove(),this.unblur(),this)delete this[t];return this},this.init()}var v={filterId:0},i=" -webkit- -moz- -o- -ms- ".split(" ");m.fn.Vague=function(t){return new e(this,t)},m.pandalocker.tools.supportBlurring=function(){return!(m.pandalocker.browser.msie&&9<12)&&!(!p()&&!b())}}(window,document,jQuery);; !function(s){"use strict";s.pandalocker.storages.defaultStateStorage=function(e){var t=e.options;this.demo=t.demo,this.useCookies=t.locker.useCookies,this.expires=t.locker.expires,this.isUnlocked=function(e){return!this.demo&&!!this._getValue(e)},this.isLocked=function(e){return!this.isUnlocked(e)},this.requestState=function(e,t){if(this.demo)return t("locked");t(this.isUnlocked(e)?"unlocked":"locked")},this.setState=function(e,t){if(this.demo)return!0;try{return"unlocked"===t?this._setValue(e):this._removeValue(e)}catch(e){console&&console.log(e)}},this._setValue=function(e){if(!e)return!1;var t,o=!0,i=1e4;this.expires&&(t=(new Date).getTime()+1e3*this.expires,i=Math.ceil(this.expires/86400),o=JSON.stringify({expires:t}));var r=!0;if(localStorage&&!this.useCookies){r=!1;try{localStorage.setItem(e,o)}catch(e){console&&console.log(e),r=!0}}return r&&s.pandalocker.tools.cookie(e,o,{expires:i,path:"/"}),!0},this._getValue=function(e){if(!e)return!1;var t=localStorage&&!this.useCookies&&localStorage.getItem(e);if(t=t||s.pandalocker.tools.cookie(e))try{var o=JSON.parse(t);if(o&&o.expires){var i=new Date;return o.expires>i}return!0}catch(e){return!0}},this._removeValue=function(e){if(!e)return!1;localStorage&&localStorage.removeItem(e),s.pandalocker.tools.cookie(e,null)}}}(jQuery);; !function(s){"use strict";s.pandalocker.services.visibility=function(){this.canLock=function(e){if(!e)return!0;for(var t in e)if(e.hasOwnProperty(t)&&"object"==typeof e[t]){var r=e[t];if(!this.isVisible(r))return!1}return!0},this.isVisible=function(e){if(!e.conditions)return!0;var t=this.matchFilter(e),r=e.type||"showif";return"showif"===r?t:"hideif"===r?!t:void 0},this.matchFilter=function(e){var t,r=!0;for(var a in e.conditions){e.conditions.hasOwnProperty(a)&&"object"==typeof e.conditions[a]&&(t=e.conditions[a],this.matchScope(t)||(r=!1))}return r},this.matchScope=function(e){var t,r=!1;if(!e.conditions)return!0;for(var a in e.conditions){e.conditions.hasOwnProperty(a)&&"object"==typeof e.conditions[a]&&(t=e.conditions[a],this.matchCondition(t)&&(r=!0))}return r},this.matchCondition=function(e){var t=e.param,r=e.operator,a=e.value,i=e.type||"text",n=this.getValueProvider(t);if(!n)return console&&console.log('[visibility]: the value provider "%s" not found.'.replace("%s",t)),!0;var s=n.getValue(e);return null===s?(console&&console.log('[visibility]: the value returned from the provider "%s" equals to null.'.replace("%s",t)),!0):n.compare?n.compare(r,a,s,i):this.compare(r,a,s,i)},this.getValueProvider=function(e){var t=s.pandalocker.services.visibilityProviders[e];return t=s.pandalocker.filters.run("visibility-value-provider",[t,e])},this.compare=function(e,t,r,a){var i="date"===a&&("equals"===e||"notequal"===e);switch(t=this.castValue(t,a,i?"range":null),r=this.castValue(r,a),e){case"equals":return s.isArray(r)?-1t.start&&rt.start&&r=t.start&&r<=t.end}return!0},this.castValue=function(e,t,r){if(null===e)return e;if(s.isArray(e)){for(var a=0;a<4||console&&console.log&&(console.log("Invalide ajax response:"),console.log(e.responseText),a.reject(e))}var a=s.pandalocker.deferred(),n=s.ajax({type:"POST",dataType:"text",url:this.callpoint,data:s.pandalocker.tools.appendPrefix(this.paramPrefix,o),error:function(e){r(n)},success:function(e){var i=s.pandalocker.tools.extractJSON(e);if(!i)return r(n);a.resolve(i)}});return a.promise()},this.subscribe=function(i,e){var t=this,o=new s.Deferred;return this._call("subscribe",i,e).done(function(e){e&&e.error?o.reject(e):(!e||"subscribed"!==e.status)&&t.serviceOptions.doubleOptin&&t.serviceOptions.confirm?(t._isCanceled=!1,t._setWaitingStatus(i),o.notify("waiting-confirmation"),t.waitSubscription(i).done(function(e){o.resolve(e)}).fail(function(e){o.reject(e)}).always(function(){t._removeWaitingStatus()})):o.resolve(e)}).fail(function(e){e&&e.readyState<4||o.reject({error:s.pandalocker.lang.errors.ajaxError})}),o.promise()},this.waitSubscription=function(i){var t=this,o=new s.Deferred;if(this._waitingConfirmationResult=o,!t._isCanceled)return this.check(i).done(function(e){t._isCanceled?t._isCanceled=!1:(console&&console.log&&console.log("waiting subscription..."),console&&console.log&&console.log(e),e&&"subscribed"===e.status?o.resolve(e):setTimeout(function(){var e=t.waitSubscription(i);e&&(e.done(function(e){o.resolve(e)}),e.fail(function(e){o.reject(e)}))},t.checkingInterval))}).fail(function(e){t._isCanceled?t._isCanceled=!1:o.reject(e)}),o.promise();t._isCanceled=!1},this.check=function(e){var i=new s.Deferred;return this._call("check",e).done(function(e){e.error?i.reject(e):i.resolve(e)}).fail(function(e){e&&e.readyState<4||i.reject({error:s.pandalocker.lang.errors.ajaxError})}),i.promise()},this.cancel=function(){this._isCanceled=!0,this._removeWaitingStatus(),this._waitingConfirmationResult&&(this._waitingConfirmationResult.reject({error:s.pandalocker.lang.errors_subscription_canceled}),this._waitingConfirmationResult=null)},this._setWaitingStatus=function(e){var i=JSON.stringify(e);if(localStorage&&localStorage.setItem)try{localStorage.setItem(this.cookieName,i)}catch(e){s.pandalocker.tools.cookie(this.cookieName,i,{expires:365,path:"/"})}else s.pandalocker.tools.cookie(this.cookieName,i,{expires:365,path:"/"})},this._removeWaitingStatus=function(e){localStorage&&localStorage.removeItem&&localStorage.removeItem(this.cookieName),s.pandalocker.tools.cookie(this.cookieName,!1,{expires:0,path:"/"})},this.isWaitingSubscription=function(){return!!this.getWaitingIdentityData()},this.getWaitingIdentityData=function(){var e=localStorage&&localStorage.getItem&&localStorage.getItem(this.cookieName);return(e=e||s.pandalocker.tools.cookie(this.cookieName))?JSON.parse(e):e}}}(jQuery);; !function(t){"use strict";t.pandalocker.extras||(t.pandalocker.extras={}),t.pandalocker.extras.interrelation={init:function(){var s,i=this.options.locker&&this.options.locker.scope;i&&((s=this).addHook("state-changed",function(t,o,e,n){var c,a;"unlocked"===o&&(c=s._getStateStorage(),a="scope_"+i,c.setState(a,"unlocked"))}),this.addFilter("functions-requesting-state",function(t){return t.push(function(o){var t=s._getStateStorage(),e="scope_"+i;t.requestState(e,function(t){o(t)})}),t}),this.addHook("unlocked",function(t,o){"button"===o&&s.runHook("unlocked-by-scope-"+i,[],!0)}),this.addHook("unlocked-by-scope-"+i,function(t){t!==s&&s.unlock("scope")},10,!0))}}}(jQuery);; !function(o){"use strict";o.pandalocker.extras||(o.pandalocker.extras={}),o.pandalocker.extras.googleAnalytics={init:function(){var a;this.options.googleAnalytics&&(this.addHook("unlocked",function(o,e,t,n){var i;(window._gaq||window.ga)&&(n=n||window.location.href,"button"===e?(i=null,i="facebook-like"===t?"Facebook Like":"facebook-share"===t?"Facebook Share":"twitter-tweet"===t?"Twitter Tweet":"twitter-follow"===t?"Twitter Follow":"google-plus"===t?"Google Plus":"google-share"===t?"Google Share":"linkedin-share"===t?"LinkedIn Share":"google-youtube"===t?"Google Youtube":"facebook"===t?"Facebook Sign-In":"twitter"===t?"Twitter Sign-In":"google"===t?"Google Sign-In":"linkedin"===t?"LinkedIn Sign-In":"form"===t?"Opt-In Form":t.substr(0,1).toUpperCase()+t.substr(1),a("Lockers","Unlocked (Total)",n),a("Lockers ","Unlocked via "+i,n)):"timer"===e?(a("Lockers","Skipped (Total)",n),a("Lockers ","Skipped via Timer",n)):"cross"===e&&(a("Lockers","Skipped (Total)",n),a("Lockers ","Skipped via Cross",n)))}),a=function(o,e,t){window.ga?window.ga("send","event",o,e,t):window._gaq.push(["_trackEvent",o,e,t])})}}}(jQuery);; !function(o){"use strict";o.pandalocker.extras||(o.pandalocker.extras={}),o.pandalocker.extras.na={init:function(){var a=this,e=0,c=0,s={};this.addHook("control-error",function(o,n,r){e||(e=function(){for(var o=0,n=0;n<--c||(a.runHook("na"),"show-content"===a.options.locker.naMode&&a.unlock("na")))})}}}(jQuery);; !function(a){"use strict";var t={init:function(t,o){var e=a.extend(!0,{},this._defaults);if(this.options=a.extend(!0,e,o),this.groupOptions=t.options,this.lockerOptions=t.locker.options,this.lang=t.lang,this.group=t,this.locker=t.locker,this.groupOptions.senderName&&(this.senderName=this.groupOptions.senderName),!this.name)throw new Error('The property "name" cannot be empty for the control.');this.options.socialProxy||(this.options.socialProxy={}),this.options.socialProxy=a.extend(!0,{},this.lockerOptions.socialProxy,this.groupOptions.socialProxy,this.options.socialProxy),this.options.lockMode=this.options.lockMode||this.groupOptions.lockMode||this.lockerOptions.lockMode||"strict",this.bridgeId=a.pandalocker.tools.id(10),this.setup&&this.setup(),this.setupHooks&&this.setupHooks(),this.prepareOptions&&this.prepareOptions()},_defaults:{},renderControl:function(t){this.control=a(this.tag||"
").addClass("onp-sl-control").addClass("onp-sl-"+this.name).appendTo(t),this.innerWrap=a("
").addClass("onp-sl-control-inner-wrap").appendTo(this.control),this._isRendered=!0,this._hasError()&&this.showError(),this.render(this.innerWrap)},render:function(){throw new Error("The control should implement the method 'render'")},unlock:function(t,o,e){this.setState("unlocked"),this.group.unlock(t||"button",o||this.senderName||this.name,e)},addClassToLocker:function(t){this.group.addClassToLocker(t)},trackWindow:function(t,o){return this.locker.trackWindow(t,o)},requestState:function(t){this._getStateStorage().requestState(this._getStorageIdentity(),t)},setState:function(t,o){this._getStateStorage().setState(this._getStorageIdentity(),t,o),this.group.setState(t,"button",this.name)},_getStorageIdentity:function(){return"control_"+this.name},_getStateStorage:function(){return this.locker._getStateStorage()},_setLoadingState:function(t){this._stateSender||(this._stateSender=t,this.control.addClass("onp-sl-state-loading"),this._isLoadingState=!0)},_removeLoadingState:function(t){this._stateSender&&this._stateSender!==t||(this._stateSender=null,this.control.removeClass("onp-sl-state-loading"),this._isLoadingState=!1)},_isLoading:function(){return this._isLoadingState},_setError:function(t){this._error||(this._error=t)},_hasError:function(){return!!this._error},showError:function(t,o){var e=this;this.runHook("control-error",[e.name,e.group.name]),e.group.onControlError&&e.group.onControlError(e.name),this._isRendered?(o=o||this.innerWrap,t=t||this._error,this.control.hasClass("onp-sl-state-error")||(this.control.removeClass("onp-sl-state-loading").addClass("onp-sl-state-error"),this.createErrorMarkup(t).appendTo(o).find(".onp-sl-error-title").click(function(){return e.group.showError(e.name,t),!1}))):this._setError(t)},createErrorMarkup:function(t){return a("
"+a.pandalocker.lang.error+"
")},showNotice:function(t,o){this.group.showNotice(t,null,o)},validateAgreement:function(){return this.group.validateAgreement()},addHook:function(t,o,e){return this.group.addHook(t,o,e)},runHook:function(t,o){return this.group.runHook(t,o)},addFilter:function(t,o,e){return this.group.addFilter(t,o,e)},applyFilters:function(t,o,e){return this.group.applyFilters(t,o,e)},skipSDK:null,requireSdk:function(e,t){var r=a.pandalocker.deferred();if(this.skipSDK||!e)return r.resolve(),r.promise();var o=this.group.options.loadingTimeout||this.lockerOptions.locker.loadingTimeout||2e4,n=this.attemptToLoad(e,t||{},5,o);return n.done(function(){r.resolve()}),n.fail(function(t){var o=a.pandalocker.lang.errors.unableToLoadSDK.replace("{0}",e).replace("{1}",t);r.reject(o)}),r.promise()},attemptToLoad:function(o,e,r,n){var i=this;r=r||5;var s=a.pandalocker.deferred(),t=a.pandalocker.sdk.connect(o,e||{},n);return t.done(function(){s.resolve()}),t.fail(function(t){console.log('Failed to load SDK script "'+o+'" due to the error "'+t+'". '+r+" attempts left."),"timeout"!==t&&"blocked"!==t&&s.reject(t),r-1<=0?s.reject(t):i.attemptToLoad(o,e,r-1,n).done(function(){s.resolve()}).fail(function(){s.reject(t)})}),s.promise()},verifyButton:function(){var o=this,e=a.pandalocker.deferred(),r=o.verification.timeout,n=function(){if((o.customVerifyButton&&!o.customVerifyButton()||0===o.control.find(o.verification.container).length)&&0<=r)setTimeout(function(){n()},500),r-=500;else{if(r<=0){var t=a.pandalocker.lang.errors.unableToCreateControl.replace("{0}",o.networkName);return e.reject(t)}e.resolve()}};return n(),e.promise()},showScreen:function(t,o){this.group.showScreen(t,o)},waitCrossRequest:function(t,o){this.group.waitCrossRequest(t,o)}};a.pandalocker.entity.control=t}(jQuery);; !function(u){"use strict";var o=u.pandalocker.tools.extend(u.pandalocker.entity.control);o.setup=function(){var o=this;this.options.actions=this.options.actions||[];var n=!1;for(var t in this.options.actions)"subscribe"===this.options.actions[t]&&(this.options.actions.splice(t,1),n=!0);n&&this.options.actions.push("subscribe"),this.groupOptions.actions&&(this.options.actions=u.extend(this.options.actions,this.groupOptions.actions));for(var i,e,s=0;s<4||(r.showScreen("default"),r.showError("Unable to sign in, the ajax error occurred."),e("error"),console&&console.log&&(console.log("Invalide ajax response:"),console.log(o.responseText)))}})}var r=this;if(!n.email)return this.showScreen("enter-email",{header:u.pandalocker.lang.onestep_screen_title,message:u.pandalocker.lang.onestep_screen_instruction,buttonTitle:u.pandalocker.lang.onestep_screen_button,note:u.pandalocker.tools.normilizeHtmlOption(r.options.noSpamText||r.groupOptions.text.noSpamText||u.pandalocker.lang.noSpam),callback:function(o){n.email=o,s()}});s()},o.runLeadAction=function(n,t,o,i,e){function s(){i&&r.showScreen("data-processing");var o={};return o.identityData=n,o.serviceData=t,o.handler="lead",o=u.pandalocker.filters.run(r.locker.id+".ajax-data",[o]),o=u.pandalocker.filters.run(r.locker.id+".lead.ajax-data",[o]),u.ajax({type:"POST",dataType:"json",url:r.actionsCallpoint,data:u.pandalocker.tools.appendPrefix(r.options.actionsProxy.paramPrefix,o),success:function(o){e(o)},error:function(o,n,t){o&&o.readyState<4||(r.showScreen("default"),r.showError("Unable to sign in, the ajax error occurred."),e("error"),console&&console.log&&(console.log("Invalide ajax response:"),console.log(o.responseText)))}})}var r=this;if(!n.email)return this.showScreen("enter-email",{header:u.pandalocker.lang.onestep_screen_title,message:u.pandalocker.lang.onestep_screen_instruction,buttonTitle:u.pandalocker.lang.onestep_screen_button,note:u.pandalocker.tools.normilizeHtmlOption(r.options.noSpamText||r.groupOptions.text.noSpamText||u.pandalocker.lang.noSpam),callback:function(o){n.email=o,s()}});s()},o._checkWaitingSubscription=function(){var o,n;this.subscriptionService&&this.subscriptionService.isWaitingSubscription()&&(o=this.subscriptionService.getWaitingIdentityData(),n=this.subscriptionService.waitSubscription(o),this._setupSubscriptionHooks(n,o),this.showScreen("email-confirmation",{service:this.subscriptionService,email:o.email}))},o._setupSubscriptionHooks=function(o,n){var t=this;return o.done(function(){t.unlock()}),o.fail(function(o){t.runHook("raw-error"),t.showNotice(o.error),t.showScreen("default"),o.detailed&&console&&console.log&&console.log(o.detailed)}),o.always(function(o,n){t.subscriptionService._removeWaitingStatus()}),o.progress(function(o){t.showScreen("email-confirmation",{service:t.subscriptionService,email:n.email})}),o},u.pandalocker.entity.actionControl=o}(jQuery);; !function(l){"use strict";var e={_defaults:{},init:function(e,t){this.locker=e,this.lockerOptions=e.options,this.lang=e.lang,"socialLocker"==e.langScope&&"connect-buttons"==this.name&&(e.langScope="signinLocker",this.lang=e.lang=l.pandalocker.lang.scopes[e.langScope]),"socialLocker"==e.langScope&&"email-locker"==this.name&&(e.langScope="emailLocker",this.lang=e.lang=l.pandalocker.lang.scopes[e.langScope]),t=t||{};var o,s=l.extend(!0,{},this._defaults);for(var n in this.options=l.extend(!0,s,t),this.lockerOptions.agreement&&(this.options.agreement=l.extend(!0,this.lockerOptions.agreement,this.options.agreement)),t)t.hasOwnProperty(n)&&l.isArray(t[n])&&(this.options[n]=t[n]);this.isFirst=1===t.index,this.isLast=t.index===this.lockerOptions.groups.order.length,this.isSingle=1===this.lockerOptions.groups.order.length,"object"!=typeof this.options.text&&(this.options.text={message:this.options.text}),this.isFirst&&(""===this.options.text.header?this.options.text.header="":this.options.text.header=this.options.text.header||this.lang.defaultHeader,""===this.options.text.message?this.options.text.message="":this.options.text.message=this.options.text.message||this.lang.defaultMessage),this.options.text.header=l.pandalocker.tools.normilizeHtmlOption(this.options.text.header),this.options.text.message=l.pandalocker.tools.normilizeHtmlOption(this.options.text.message),this.options.text.footer=l.pandalocker.tools.normilizeHtmlOption(this.options.text.footer),!1!==this.options.separator&&((o=l.isPlainObject(this.options.separator)?this.options.separator:{type:"line",title:this.options.separator}).type=o.type||"line",this.options.separator=o),this.childInit&&this.childInit(),this.setup&&this.setup(),this.setupHooks&&this.setupHooks(),this.prepareOptions&&this.prepareOptions();try{this.createControls()}catch(e){if(!e.onpsl)throw e;this.showError(this.name,e.message)}},createControls:function(){this.controls=[];for(var e=0;e<=0&&t(s)})},canLock:function(){return!0},renderGroup:function(e){var t=l("
");t.appendTo(e);var o,s=l("
");s.appendTo(t),this.isFirst?t.addClass("onp-sl-first-group"):this.isLast?t.addClass("onp-sl-last-group"):t.addClass("onp-sl-middle-group"),t.addClass(this.isSingle?"onp-sl-single-group":"onp-sl-not-single-group"),t.addClass("onp-sl-group-index-"+this.options.index),this.element=t,this.innerWrap=s,this.renderSeparator(),(this.options.text.header||this.options.text.message)&&(o=l("
").appendTo(this.innerWrap),this.options.text.header&&o.append(this.options.text.header.addClass("onp-sl-header onp-sl-strong").clone()),this.options.text.message&&o.append(this.options.text.message.addClass("onp-sl-message").clone())),this._isRendered=!0,this.render(this.innerWrap)},render:function(){!this.hasAgreementHandler("top")&&this.lockerOptions.agreement.checkbox&&"top"===this.lockerOptions.agreement.checkbox&&this.renderAgreementCheckbox(),this.renderControls(this.innerWrap),!this.hasAgreementHandler("bottom")&&this.lockerOptions.agreement.checkbox&&"bottom"===this.lockerOptions.agreement.checkbox&&this.renderAgreementCheckbox()},unlock:function(e,t,o){this.locker.unlock(e,t,o)},setState:function(e,t,o){this.locker.setState(e,t||"group",o||this.name)},renderControls:function(e){for(var t=0;t
").appendTo(e),n=l("
").appendTo(s),i="social-buttons"===this.name?t.checkbox&&t.checkbox.text||l.pandalocker.lang.misc_agreement_checkbox_alt:t.checkbox&&t.checkbox.text||l.pandalocker.lang.misc_agreement_checkbox,r=this.locker._replaceTermLinks(i),l("").html(l.pandalocker.lang.errors_no_consent).appendTo(n),a=l("