관리-도구
편집 파일: post-settings.ickq6ebf.js
var ce=Object.defineProperty;var le=(n,s,c)=>s in n?ce(n,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):n[s]=c;var A=(n,s,c)=>le(n,typeof s!="symbol"?s+"":s,c);import{v as l,o as _,c as f,C as i,a,t as m,l as g,k,b as V,x as B,F as de,J as ue,q as pe,T as me,Y as N,h as U}from"./js/runtime-dom.esm-bundler.h3clfjuw.js";import{e as K,l as _e}from"./js/index.nd8elblc.js";import{l as ge}from"./js/index.h076fivy.js";import{l as fe}from"./js/index.moogjen0.js";import{b as D,G as H,c as be,u as ne,L as he,n as Se,E as we,F as ve,l as xe}from"./js/index.nsvc8vqf.js";import{n as j,t as ye}from"./js/postSlug.cemx0kwk.js";import{d as Ce}from"./js/debounce.paenkskr.js";import{_ as ie}from"./js/App.b2imjdmx.js";import{s as ae}from"./js/metabox.ncz5ucbq.js";import"./js/translations.lf9cwm9a.js";import{_ as o}from"./js/default-i18n.hohxoesu.js";import{e as Pe}from"./js/elemLoaded.f718isk5.js";import{l as Le}from"./js/loadTruSeo.e1e2gpph.js";import{d as Ee}from"./js/Caret.hnvbzqgq.js";import{C as re}from"./js/SettingsRow.1l1umqn0.js";import{_ as S}from"./js/_plugin-vue_export-helper.oebm7xum.js";import{d as Ae,L as Ie,C as Ve,G as ke,e as Q,H as X}from"./js/constants.fxxegv78.js";import{B as De}from"./js/Phone.fyfej9j2.js";import{C as Oe}from"./js/Tabs.4r8l6r8o.js";import{B as Be}from"./js/Checkbox.fww0datn.js";import{B as He}from"./js/RadioToggle.h9afcyfi.js";import{S as Te}from"./js/Settings.cshbxeez.js";import"./js/helpers.fdpg7vgg.js";import"./js/cleanForSlug.ncex5ar8.js";import"./js/toString.g0kcp64r.js";import"./js/_baseTrim.ohbpllmu.js";import"./js/_stringToArray.mpukyt2g.js";import"./js/_baseSet.lqwmtpeb.js";import"./js/toNumber.lmnvj60l.js";/* empty css */import"./js/LicenseKeyBar.n8bctwdg.js";import"./js/ScrollTo.ntqtkazp.js";import"./js/params.k8e95b6q.js";import"./js/LogoGear.gxsz2m6s.js";import"./js/allowed.kmy7i7t2.js";import"./js/Row.o0q8mn7y.js";import"./js/Index.fywmukpg.js";import"./js/MaxCounts.dcyuh1uu.js";import"./js/Tags.oypvqhpf.js";import"./js/Ellipse.mhzh8c2h.js";import"./js/toFinite.cbuzojxe.js";import"./js/TruSeoScore.oj10wjxw.js";import"./js/Tooltip.jx4casvt.js";import"./js/Statistics.l9vto0az.js";import"./js/Plus.e1tf1dpc.js";import"./js/Eye.jbr17b06.js";import"./js/GoogleSearchPreview.o1cj6y7p.js";import"./js/HtmlTagsEditor.k0zlm7pg.js";import"./js/Editor.k6y9ox0q.js";import"./js/isEqual.gulmggc8.js";import"./js/_baseIsEqual.hstd7xe6.js";import"./js/_getTag.h6v5trhq.js";import"./js/_baseClone.nbrz7zdx.js";import"./js/_arrayEach.n8ou32wp.js";import"./js/UnfilteredHtml.erapx69a.js";import"./js/Slide.dop8j51m.js";import"./js/ProBadge.ab6jhp8x.js";import"./js/popup.by9shv56.js";import"./js/license.bcd45a0t.js";import"./js/upperFirst.mzmrvvb6.js";import"./js/Mobile.livanyta.js";import"./js/vue3-apexcharts.n0h2b4pa.js";import"./js/ConnectCta.fpg4jfxp.js";import"./js/GoogleSearchConsole.fwntzjjl.js";import"./js/Index.lvccx76i.js";import"./js/Blur.f3nyx4yc.js";import"./js/Graph.dm4w1ra9.js";import"./js/numbers.busvl4mt.js";import"./js/WpTable.qh17xjl6.js";import"./js/Table.jd7cflkg.js";import"./js/RequiredPlans.e7ak5151.js";import"./js/addons.foby19s7.js";import"./js/PostTypes.d1dx9z99.js";import"./js/External.lyui8nzf.js";import"./js/InternalOutbound.gq4sspcu.js";import"./js/Image.g0jgwvuo.js";import"./js/FacebookPreview.mpw3lfil.js";import"./js/Img.iuunu5c1.js";import"./js/Profile.t9aiulue.js";import"./js/ImageUploader.j9of4s9e.js";import"./js/TwitterPreview.nwjqs262.js";import"./js/Book.f6lktglp.js";import"./js/Build.mjaxpub4.js";import"./js/Redirects.ngf9mprt.js";import"./js/Index.liespbtj.js";import"./js/JsonValues.g6ep3o3z.js";import"./js/External.h5te4wqm.js";import"./js/escapeRegExp.cd9ew2v1.js";import"./js/Exclamation.f0pmbpi9.js";import"./js/Gear.dx9icaxx.js";import"./js/date.ecds9xx3.js";import"./js/DatePicker.odhs29tp.js";import"./js/Calendar.fbofsn3b.js";import"./js/pick.dywdbgah.js";import"./js/Card.n68aovsj.js";import"./js/Upsell.j5qfjr6p.js";import"./js/preload-helper.obzxyec2.js";import"./js/vue-router.mwhkjjlr.js";import"./js/Information.djrr3pec.js";import"./js/Checkmark.d5kkjaf5.js";const ee=()=>{let s=D().currentPost.postStatus;return H()&&(s=window.wp.data.select("core/editor").getCurrentPostAttribute("status")),s};class Re{constructor(){A(this,"previousPostSlug");A(this,"previousPostStatus");A(this,"updatingRedirects",!1);A(this,"update",Ce(()=>{const s=j(),c=ee();if(this.previousPostSlug===s&&this.previousPostStatus===c)return;this.previousPostSlug=s,this.previousPostStatus=c,this.updatingRedirects=!0,Se().getPostRedirects({}).finally(()=>{this.updatingRedirects=!1})},2500));const s=be(),c=ne(),t=s.addons.find(e=>e.sku==="aioseo-redirects");!c.aioseo.currentPost||!t||!t.isActive||c.aioseo.redirectsWatcherSet||(this.initWatchers(),c.aioseo.redirectsWatcherSet=!0)}initWatchers(){if(!he()&&H()){const s=window.setInterval(()=>{window.wp.data.select("core/editor").getCurrentPost().id&&(window.clearInterval(s),this.previousPostSlug=j(),this.previousPostStatus=ee(),this.watchBlockEditor())},50)}}watchBlockEditor(){window.wp.data.subscribe(()=>{this.updatingRedirects||this.update()})}}function $e(){var O,F,W,G,Y,Z,q,J;const n="all-in-one-seo-pack";if(!H()||!ae())return;const s=ne();if(s.aioseo.registerScoreTogglerSet)return;s.aioseo.registerScoreTogglerSet=!0;const c=window.wp.plugins.registerPlugin,t=((F=(O=window==null?void 0:window.wp)==null?void 0:O.editor)==null?void 0:F.PluginSidebarMoreMenuItem)||((G=(W=window.wp)==null?void 0:W.editPost)==null?void 0:G.PluginSidebarMoreMenuItem),e=((Z=(Y=window==null?void 0:window.wp)==null?void 0:Y.editor)==null?void 0:Z.PluginSidebar)||((J=(q=window.wp)==null?void 0:q.editPost)==null?void 0:J.PluginSidebar),d=window.wp.element.Fragment,r=window.wp.element.createElement,u=s.aioseo.user.capabilities.aioseo_page_analysis,x=D().currentPost.seo_score,y=o("N/A",n),C=function(T){return!u||!ye()?"score-disabled":80<T?"score-green":50<T?"score-orange":1<T?"score-red":"score-disabled"},b=r("svg",{width:24,height:24,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r("path",{d:"M11.9811 23.7877C18.5428 23.7877 23.8623 18.4684 23.8623 11.9066C23.8623 5.34477 18.5428 0.0253906 11.9811 0.0253906C5.41924 0.0253906 0.0998535 5.34477 0.0998535 11.9066C0.0998535 18.4684 5.41924 23.7877 11.9811 23.7877ZM10.0892 4.37389C9.92824 4.12859 9.6301 4.01391 9.35674 4.11048C9.04535 4.22048 8.74079 4.34987 8.44488 4.49781C8.18513 4.6277 8.05479 4.92439 8.11199 5.21372L8.31571 6.24468C8.36815 6.51003 8.25986 6.77935 8.0543 6.95044C7.72937 7.22084 7.42944 7.52654 7.16069 7.86489C6.99366 8.07521 6.73011 8.18668 6.46987 8.13409L5.45923 7.92995C5.17534 7.87259 4.88492 8.00678 4.75864 8.27251C4.68731 8.42264 4.61997 8.57591 4.55683 8.73224C4.49369 8.88855 4.43564 9.04574 4.38258 9.20355C4.28872 9.4829 4.40211 9.78694 4.64318 9.95035L5.50129 10.5321C5.72226 10.6819 5.8323 10.9505 5.80561 11.2198C5.76265 11.6532 5.76441 12.0857 5.80825 12.5112C5.83598 12.7804 5.72684 13.0494 5.5064 13.2L4.64996 13.785C4.40958 13.9493 4.29718 14.2535 4.3918 14.5324C4.49961 14.8502 4.62641 15.1609 4.7714 15.4629C4.89868 15.728 5.18943 15.8609 5.47301 15.8026L6.48336 15.5947C6.7434 15.5412 7.00735 15.6517 7.17499 15.8615C7.43997 16.193 7.73956 16.499 8.07114 16.7733C8.27723 16.9437 8.38649 17.2127 8.33498 17.4782L8.13487 18.5095C8.07868 18.7992 8.2102 19.0955 8.47059 19.2244C8.61773 19.2971 8.76793 19.3659 8.92112 19.4303C9.07434 19.4947 9.22835 19.5539 9.38302 19.6081C9.83552 19.7664 10.4688 19.1996 10.937 18.7805C11.1679 18.5738 11.3103 18.2813 11.3119 17.9682C11.3119 17.9665 11.3119 17.9648 11.3119 17.9632V16.2386C11.3119 16.2204 11.3125 16.2022 11.3139 16.1843C9.93098 15.847 8.90283 14.5775 8.90283 13.0629V11.2317C8.90283 11.0925 9.01342 10.9797 9.14984 10.9797H10.0064V9.17798C10.0064 8.92921 10.204 8.72754 10.4478 8.72754C10.6916 8.72754 10.8892 8.92921 10.8892 9.17798V10.9797H13.2067V9.17798C13.2067 8.92921 13.4043 8.72754 13.6481 8.72754C13.8919 8.72754 14.0895 8.92921 14.0895 9.17798V10.9797H14.9461C15.0825 10.9797 15.193 11.0925 15.193 11.2317V13.0629C15.193 14.6253 14.0989 15.927 12.6497 16.2135C12.6501 16.2218 12.6502 16.2302 12.6502 16.2386V17.9557C12.6502 18.275 12.7969 18.5727 13.0347 18.7801C13.5113 19.1958 14.1555 19.7576 14.6053 19.5987C14.9167 19.4887 15.2213 19.3593 15.5172 19.2113C15.7769 19.0814 15.9073 18.7848 15.8501 18.4954L15.6464 17.4644C15.5939 17.1991 15.7022 16.9298 15.9078 16.7587C16.2327 16.4883 16.5326 16.1826 16.8013 15.8442C16.9684 15.634 17.2319 15.5225 17.4922 15.575L18.5028 15.7792C18.7867 15.8366 19.0771 15.7024 19.2034 15.4366C19.2747 15.2865 19.3421 15.1333 19.4052 14.9769C19.4683 14.8206 19.5264 14.6634 19.5795 14.5056C19.6733 14.2263 19.5599 13.9222 19.3189 13.7588L18.4607 13.177C18.2398 13.0272 18.1297 12.7586 18.1564 12.4893C18.1994 12.056 18.1976 11.6234 18.1538 11.1979C18.1261 10.9287 18.2352 10.6598 18.4556 10.5092L19.3121 9.92409C19.5525 9.75989 19.6649 9.45566 19.5702 9.17674C19.4624 8.85899 19.3356 8.5482 19.1907 8.24628C19.0634 7.98121 18.7726 7.84823 18.489 7.90657L17.4787 8.11444C17.2187 8.16796 16.9547 8.05746 16.7871 7.84769C16.5221 7.51615 16.2225 7.2101 15.8909 6.93588C15.6848 6.76543 15.5756 6.49649 15.6271 6.23094L15.8272 5.19968C15.8834 4.90999 15.7519 4.61365 15.4914 4.48481C15.3443 4.412 15.1941 4.34331 15.0409 4.27886C14.8877 4.21444 14.7337 4.1552 14.579 4.10107C14.3053 4.00526 14.0073 4.12099 13.8472 4.36697L13.277 5.24259C13.1302 5.46808 12.867 5.58035 12.6031 5.55312C12.1784 5.5093 11.7545 5.51109 11.3375 5.55581C11.0737 5.58411 10.8101 5.47276 10.6625 5.24782L10.0892 4.37389Z",fillRule:"evenodd",clipRule:"evenodd",fill:"#005AE0"})),h=r("div",{id:"aioseo-post-settings-sidebar-button",className:C(x)},b,r("span",{id:"aioseo-post-score-disabled"},y),r("span",{id:"aioseo-post-score"},x),r("span",{},"/100")),w=s.aioseo.user;c("aioseo-post-settings-sidebar",{render:function(){return!w.capabilities.aioseo_page_analysis&&!w.capabilities.aioseo_page_general_settings&&!w.capabilities.aioseo_page_social_settings&&!w.capabilities.aioseo_page_schema_settings&&!w.capabilities.aioseo_page_advanced_settings?null:r(d,{},r(t,{target:"aioseo-post-settings-sidebar",icon:b},"AIOSEO"),r(e,{name:"aioseo-post-settings-sidebar",icon:h,title:"AIOSEO"},r("div",{id:"aioseo-post-settings-sidebar",className:"aioseo-post-settings-sidebar"},r("div",{id:"aioseo-post-settings-sidebar-vue",className:"aioseo-post-settings-sidebar-vue"},r("div",{className:"aioseo-loading-spinner dark",style:{left:0,right:0,margin:"30px auto"}},r("div",{className:"double-bounce1"},null),r("div",{className:"double-bounce2"},null))))))}})}let P;const Me=()=>{if(H()){const{subscribe:n,select:s}=window.wp.data,c=s("core/editor");n(()=>{const t=c==null?void 0:c.getEditedPostAttribute("featured_media");(!P||P!==t)&&(K.emit("updateFeaturedImage",t),P=t)})}if(we()||ve()){const n=window.MutationObserver||window.WebKitMutationObserver,s=new n(()=>{var e;const t=(e=document.getElementById("_thumbnail_id"))==null?void 0:e.value;(!P||P!==t)&&(K.emit("updateFeaturedImage",t),P=t)}),c=document.getElementById("postimagediv");c&&s.observe(c,{subtree:!0,childList:!0})}},Ne=()=>{Me()},Ue="all-in-one-seo-pack",ze={data(){return{strings:{areaServedDescription:o("The geographic area where a service or offered item is provided.",Ue)}}}},Fe={class:"aioseo-col col-xs-12 text-xs-left"},We={class:"field-description"};function Ge(n,s,c,t,e,d){const r=l("base-input");return _(),f("div",Fe,[i(r,{type:"text",size:"medium"}),a("span",We,m(e.strings.areaServedDescription),1)])}const Ye=S(ze,[["render",Ge],["__scopeId","data-v-f926573a"]]),L="all-in-one-seo-pack",Ze={data(){return{COUNTRY_LIST:Ae,strings:{streetAddress:o("Address Line 1",L),streetAddress2:o("Address Line 2",L),zipCode:o("Zip Code",L),city:o("City",L),state:o("State",L),country:o("Country",L)}}}},qe={class:"columns field-row"},Je={class:"aioseo-col col-xs-12 text-xs-left"},Ke={class:"field-description"},je={class:"aioseo-col col-xs-12 text-xs-left"},Qe={class:"field-description mt-8"},Xe={class:"aioseo-address-wrapper"},es={class:"aioseo-col col-xs-12 col-sm-12 col-md-4 text-xs-left"},ss={class:"field-description mt-8"},os={class:"aioseo-col col-xs-12 col-sm-12 col-md-4 text-xs-left"},ts={class:"field-description mt-8"},ns={class:"aioseo-col col-xs-12 col-sm-12 col-md-4 text-xs-left"},is={class:"field-description mt-8"},as={class:"aioseo-col col-xs-12 col-sm-6 text-xs-left"},rs={class:"field-description mt-8"};function cs(n,s,c,t,e,d){const r=l("base-input"),u=l("base-select");return _(),f("div",qe,[a("div",Je,[a("span",Ke,m(e.strings.streetAddress),1),i(r,{type:"text",size:"medium"})]),a("div",je,[a("span",Qe,m(e.strings.streetAddress2),1),i(r,{type:"text",size:"medium"})]),a("div",Xe,[a("div",es,[a("span",ss,m(e.strings.zipCode),1),i(r,{type:"text",size:"medium"})]),a("div",os,[a("span",ts,m(e.strings.city),1),i(r,{type:"text",size:"medium"})]),a("div",ns,[a("span",is,m(e.strings.state),1),i(r,{type:"text",size:"medium"})])]),a("div",as,[a("span",rs,m(e.strings.country),1),i(u,{size:"medium",options:e.COUNTRY_LIST},null,8,["options"])])])}const ls=S(Ze,[["render",cs],["__scopeId","data-v-720b3124"]]),R="all-in-one-seo-pack",ds={components:{BasePhone:De},data(){return{strings:{emailAddress:o("Email Address",R),phoneNumber:o("Phone Number",R),faxNumber:o("Fax Number",R)}}}},us={class:"aioseo-col col-xs-12 text-xs-left"},ps={class:"field-description"},ms={class:"aioseo-col col-xs-12 text-xs-left"},_s={class:"field-description mt-8"},gs={class:"aioseo-col col-xs-12 text-xs-left"},fs={class:"field-description mt-8"};function bs(n,s,c,t,e,d){const r=l("base-input"),u=l("base-phone");return _(),f("div",null,[a("div",us,[a("span",ps,m(e.strings.emailAddress),1),i(r,{type:"text",size:"medium"})]),a("div",ms,[a("span",_s,m(e.strings.phoneNumber),1),i(u)]),a("div",gs,[a("span",fs,m(e.strings.faxNumber),1),i(u)])])}const hs=S(ds,[["render",bs],["__scopeId","data-v-17c98d44"]]),se="all-in-one-seo-pack",Ss={data(){return{strings:{vatID:o("VAT ID:",se),taxID:o("Tax ID:",se)}}}},ws={class:"aioseo-col col-xs-12 text-xs-left"},vs={class:"field-description"},xs={class:"aioseo-col col-xs-12 text-xs-left"},ys={class:"field-description mt-8"};function Cs(n,s,c,t,e,d){const r=l("base-input");return _(),f("div",null,[a("div",ws,[a("span",vs,m(e.strings.vatID),1),i(r,{type:"text",size:"medium"})]),a("div",xs,[a("span",ys,m(e.strings.taxID),1),i(r,{type:"text",size:"medium"})])])}const Ps=S(Ss,[["render",Cs],["__scopeId","data-v-462e3315"]]),Ls="all-in-one-seo-pack",Es={data(){return{LOCAL_SEO_BUSINESS_TYPES:Ie,strings:{businessType:o("Type",Ls)}}}};function As(n,s,c,t,e,d){const r=l("base-select");return _(),f("div",null,[i(r,{size:"large",options:e.LOCAL_SEO_BUSINESS_TYPES},null,8,["options"])])}const Is=S(Es,[["render",As]]),Vs={};function ks(n,s){return _(),f("div")}const Ds=S(Vs,[["render",ks]]),Os={};function Bs(n,s){return _(),f("div")}const Hs=S(Os,[["render",Bs]]),oe="all-in-one-seo-pack",Ts={data(){return{strings:{name:o("name",oe),nameDesc:o("Your name or company name.",oe)}}}},Rs={class:"aioseo-col col-xs-12 text-xs-left"},$s={class:"field-description"};function Ms(n,s,c,t,e,d){const r=l("base-input");return _(),f("div",Rs,[i(r,{type:"text",size:"medium"}),a("span",$s,m(e.strings.nameDesc),1)])}const Ns=S(Ts,[["render",Ms],["__scopeId","data-v-1b48195c"]]),$="all-in-one-seo-pack",Us={data(){return{currencies:Ve,strings:{priceIndicator:o("Price Indicator",$),currenciesAccepted:o("Currencies Accepted",$),paymentMethods:o("Payment Methods Accepted",$)}}}},zs={class:"aioseo-col col-xs-12 text-xs-left"},Fs={class:"field-description"},Ws={class:"aioseo-col col-xs-12 text-xs-left"},Gs={class:"field-description mt-8"},Ys={class:"aioseo-col col-xs-12 text-xs-left"},Zs={class:"field-description mt-8"};function qs(n,s,c,t,e,d){const r=l("base-select"),u=l("base-input");return _(),f("div",null,[a("div",zs,[a("span",Fs,m(e.strings.priceIndicator),1),i(r,{size:"medium",options:e.currencies},null,8,["options"])]),a("div",Ws,[a("span",Gs,m(e.strings.currenciesAccepted),1),i(r,{size:"medium",label:"currenciesAccepted","track-by":"value",class:"aioseo-multiselect",options:e.currencies,multiple:""},null,8,["options"])]),a("div",Ys,[a("span",Zs,m(e.strings.paymentMethods),1),i(u,{type:"text",size:"medium"})])])}const Js=S(Us,[["render",qs],["__scopeId","data-v-e89dcce9"]]),v="all-in-one-seo-pack",Ks={components:{CoreSettingsRow:re,LocalBusinessAreaServed:Ye,LocalBusinessBusinessAddress:ls,LocalBusinessBusinessContact:hs,LocalBusinessBusinessIds:Ps,LocalBusinessBusinessType:Is,LocalBusinessImage:Ds,LocalBusinessMap:Hs,LocalBusinessName:Ns,LocalBusinessPaymentInfo:Js},data(){return{strings:{pageName:o("Business Info",v),name:o("Name",v),businessType:o("Type",v),image:o("Image",v),urls:o("URLs",v),websiteDesc:o("Website URL",v),aboutDesc:o("About Page URL",v),contactDesc:o("Contact Page URL",v),businessAddress:o("Address",v),businessContact:o("Contact Info",v),businessIDs:o("IDs",v),paymentInfo:o("Payment Info",v),areaServed:o("Area Served",v),map:o("Map",v)}}}},js={class:"aioseo-tab-content aioseo-localseo-info"};function Qs(n,s,c,t,e,d){const r=l("local-business-name"),u=l("core-settings-row"),E=l("local-business-business-type"),x=l("local-business-image"),y=l("local-business-business-address"),C=l("local-business-map"),b=l("local-business-business-contact"),h=l("local-business-business-ids"),w=l("local-business-payment-info"),O=l("local-business-area-served");return _(),f("div",js,[i(u,{name:e.strings.name,class:"info-name-row",align:""},{content:g(()=>[i(r)]),_:1},8,["name"]),i(u,{name:e.strings.businessType,class:"info-business-type",align:""},{content:g(()=>[i(E)]),_:1},8,["name"]),i(u,{class:"info-business-image",name:e.strings.image,align:""},{content:g(()=>[i(x)]),_:1},8,["name"]),i(u,{name:e.strings.businessAddress,class:"info-businessaddress-row",align:""},{content:g(()=>[i(y)]),_:1},8,["name"]),i(u,{name:e.strings.map,align:""},{content:g(()=>[i(C)]),_:1},8,["name"]),i(u,{name:e.strings.businessContact,class:"info-businesscontact-row",align:""},{content:g(()=>[i(b)]),_:1},8,["name"]),i(u,{name:e.strings.businessIDs,class:"info-businessids-row",align:""},{content:g(()=>[i(h)]),_:1},8,["name"]),i(u,{name:e.strings.paymentInfo,class:"info-paymentinfo-row",align:""},{content:g(()=>[i(w)]),_:1},8,["name"]),i(u,{name:e.strings.areaServed,class:"info-area-row",align:""},{content:g(()=>[i(O)]),_:1},8,["name"])])}const Xs=S(Ks,[["render",Qs]]),p="all-in-one-seo-pack",eo={setup(){return{postEditorStore:D(),GLOBAL_STRINGS:ke,HOURS_12H_FORMAT:Q,HOURS_24H_FORMAT:X}},components:{BaseCheckbox:Be,BaseRadioToggle:He,CoreSettingsRow:re},data(){return{selectTimezone:[{value:"none",label:o("Select your timezone",p)}],strings:{pageName:o("Opening Hours",p),useDefaults:o("Use Defaults",p),useDefaultsDesc:o("Will default opening hours set globally",p),showOpeningHours:o("Show Opening Hours",p),labels:o("Labels",p),closedLabel:o("Closed",p),closedLabelDesc:o("Displayed when the business is closed.",p),closed:o("Closed",p),settings:o("Settings",p),open24h:o("Open 24h",p),open24Label:o("Open 24h",p),open24LabelDesc:o("Displayed when the business is open all day long.",p),alwaysOpen:o("Open 24/7",p),use24hFormat:o("Use 24h format",p),twoSets:o("I have two sets of opening hours per day",p),timezone:o("Timezone",p),hours:o("Hours",p)},weekdays:{monday:o("Monday",p),tuesday:o("Tuesday",p),wednesday:o("Wednesday",p),thursday:o("Thursday",p),friday:o("Friday",p),saturday:o("Saturday",p),sunday:o("Sunday",p)}}},computed:{toggled:function(){return!0},unToggled:function(){return!1},closedLabel:{get(){return this.postEditorStore.currentPost.local_seo.openingHours.closedLabel},set(n){this.postEditorStore.currentPost.local_seo.openingHours.closedLabel=n}}},methods:{getSelectOptions(n){return this.postEditorStore.currentPost.local_seo.openingHours.use24hFormat?X.find(s=>s.value===n):Q.find(s=>s.value===n)},saveDay(n,s,c){this.postEditorStore.currentPost.local_seo.openingHours.days[n][s]=c},getWeekDay(n){return this.postEditorStore.currentPost.local_seo.openingHours.days[n]}}},so={class:"aioseo-tab-content aioseo-localseo-opening"},oo={class:"aioseo-col col-xs-12 text-xs-left"},to={key:0},no={class:"aioseo-col col-xs-12 text-xs-left"},io={class:"aioseo-col col-xs-12 text-xs-left"},ao={class:"field-description"},ro={class:"field-description mt-10"},co={class:"aioseo-col col-xs-12 text-xs-left"},lo={class:"field-description mt-8"},uo={class:"field-description mt-10"},po={class:"aioseo-col col-xs-12 text-xs-left"},mo={class:"aioseo-col col-xs-12 text-xs-left"},_o={class:"aioseo-col col-xs-12 text-xs-left"},go={class:"aioseo-col-day text-xs-left"},fo={class:"aioseo-col-hours text-xs-left"},bo=a("span",{class:"separator"},"-",-1),ho={class:"aioseo-col-alwaysopen text-xs-left"};function So(n,s,c,t,e,d){const r=l("base-radio-toggle"),u=l("core-settings-row"),E=l("base-input"),x=l("base-toggle"),y=l("base-select"),C=l("base-checkbox");return _(),f("div",so,[i(u,{name:e.strings.useDefaults,align:""},{content:g(()=>[a("div",oo,[i(r,{name:"useDefaults",modelValue:t.postEditorStore.currentPost.local_seo.openingHours.useDefaults,"onUpdate:modelValue":s[0]||(s[0]=b=>t.postEditorStore.currentPost.local_seo.openingHours.useDefaults=b),options:[{label:t.GLOBAL_STRINGS.no,value:!1},{label:t.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])])]),_:1},8,["name"]),t.postEditorStore.currentPost.local_seo.openingHours.useDefaults?V("",!0):(_(),f("div",to,[i(u,{name:e.strings.showOpeningHours,class:"info-openinghours-row",align:""},{content:g(()=>[a("div",no,[i(r,{name:"openingHours",modelValue:t.postEditorStore.currentPost.local_seo.openingHours.show,"onUpdate:modelValue":s[1]||(s[1]=b=>t.postEditorStore.currentPost.local_seo.openingHours.show=b),options:[{label:t.GLOBAL_STRINGS.no,value:!1},{label:t.GLOBAL_STRINGS.yes,value:!0}]},null,8,["modelValue","options"])])]),_:1},8,["name"]),t.postEditorStore.currentPost.local_seo.openingHours.show?(_(),k(u,{key:0,name:e.strings.labels,class:"info-labels-row",align:""},{content:g(()=>[a("div",io,[a("span",ao,m(e.strings.closedLabel),1),i(E,{type:"text",size:"medium",modelValue:t.postEditorStore.currentPost.local_seo.openingHours.labels.closed,"onUpdate:modelValue":s[2]||(s[2]=b=>t.postEditorStore.currentPost.local_seo.openingHours.labels.closed=b)},null,8,["modelValue"]),a("span",ro,m(e.strings.closedLabelDesc),1)]),a("div",co,[a("span",lo,m(e.strings.open24Label),1),i(E,{size:"medium",modelValue:t.postEditorStore.currentPost.local_seo.openingHours.labels.alwaysOpen,"onUpdate:modelValue":s[3]||(s[3]=b=>t.postEditorStore.currentPost.local_seo.openingHours.labels.alwaysOpen=b)},null,8,["modelValue"]),a("span",uo,m(e.strings.open24LabelDesc),1)])]),_:1},8,["name"])):V("",!0),t.postEditorStore.currentPost.local_seo.openingHours.show?(_(),k(u,{key:1,name:e.strings.settings,class:"info-settings-row",align:""},{content:g(()=>[a("div",po,[i(x,{modelValue:t.postEditorStore.currentPost.local_seo.openingHours.alwaysOpen,"onUpdate:modelValue":s[4]||(s[4]=b=>t.postEditorStore.currentPost.local_seo.openingHours.alwaysOpen=b)},{default:g(()=>[B(m(e.strings.alwaysOpen),1)]),_:1},8,["modelValue"])]),a("div",mo,[i(x,{modelValue:t.postEditorStore.currentPost.local_seo.openingHours.use24hFormat,"onUpdate:modelValue":s[5]||(s[5]=b=>t.postEditorStore.currentPost.local_seo.openingHours.use24hFormat=b)},{default:g(()=>[B(m(e.strings.use24hFormat),1)]),_:1},8,["modelValue"])])]),_:1},8,["name"])):V("",!0),t.postEditorStore.currentPost.local_seo.openingHours.show&&!t.postEditorStore.currentPost.local_seo.openingHours.alwaysOpen?(_(),k(u,{key:2,name:e.strings.hours,class:"info-hours-row",align:""},{content:g(()=>[a("div",_o,[(_(!0),f(de,null,ue(e.weekdays,(b,h)=>(_(),f("div",{class:"aioseo-col-flex text-xs-left",key:h},[a("div",go,m(b),1),a("div",fo,[i(y,{disabled:d.getWeekDay(h).open24h||d.getWeekDay(h).closed,size:"medium",options:t.postEditorStore.currentPost.local_seo.openingHours.use24hFormat?t.HOURS_24H_FORMAT:t.HOURS_12H_FORMAT,modelValue:d.getSelectOptions(d.getWeekDay(h).openTime),"onUpdate:modelValue":w=>d.saveDay(h,"openTime",w.value)},null,8,["disabled","options","modelValue","onUpdate:modelValue"]),bo,i(y,{disabled:d.getWeekDay(h).open24h||d.getWeekDay(h).closed,size:"medium",options:t.postEditorStore.currentPost.local_seo.openingHours.use24hFormat?t.HOURS_24H_FORMAT:t.HOURS_12H_FORMAT,modelValue:d.getSelectOptions(d.getWeekDay(h).closeTime),"onUpdate:modelValue":w=>d.saveDay(h,"closeTime",w.value)},null,8,["disabled","options","modelValue","onUpdate:modelValue"])]),a("div",ho,[i(C,{disabled:d.getWeekDay(h).closed,size:"medium",modelValue:d.getWeekDay(h).open24h,"onUpdate:modelValue":w=>d.getWeekDay(h).open24h=w},{default:g(()=>[B(m(e.strings.open24h),1)]),_:2},1032,["disabled","modelValue","onUpdate:modelValue"]),i(C,{size:"medium",class:"closed-label",modelValue:d.getWeekDay(h).closed,"onUpdate:modelValue":w=>d.getWeekDay(h).closed=w},{default:g(()=>[B(m(e.strings.closed),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])])]))),128))])]),_:1},8,["name"])):V("",!0)]))])}const wo=S(eo,[["render",So]]),vo={};function xo(n,s){return _(),f("div")}const yo=S(vo,[["render",xo]]),Co={};function Po(n,s){return _(),f("div")}const Lo=S(Co,[["render",Po]]),Eo={components:{LocalBusinessMapCustomMarker:yo,LocalBusinessMapDefaultStyle:Lo},data(){return{strings:{}}}},Ao={class:"aioseo-tab-content aioseo-localseo-maps"};function Io(n,s,c,t,e,d){const r=l("local-business-map-default-style"),u=l("local-business-map-custom-marker");return _(),f("div",Ao,[i(r),i(u)])}const Vo=S(Eo,[["render",Io]]),M="all-in-one-seo-pack",ko={setup(){return{postEditorStore:D()}},components:{BusinessInfo:Xs,CoreMainTabs:Oe,OpeningHours:wo,Maps:Vo,SvgSettings:Te},data(){return{tab:"business-info",tabs:[{slug:"business-info",icon:"svg-settings",name:o("Business Info",M)},{slug:"opening-hours",icon:"svg-settings",name:o("Opening Hours",M)},{slug:"maps",icon:"svg-settings",name:o("Maps",M)}]}},watch:{"postEditorStore.currentPost":{deep:!0,handler(){Ee(this.postEditorStore.savePostState,250)}}},methods:{processChangeTab(n){this.tab=n}}},Do={class:"aioseo-app aioseo-post-settings"};function Oo(n,s,c,t,e,d){const r=l("core-main-tabs");return _(),f("div",Do,[i(r,{tabs:e.tabs,showSaveButton:!1,active:e.tab,internal:"",disableMobile:"",onChanged:s[0]||(s[0]=u=>d.processChangeTab(u))},null,8,["tabs","active"]),i(me,{name:"route-fade",mode:"out-in"},{default:g(()=>[(_(),k(pe(e.tab)))]),_:1})])}const Bo=S(ko,[["render",Oo]]),Ho={setup(){return{postEditorStore:D()}},components:{"main-view":Bo}};function To(n,s,c,t,e,d){const r=l("main-view");return _(),f("div",null,[t.postEditorStore.currentPost.id?(_(),k(r,{key:0})):V("",!0)])}const Ro=S(Ho,[["render",To]]);Ne();const z=n=>(n=_e(n),n=ge(n),n=fe(n),xe(n),new Re,$e(),window.addEventListener("load",()=>Le()),n);let I;const te=()=>{I&&I.unmount(),I=N({name:"Standalone/PostSettings/Sidebar",data(){return{tableContext:"post",screenContext:"sidebar"}},render:()=>U(ie)}),window.aioseo.headlineAnalyzerSidebarApp&&window.aioseo.headlineAnalyzerSidebarApp.unmount(),z(I).mount("#aioseo-post-settings-sidebar-vue"),window.aioseo.postSettingsSidebarApp=I};if(window.aioseo.currentPost){const n=window.aioseo.currentPost.context;document.querySelector(`#aioseo-${n}-settings-metabox`)&&ae()&&(!window.wp.blockEditor&&window.wp.blocks&&window.wp.oldEditor&&(window.wp.blockEditor=window.wp.editor),z(N({name:"Standalone/PostSettings/Metabox",data(){return{tableContext:n,screenContext:"metabox"}},render:()=>U(ie)})).mount(`#aioseo-${n}-settings-metabox`),n==="post"&&(document.getElementById("aioseo-post-settings-sidebar-vue")?te():(Pe("#aioseo-post-settings-sidebar-vue","aioseoSidebarVisible"),document.addEventListener("animationstart",function(t){t.animationName==="aioseoSidebarVisible"&&te()},{passive:!0}))))}window.aioseo.currentPost&&window.aioseo.localBusiness&&document.getElementById("aioseo-location-settings-metabox")&&z(N({name:"Standalone/LocalSeo/Metabox",data(){return{screenContext:"metabox"}},render:()=>U(Ro)})).mount("#aioseo-location-settings-metabox");