/*! * 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 = {}; 如果(!$。Pandalocker.lang)$ .pandalocker.lang = {}; 如果(!$。Pandalocker.lang.defaults)$ .pandalocker.lang.defaults = {}; $ .pandalocker.lang.defaults = { // - 可翻译的文本 //屏幕“确认你的样子” commond_like_screen_header:'几乎准备就绪', Confirm_like_screen_message:'单击下面的按钮喜欢和解锁。', Confirm_like_screen_button:'确认', //屏幕“请确认您的电子邮件” common_screen_title:'请确认您的电子邮件', confirm_screen_instruction:'我们已将确认电子邮件发送给{email}。请点击电子邮件中的确认链接以显示内容。', commond_screen_note1:'内容将在确认后10秒内自动解锁。', commond_screen_note2:'提供电子邮件的注意可能需要几分钟。', commond_screen_cancel:'(取消)', confirm_screen_open:'打开我的收件箱{service}', //屏幕“完成一步” oneStep_screen_title:'完成一步', OneStep_screen_instruction:'请在下面输入您的电子邮件继续。', OneStep_Screen_Button:'完成', //登录按钮 signin_long:'通过{name}登录, 登录:'通过{name}', signin_facebook_name:'facebook', signin_twitter_name:'twitter', signin_google_name:'谷歌', signin_linkedin_name:'linkedin', // miscellaneous misc_data_processing:'处理数据,请稍候...', misc_or_enter_email:'手动输入您的电子邮件以登录', misc_enter_your_name:'输入你的姓名', misc_enter_your_email:'输入您的电子邮件地址', misc_your_agree_with:'通过单击按钮,您同意{links}', misc_terms_of_euse:'使用条款', misc_privacy_policy:'隐私政策', MISC_AGREEMENT_CHECKBOX:'我同意根据{links}'处理我的数据, misc_agreement_checkbox_alt:'我同意{links}', misc_or_wait:'或等待{timer} s', misc_close:'关闭', misc_or:'或', // errors & notices errors_empty_email:“请输入您的电子邮件地址。”, errors_incorrect_email:“似乎您输入了一个错误的电子邮件地址。请检查它。”, errors_empty_name:“请输入您的姓名。”, errors_empty_field:“请填写此字段。”, errors_empty_checkbox:“请标记此复选框继续。”, errors_invalid_url:“请输入有效的URL。”, errors_invalid_integer:“请输入整数。”, errors_greater_number:“请输入大于或等于{0}的数字。”, errors_less_number:“请输入小于或等于{0}的数字。”, errors_invalid_value:“无效值。请检查您输入的值。”, errors_invalid_date:“请输入有效日期。”, errors_invalid_month:“请输入有效月份号(在01到12之间)。”, errors_invalid_day:“请输入有效的日期(在01到31之间)。”, errors_subscription_canceled:“您已取消订阅。”, errors_not_signed_in:“抱歉,但您尚未登录。请再试一次。”, res_errors_not_granted:“抱歉,但您还没有授予所有必需的权限({权限})。请再试一次。”, errors_no_consent:“请告诉我们您的同意以继续。”, // - 默认文本和内部错误 // common resources 错误:'错误', NOSPAM:'你的电子邮件地址是100%的垃圾邮件安全!', errors: { ajaxerror:'意外的ajax错误。请检查控制台日志以获取更多详细信息。', UnableToLoadSDK:由于错误“{1}”,“无法加载”{0}“的SDK脚本。请确保在浏览器中无法阻止加载社交脚本。某些浏览器范围(avast,privdog,adblock等)或Firefox中的私有选项卡的使用可能导致此问题。关闭它们,然后再试一次。', unabledetocontrol:'无法创建({0})。请确保在浏览器中无法阻止加载社交脚本。某些浏览器范围(avast,privdog,adblock等)可能导致此问题。关闭它们,然后再试一次。', extentfbappiderror:'请设置您的Facebook应用程序ID。', EnterptwitterFollowUrlerror:'请设置您的Twitter档案的URL。', TweetNotFound:'请确保已发布推文。不幸的是,我们还没有设法在您的帐户中找到推文。', downnotfound:'请确保您跟着我们。不幸的是,我们没有设法在追随者列表中找到你。“, extentyoutubechannelid:'请设置您的YouTube频道ID。', ActionSproxyempty:'Action代理URL为空。代理用于调用Action API。', SocialProxyempty:'社交代理URL是空的。此代理用于调用社交API。 }, //储物柜类型依赖的资源 scopes: { //连接按钮是主要组时 signinLocker: { DefaileTheader:“唱歌解锁这个内容”, DefaultMessage:“请登录。只需单击下面的一个按钮即可获得即时访问。”, btnsubscribe:“登录解锁”, ViaSignInlong:“{long}”, ViaSignInshort:“{short}” }, //当订阅是主要组时 emailLocker: { DefaileTheader:“此内容仅适用于订阅者”, DefaultMessage:“请订阅解锁此内容。只需输入您的电子邮件。”, btnsubscribe:“订阅解锁”, ViaSignInlong:“{short}”, ViaSignInshort:“{name}” }, //当社交按钮是主要组时 socialLocker: { DefaileTheader:“此内容已被锁定”, defaultMessage:“请支持我们,使用下面的一个按钮解锁内容。”, }, }, //组“Connect-Buttons”的文本资源 connectButtons: { DefaultMessage:“通过您的社交配置文件订阅一点击”, facebook: {}, google: {}, linkedin: {}, defaultseparator:“或”, 错误Outubechannelmissed:“请将YouTube频道的ID设置为订阅。”, errowlinkedincompanynotfound:“LinkedIn公司'{0}'找不到。”, ERRORLINKEDINCOMCANMASSED:“请指定链接公司公司ID或名称以跟随。”, artortwitterUsermissed:“请指定要关注的Twitter用户名。”, artortwittermessagemissed:“请将消息指定为推文。” }, //组“订阅”的文本资源 subscription: { defaulttext:'无法通过社交网络登录吗?手动输入您的电子邮件。', defaultButtontext:'完成,登录解锁' }, //组“社交按钮”的文本资源 socialButtons: { //按钮封面的默认标签 Facebooklike:'喜欢我们', Facebookshare:'share', TwitterTweet:'Tweet', TwitterFollow:'跟随我们', Youtubesubscribe:'订阅', linkedinshare:'share' } }; $ .pandalocker.lang = $ .pandalocker.lang.defaults; if(window .__ pandalockers &&窗口.__ pandalockers.lang){ $ .pandalocker.lang = $ .extend($ .pandalocker.lang,window .__ pandalockers.lang); 窗口.__ pandalockers.lang = null; } })(jQuery);; /*! * Themes Presets * Copyright 2020, OnePress, http://byonepress.com * * @since 1.0.0 * @pacakge core */ (function ($) { 如果(!$。Pandalocker.themes)$ .pandalocker.themes = {}; //主题:伟大的吸引子 $ .pandalocker.Themes ['''''''] = { socialButtons: { display: 'covers', unsupported: { 显示:['封面原住'] } } }; //主题:友好的巨人 $ .pandalocker.themes ['友好巨头'] = { socialButtons: { display: 'covers', unsupported: { 显示:['封面原住'] } }, theme: { fonts: [{ name: 'Open Sans', 风格:['400','700'] }] } }; // Theme: Dark Force $ .pandalocker.themes ['黑暗力'] = { socialButtons: { display: 'covers', unsupported: { 显示:['封面原住'] } }, theme: { fonts: [{ name: 'Montserrat', 风格:['400','700'] }] } }; // Theme: Starter $ .pandalocker.themes ['starter'] = { socialButtons: { counter: true, 显示:'覆盖原住民' } }; // Theme: Secrets $ .pandalocker.themes ['secrets'] = { socialButtons: { counter: true, 显示:'覆盖原住民' } }; // Theme: Dandyish $ .pandalocker.themes ['dandyish'] = { socialButtons: { counter: false, display: 'native' } }; // Theme: Glass $ .pandalocker.themes ['玻璃'] = { socialButtons: { counter: true, display: 'native' } }; // Theme: Flat $ .pandalocker.themes ['平'] = { socialButtons: { counter: true, display: 'covers' } }; })(jQuery);; !函数(o){“使用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 [“semely-buttons”] ||(o.pandalocker.controls [“社交按钮”] = {}) ,o.pandalocker.controls [“connect-buttons”] ||(o.pandalocker.controls [“connect-buttons”] = {}),o.pandalocker.controls.subscription ||(o.pandalocker.controls.subscription = {})}(jQuery);; !函数{“使用strict”; s.pandalocker ||(s.pandalocker = {}),s.pandalocker.filters = s.pandalocker.filters || {_ITEMS:{},_优先级:{},运行:函数(i,t){var r = t && 0 “+ e +” “):”对象“== typeof e?e.conone():e:e},s.pandalocker.tools.diffArrays =函数(e,r){return s.grep(e,function(e){return -1 == s.inarray(e,r)})},s.pandalocker.tools.unionArrays =函数(e,r){return s.grep(e,函数(e){return-1!== s .inarray(e,r)})} s.pandalocker.tools.cookie = s.pandalocker.tools.cookie ||函数(e,r,o){var n,t; if(1'),o.element = s(“。Onp-sl-body-warkap”)),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 =参数,o = arguments.length,n = this;返回this.each(函数(){var e = s.data(这个,“插件_”+ t) ; e || 1!= o ||“对象”!= 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)| | /(歌剧)(?:。*版本|)[\ /]([\ w。] +)/。exec(e)|| /(msie)([\ w。] +)/。exec(e )|| e.indexof(“兼容”)<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返回!0} catch(e){return!0}},this._removeValue =函数(e){if(!e)返回!1; localstorage&&localStorage.removeItem(e),s.pandalocker.tools.cookie(e,null)}}}(jQuery);; !函数{“使用strict”; s.pandalocker.services.visibility =函数(){this.canlock = function(e){if(!e)返回!0; for(v in e)( E.HasownProperty(T)&&"object"==typeof e[t]){var r=e[t];如果(!这个.ISVISIBLE(R))返回!1}返回!0} .IS.ISVisible =函数(e){if(!e.conditions)返回!0; var t = this.matchfilter(e),r = e.type ||“showif”;返回“showif”=== r?t:“hideif”=== r?!t:void 0},this.matchfilter =函数(e){var t,r = !0; for(v in e.contitions){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;如果(!e.conitions)返回!0;对于(在e.conitions中的var a){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 = ngetvalue(e);返回null === s?(控制台&&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];返回t = s.pandalocker.filters.run(“可见性 - 值 - 提供程序”,[t,e])},this.comPare =函数(e,t,r,a){var i =“日期”== = A.&&("equals"===e||"notequal"===e);切换(t = this.CastValue(t,a,i?“范围”:null),r = this.castvalue(r,a),e){case“等于”:return s.isArray(r)? - 1 T.Start && R. T.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“).AddClass(”onp-sl-control“)。addclass(”onp-sl - “+ this.name).ape).Appendto(t),this.innerwrap = a(”
“).AddClass(”OnP-SL-Control-Inner-Wrap“)。附录(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;这个.runhook(“control -erer”,[e.name,e.group.name]),e.group.oncontrolor && e.group.oncontrolorror(e.name),this._isrendered?(o = o ||这个。 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“)。单击(函数(){return e.group.showeror(e .name,t),!! 1})))):this._seterror(t)},createErrormarkup:函数(t){return a(““)”),示出:函数(​​t,o){this.group.shownotice(t,null,o)},validateagreement:function(){return this.group.validateagreement()},addhook:function(t,o ,e){返回this.group.addhook(t,o,e)},runhook:函数(t,o){return this.group.runhook(t,o)},addfilter:function(t,o,e ){返回this.group.dfilter(t,o,e)},applyfilters:函数(t,o,e){return this.group.applyfilters(t,o,e)},skipsdk:null,carperdk:function (e,t){var r = a.pandalocker.deferred();如果(this.skipsdk ||!e)返回r.resolve(),r.promise(); var o = this.group.options.loadingtimeout || thine.lockerOptions.load.loadingTimeout || 2E4,n = this.attempttoload(e,t || {},5,o); return n.done(函数(){r.resolve()}),n .fail(函数(t){var o = a.pandalocker.lang.errors.unabletOloadsdk.replace(“{0}”,e).replace(“{1}”,t); r.reject(o)} ),r.promise()},尝试:函数(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(函数(t){console.log('无法加载SDK脚本“'+ o +'“由于错误”'+ T +'。 '+ r +“尝试留下。”),“超时”!== t &&“被阻止”!== 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“); s.appendto(t),this.isfirst?t.addclass(”onp-sl-first-group“):this.islast?t.addclass(”onp-sl-last-group“):t。 AddClass(“ONP-SL-Midden-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.renderseperator(),(this.options.text.header || this.options.text。消息)&&(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,i =”社交按钮“=== this.name?t.checkbox&&&t.checkbox.text ||l.pandalocker.lang.misc_agreement_checkbox_alt :t.checkbox &&t.checkbox.text ||。 pandalocker.lang.misc_agreement_checkbox,r = this.locker._replacetermlinks(i),l(““).html(l.pandalocker.lang.errors_no_consent).appendto(n),a = l(”