Submit
Path:
~
/
home
/
getwphos
/
public_html
/
BenjaminMarc2023
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
File Content:
primary-term.ef53fce1.js
import{_}from"./js/_plugin-vue_export-helper.80405f63.js";import{r as m,o as w,c as f,d as p,a as u,I as g,f as T,E as S}from"./js/vue.runtime.esm-bundler.ba5c08e0.js";import{l as x}from"./js/index.11f1923e.js";import{l as $}from"./js/index.df267eaa.js";import{l as v}from"./js/index.0b123ab1.js";import{l as d,u as E,r as h,b as k,v as P}from"./js/links.4c32e7b9.js";import{e as b}from"./js/elemLoaded.9a6eb745.js";import{s as A}from"./js/metabox.92ca1925.js";import{S as B}from"./js/Information.07ac38db.js";import{S as L}from"./js/Caret.da0d1a59.js";import"./js/translations.6e7b2383.js";import"./js/default-i18n.3881921e.js";import"./js/constants.238e5b7b.js";import"./js/isArrayLikeObject.ab8f4241.js";const C={getTerms:async e=>{const{apiFetch:t}=window.wp,{addQueryArgs:o}=window.wp.url,r=c(e);return await t({path:o(`/wp/v2/${r.restBase}`,{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})})},getSelectedTerms:e=>{const t=c(e);return window.wp.data.select("core/editor").getEditedPostAttribute(t.restBase)||[]}},D={getTerms:async e=>{var n;const t=[],o=c(e);return(((n=document.getElementById(`${o.name}checklist`))==null?void 0:n.querySelectorAll("li"))||[]).forEach(s=>{const a=s.querySelector("input").value,i=s.querySelector("label").innerText;t.push({id:parseInt(a,10),name:i.trim()})}),new Promise(s=>{s(t)})},getSelectedTerms:e=>{var n;const t=[],o=c(e);return(((n=document.getElementById(`${o.name}checklist`))==null?void 0:n.querySelectorAll("input:checked"))||[]).forEach(s=>{t.push(parseInt(s.value,10))}),t}},l=()=>{var o;return d(),(((o=E().aioseo.postData)==null?void 0:o.taxonomies)||[]).filter(r=>r.primaryTermSupport===!0)},I=e=>l().some(t=>e===t.name),c=e=>{const t=l().filter(o=>e===o.name);return t.length?t[0]:{}},M=e=>h()?C.getSelectedTerms(e):D.getSelectedTerms(e);const H={setup(){return{postEditorStore:k()}},components:{SvgCircleInformation:B,SvgClose:L},data(){return{selectedTerms:[],strings:{didYouKnow:this.$t.sprintf(this.$t.__("Did you know that %1$s Pro allows you to choose a %2$sprimary category%3$s for your posts? This feature works hand in hand with our powerful Breadcrumbs template to give you full navigational control to help improve your search rankings!",this.$td),"AIOSEO","<strong>","</strong>"),learnMoreLink:this.$t.sprintf('<a href="%1$s" target="_blank" rel="noreferrer nofollow">%2$s<span class="link-right-arrow"> →</span></a>',this.$links.getDocUrl("primaryTerm"),this.$t.__("Learn more",this.$td))}}},props:{taxonomy:String},methods:{updateSelectedTerms(){this.selectedTerms=M(this.taxonomy)}},computed:{canShowUpsell(){const{options:e}=this.postEditorStore.currentPost;return!e.primaryTerm.productEducationDismissed&&1<this.selectedTerms.length}},mounted(){this.updateSelectedTerms(),window.aioseoBus.$on("updateSelectedTerms",this.updateSelectedTerms)},beforeUnmount(){window.aioseoBus.$off("updateSelectedTerms",this.updateSelectedTerms)}},N={key:0,class:"aioseo-primary-term-cta"},q=["innerHTML"],U=["innerHTML"];function V(e,t,o,r,n,s){const a=m("svg-circle-information"),i=m("svg-close");return s.canShowUpsell?(w(),f("div",N,[p(a,{width:"15",height:"15"}),u("p",{innerHTML:n.strings.didYouKnow},null,8,q),u("p",{innerHTML:n.strings.learnMoreLink},null,8,U),p(i,{onClick:g(r.postEditorStore.disablePrimaryTermEducation,["stop"])},null,8,["onClick"])])):T("",!0)}const F=_(H,[["render",V]]);const K={components:{PrimaryTerm:F},props:{taxonomy:String}},O={class:"aioseo-app aioseo-primary-term"};function Q(e,t,o,r,n,s){const a=m("primary-term");return w(),f("div",O,[p(a,{taxonomy:o.taxonomy},null,8,["taxonomy"])])}const R=_(K,[["render",Q]]);if(h()&&window.wp){const{createElement:e,Fragment:t}=window.wp.element,{addFilter:o}=window.wp.hooks,{createHigherOrderComponent:r}=window.wp.compose,{subscribe:n}=window.wp.data;o("editor.PostTaxonomyType","aioseo/primary-term",r(s=>a=>{const{slug:i}=a;return I(i)?e(t,{},e(s,a),e("div",{id:`aioseo-primary-term-${i}`},e("div",{className:"aioseo-primary-term-app",taxonomy:i}))):e(s,a)},"withInspectorControls")),n(()=>{window.aioseoBus.$emit("updateSelectedTerms")})}P()&&(d(),l().forEach(e=>{const t=document.querySelector(`#${e.name}div .inside`);if(!t)return;const o=document.createElement("div");o.setAttribute("id",`aioseo-primary-term-${e.name}`),o.setAttribute("class","aioseo-primary-term-app"),o.setAttribute("taxonomy",e.name),t.append(o),function(r){r(`#${e.name}checklist`).on("change",'input[type="checkbox"]',()=>{window.aioseoBus.$emit("updateSelectedTerms")}),r(`#${e.name}checklist`).on("wpListAddEnd",()=>{window.aioseoBus.$emit("updateSelectedTerms")})}(window.jQuery)}));const y=e=>{if(!e)return;const t=e.getAttribute("taxonomy");let o=S({...R,name:"Standalone/PrimaryTerm"},{taxonomy:t});o=x(o),o=$(o),o=v(o),d(o),o.mount(e)};if(A()&&window.aioseo&&window.aioseo.currentPost&&window.aioseo.currentPost.context==="post"){const e=document.getElementsByClassName("aioseo-primary-term-app");Array.prototype.forEach.call(e,t=>y(t)),b(".aioseo-primary-term-app","aioseoPrimaryTerm"),document.addEventListener("animationstart",function(t){t.animationName==="aioseoPrimaryTerm"&&y(t.target)},{passive:!0})}
Submit
FILE
FOLDER
Name
Size
Permission
Action
css
---
0755
images
---
0755
js
---
0755
link-format
---
0755
svg
---
0755
about.86ba8541.js
7613 bytes
0644
app.a068ba02.js
874 bytes
0644
blocks.3c4a77c0.js
76766 bytes
0644
connect-pro.e5220222.js
3360 bytes
0644
connect.4c33a2f3.js
3357 bytes
0644
dashboard-widgets.dd8c3eb5.js
7856 bytes
0644
dashboard.c48ce7fc.js
6114 bytes
0644
divi-admin.a4ab1d38.js
2205 bytes
0644
divi.1fac8363.js
10260 bytes
0644
elementor.548e2dcf.js
7202 bytes
0644
feature-manager.c8d3cd67.js
7002 bytes
0644
flyout-menu.00d8605b.js
42473 bytes
0644
follow-up-emails-nav-bar.dc4e9a08.js
4218 bytes
0644
footer-links.eafd3072.js
4306 bytes
0644
headline-analyzer.523802e8.js
38196 bytes
0644
limit-modified-date.ccae655d.js
2906 bytes
0644
link-assistant.875072d7.js
9689 bytes
0644
link-format.b9833f3e.js
3411 bytes
0644
local-business-seo.4ed993c7.js
1 bytes
0644
local-seo.097dac5f.js
14341 bytes
0644
main-8e4431fc.js
1969372 bytes
0644
monsterinsights.01c6fb4a.js
6061 bytes
0644
notifications.58fb1fe3.js
1711 bytes
0644
plugins.feb1d676.js
1355 bytes
0644
post-settings.e6891024.js
28120 bytes
0644
posts-table.e7b79864.js
18769 bytes
0644
primary-term.ef53fce1.js
5155 bytes
0644
publish-panel.92ac8a3e.js
15408 bytes
0644
redirects-add-redirect.0c9e9889.js
4007 bytes
0644
redirects.57d3aa32.js
10584 bytes
0644
search-appearance.4e5c9d75.js
32490 bytes
0644
search-statistics.80414eef.js
23402 bytes
0644
seedprod.77eea9a5.js
3970 bytes
0644
seo-analysis.cbf53903.js
13918 bytes
0644
seo-preview.f29167d5.js
12961 bytes
0644
seo-revisions.d3825d5f.js
3143 bytes
0644
settings.bcf938c5.js
23914 bytes
0644
setup-wizard.f6acc4d0.js
28455 bytes
0644
sitemaps.6f03cb9b.js
25627 bytes
0644
social-networks.2880f39b.js
17553 bytes
0644
tools.ee61fcf3.js
22360 bytes
0644
tru-seo-analyzer.77dcbf89.js
1883638 bytes
0644
user-profile-tab.94f4124c.js
4240 bytes
0644
wp-notices.a7398236.js
873 bytes
0644
N4ST4R_ID | Naxtarrr