This commit is contained in:
zbatte committed 2026-07-02 15:54:39 -06:00
commit 9883323161
17470 files changed
+4470592

No files matched your search

@@ -0,0 +1 @@
(()=>{"use strict";const e={context:{postId:0,postType:""},fields:{},values:{},savedValues:{},nameToKey:{},fieldGroups:[],initialized:!1,syncing:!1},t=e=>null===e||"object"!=typeof e?e:JSON.parse(JSON.stringify(e)),n=(e,t,i)=>{if(0===t.length)return i;const s=t[0],a=e??{},r=Array.isArray(a)?[...a]:{...a};return r[s]=n(r[s],t.slice(1),i),r},i=(e,t)=>{if(t)return e.fields[t]?t:e.nameToKey[t]},s=(s=e,a)=>{switch(a.type){case"INITIALIZE_STORE":{const e={},n=a.fields??{};for(const t of Object.keys(n)){const i=n[t];i.name&&(e[i.name]=t)}return{...s,context:a.context??s.context,fields:n,values:a.values??{},savedValues:t(a.values??{}),nameToKey:e,fieldGroups:a.fieldGroups??[],initialized:!0}}case"REGISTER_FIELD_GROUP":{const e=a.fields??{},n={...s.fields,...e},i={};for(const e of Object.keys(n)){const t=n[e];t.name&&(i[t.name]=e)}const r=a.values??{},o={...s.values},l={...s.savedValues};for(const e of Object.keys(r))e in o||(o[e]=r[e]),e in l||(l[e]=t(r[e]));const c=new Set(s.fieldGroups.map(e=>e.key)),f=(a.fieldGroups??[]).filter(e=>!c.has(e.key)),u=0===s.context.postId&&a.context?a.context:s.context;return{...s,context:u,fields:n,values:o,savedValues:l,nameToKey:i,fieldGroups:[...s.fieldGroups,...f],initialized:!0}}case"SET_FIELD_VALUE":{const e=i(s,a.fieldKey);return e?{...s,values:{...s.values,[e]:a.value}}:s}case"SET_VALUES":{const e={};for(const t of Object.keys(a.values)){const n=i(s,t);n&&(e[n]=a.values[t])}return{...s,values:{...s.values,...e}}}case"SET_SUB_FIELD_VALUE":{const e=i(s,a.parentKey);if(!e)return s;const t=s.values[e]??{},r=n(t,a.path,a.value);return{...s,values:{...s.values,[e]:r}}}case"ADD_REPEATER_ROW":{const e=i(s,a.fieldKey);if(!e)return s;let t=s.values[e];Array.isArray(t)||(t=[]);const n=[...t],r=a.rowData??{},o=a.index??n.length,l=Math.max(0,Math.min(o,n.length));return n.splice(l,0,r),{...s,values:{...s.values,[e]:n}}}case"REMOVE_REPEATER_ROW":{const e=i(s,a.fieldKey);if(!e)return s;const t=s.values[e];if(!Array.isArray(t))return s;if(a.rowIndex<0||a.rowIndex>=t.length)return s;const n=[...t];return n.splice(a.rowIndex,1),{...s,values:{...s.values,[e]:n}}}case"MOVE_REPEATER_ROW":{const e=i(s,a.fieldKey);if(!e)return s;const t=s.values[e];if(!Array.isArray(t))return s;if(a.fromIndex<0||a.fromIndex>=t.length||a.toIndex<0||a.toIndex>=t.length)return s;const n=[...t],[r]=n.splice(a.fromIndex,1);return n.splice(a.toIndex,0,r),{...s,values:{...s.values,[e]:n}}}case"MARK_AS_SAVED":return{...s,savedValues:t(s.values)};case"SET_SYNCING":return{...s,syncing:a.isSyncing};default:return s}},a={getFieldValue:(e,t)=>{const n=i(e,t);return n?e.values[n]:void 0},getFieldValueByKey:(e,t)=>e.values[t],getFieldValueByName:(e,t)=>{const n=e.nameToKey[t];return n?e.values[n]:void 0},getAllValues:e=>e.values,getAllValuesByName:e=>{const t={};for(const n of Object.keys(e.nameToKey)){const i=e.nameToKey[n];i in e.values&&(t[n]=e.values[i])}return t},getChangedValues:e=>{const t={};for(const n of Object.keys(e.values))JSON.stringify(e.values[n])!==JSON.stringify(e.savedValues[n])&&(t[n]=e.values[n]);return t},getField:(e,t)=>{const n=i(e,t);return n?e.fields[n]:void 0},getFields:e=>e.fields,getFieldsByGroup:(e,t)=>{const n={};for(const i of Object.keys(e.fields))e.fields[i].fieldGroupKey===t&&(n[i]=e.fields[i]);return n},getFieldKeyByName:(e,t)=>e.nameToKey[t],getSubFieldValue:(e,t,...n)=>{const s=i(e,t);if(!s)return;const a=e.values[s];return void 0===a?void 0:((e,t)=>{let n=e;for(const e of t){if(null==n)return;n=n[e]}return n})(a,n)},isInitialized:e=>e.initialized,isSyncing:e=>e.syncing,hasChanges:e=>JSON.stringify(e.values)!==JSON.stringify(e.savedValues),isDirty:(e,t)=>{const n=i(e,t);return!!n&&JSON.stringify(e.values[n])!==JSON.stringify(e.savedValues[n])},getContext:e=>e.context,getFieldGroups:e=>e.fieldGroups},r={initializeStore:e=>({type:"INITIALIZE_STORE",context:e.context,fields:e.fields,values:e.values,fieldGroups:e.fieldGroups}),registerFieldGroup:e=>({type:"REGISTER_FIELD_GROUP",context:e.context,fields:e.fields,values:e.values,fieldGroups:e.fieldGroups}),setFieldValue:(e,t)=>({type:"SET_FIELD_VALUE",fieldKey:e,value:t}),setValues:e=>({type:"SET_VALUES",values:e}),setSubFieldValue:(e,...t)=>{const n=t.pop();return{type:"SET_SUB_FIELD_VALUE",parentKey:e,path:t,value:n}},addRepeaterRow:(e,t,n)=>({type:"ADD_REPEATER_ROW",fieldKey:e,rowData:t,index:n}),removeRepeaterRow:(e,t)=>({type:"REMOVE_REPEATER_ROW",fieldKey:e,rowIndex:t}),moveRepeaterRow:(e,t,n)=>({type:"MOVE_REPEATER_ROW",fieldKey:e,fromIndex:t,toIndex:n}),markAsSaved:()=>({type:"MARK_AS_SAVED"}),setSyncing:e=>({type:"SET_SYNCING",isSyncing:e})},o="acf/fields";if(window.wp?.data?.createReduxStore){const e=wp.data.createReduxStore(o,{reducer:s,selectors:a,actions:r});wp.data.register(e)}const l=["repeater","group","flexible_content","clone"],c=e=>l.includes(e),f=new Set(["post_object","page_link","relationship","taxonomy","user"]),u=(e,t)=>{const n=e.get("type");if(!f.has(n))return[];const i=(e=>null==e||""===e||!1===e?[]:Array.isArray(e)?e.Line truncated
@@ -0,0 +1 @@
(()=>{"use strict";const e="acf/fields",s=e=>!1!==e.supportsBindings&&!1!==e.allowInBindings,n=e=>{const s=typeof e;return"string"===s||"number"===s||"boolean"===s},i=e=>null==e?null:n(e)?String(e):Array.isArray(e)&&e.every(n)?e.join(", "):null;window.wp?.blocks?.registerBlockBindingsSource?wp.blocks.registerBlockBindingsSource({name:"acf/field",usesContext:["postType","postId"],getValues({select:s,bindings:n}){const t=s(e);if(!t.isInitialized())return{};const l={};for(const e of Object.keys(n)){const s=n[e].args?.key;if(!s)continue;const r=i(t.getFieldValue(s));null!==r&&(l[e]=r)}return l},setValues({select:i,dispatch:t,bindings:l}){const r=i(e);if(r.isInitialized())for(const i of Object.keys(l)){const o=l[i],c=o.args?.key;if(!c||void 0===o.newValue||!n(o.newValue))continue;const u=r.getField(c);u&&s(u)&&t(e).setFieldValue(c,o.newValue)}},canUserEditValue({select:i,args:t}){if(!t?.key)return!1;const l=i(e);if(!l.isInitialized())return!1;const r=l.getField(t.key);if(!r||!s(r))return!1;const o=l.getFieldValue(t.key);return!(null!=o&&!n(o))},getFieldsList({select:n}){const i=n(e);if(!i.isInitialized())return[];const t=i.getFields(),l=[];for(const e of Object.keys(t)){const n=t[e];s(n)&&l.push({label:n.label,args:{key:n.key},type:"string"})}return l}}):console.warn("ACF: wp.blocks.registerBlockBindingsSource is unavailable; ACF block bindings will not be registered. Requires WordPress 6.7+.")})();
@@ -0,0 +1 @@
(()=>{var e={138(){jQuery,acf.jsxNameReplacements={"accent-height":"accentHeight",accentheight:"accentHeight","accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey","alignment-baseline":"alignmentBaseline",alignmentbaseline:"alignmentBaseline",allowedblocks:"allowedBlocks",allowfullscreen:"allowFullScreen",allowreorder:"allowReorder","arabic-form":"arabicForm",arabicform:"arabicForm",attributename:"attributeName",attributetype:"attributeType",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autoreverse:"autoReverse",autosave:"autoSave",basefrequency:"baseFrequency","baseline-shift":"baselineShift",baselineshift:"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode","cap-height":"capHeight",capheight:"capHeight",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className","clip-path":"clipPath","clip-rule":"clipRule",clippath:"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","color-interpolation":"colorInterpolation","color-interpolation-filters":"colorInterpolationFilters","color-profile":"colorProfile","color-rendering":"colorRendering",colorinterpolation:"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters",colorprofile:"colorProfile",colorrendering:"colorRendering",colspan:"colSpan",contenteditable:"contentEditable",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",diffuseconstant:"diffuseConstant",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback","dominant-baseline":"dominantBaseline",dominantbaseline:"dominantBaseline",edgemode:"edgeMode","enable-background":"enableBackground",enablebackground:"enableBackground",enctype:"encType",enterkeyhint:"enterKeyHint",externalresourcesrequired:"externalResourcesRequired","fill-opacity":"fillOpacity","fill-rule":"fillRule",fillopacity:"fillOpacity",fillrule:"fillRule",filterres:"filterRes",filterunits:"filterUnits","flood-color":"floodColor","flood-opacity":"floodOpacity",floodcolor:"floodColor",floodopacity:"floodOpacity","font-family":"fontFamily","font-size":"fontSize","font-size-adjust":"fontSizeAdjust","font-stretch":"fontStretch","font-style":"fontStyle","font-variant":"fontVariant","font-weight":"fontWeight",fontfamily:"fontFamily",fontsize:"fontSize",fontsizeadjust:"fontSizeAdjust",fontstretch:"fontStretch",fontstyle:"fontStyle",fontvariant:"fontVariant",fontweight:"fontWeight",for:"htmlFor",foreignobject:"foreignObject",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder","glyph-name":"glyphName","glyph-orientation-horizontal":"glyphOrientationHorizontal","glyph-orientation-vertical":"glyphOrientationVertical",glyphname:"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits","horiz-adv-x":"horizAdvX","horiz-origin-x":"horizOriginX",horizadvx:"horizAdvX",horizoriginx:"horizOriginX",hreflang:"hrefLang",htmlfor:"htmlFor","http-equiv":"httpEquiv",httpequiv:"httpEquiv","image-rendering":"imageRendering",imagerendering:"imageRendering",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keyparams:"keyParams",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",keytype:"keyType",lengthadjust:"lengthAdjust","letter-spacing":"letterSpacing",letterspacing:"letterSpacing","lighting-color":"lightingColor",lightingcolor:"lightingColor",limitingconeangle:"limitingConeAngle",marginheight:"marginHeight",marginwidth:"marginWidth","marker-end":"markerEnd","marker-mid":"markerMid","marker-start":"markerStart",markerend:"markerEnd",markerheight:"markerHeight",markermid:"markerMid",markerstart:"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",numoctaves:"numOctaves","overline-position":"overlinePosition","overline-thickness":"overlineThickness",overlineposition:"overlinePosition",overlinethickness:"overlineThickness","paint-order":"paintOrder",paintorder:"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",playsinline:"playsInline","pointer-events":"pointerEvents",pointerevents:"pointerLine truncated
@@ -0,0 +1 @@
(()=>{var e={734(){!function(e){var t=acf.FieldSetting.extend({type:"clone",name:"display",render:function(){var e=this.field.val();this.$fieldObject.attr("data-display",e)}});acf.registerFieldSetting(t);var a=acf.FieldSetting.extend({type:"clone",name:"prefix_label",render:function(){var e="";this.field.val()&&(e=this.fieldObject.prop("label")+" "),this.$("code").html(e+"%field_label%")}});acf.registerFieldSetting(a);var l=acf.FieldSetting.extend({type:"clone",name:"prefix_name",render:function(){var e="";this.field.val()&&(e=this.fieldObject.prop("name")+"_"),this.$("code").html(e+"%field_name%")}});acf.registerFieldSetting(l),new acf.Model({filters:{select2_args:"select2Args"},select2Args:function(e,t,a,l,i){return"acf/fields/clone/query"==a.ajaxAction&&(e.closeOnSelect=!1,i.data.ajaxData=this.ajaxData),e},ajaxData:function(t){return t.fields={},acf.getFieldObjects().map(function(e){t.fields[e.prop("key")]={key:e.prop("key"),type:e.prop("type"),label:e.prop("label"),ancestors:e.getParents().length}}),t.title=e("#title").val(),t}})}(jQuery)},368(){var e,t;e=jQuery,t=acf.FieldSetting.extend({type:"flexible_content",name:"fc_layout",events:{"blur .layout-label":"onChangeLabel","blur .layout-name":"onChangeName","click .add-layout":"onClickAdd","click .acf-field-settings-fc_head":"onClickEdit","click .acf-field-setting-fc-duplicate":"onClickDuplicate","click .acf-field-setting-fc-delete":"onClickDelete","changed:layoutLabel":"updateLayoutTitles","changed:layoutName":"updateLayoutTitles"},$input:function(t){return e("#"+this.getInputId()+"-"+t)},$list:function(){return this.$(".acf-field-list:first")},getInputId:function(){return this.fieldObject.getInputId()+"-layouts-"+this.field.get("id")},getFields:function(){return acf.getFieldObjects({parent:this.$el})},getChildren:function(){return acf.getFieldObjects({list:this.$list()})},initialize:function(){var e=this.$el.parent();e.css("position","relative"),e.hasClass("ui-sortable")||e.sortable({items:"> .acf-field-setting-fc_layout",handle:".acf-fc_draggable",zIndex:9999,forceHelperSize:!0,forcePlaceholderSize:!0,scroll:!0,stop:this.proxy(function(e,t){this.fieldObject.save()})}),this.updateFieldLayouts(),this.updateLayoutTitles()},updateFieldLayouts:function(){this.getChildren().map(this.updateFieldLayout,this)},updateFieldLayout:function(e){e.prop("parent_layout",this.get("id"))},updateLayoutTitles:function(){const e=this.get("layoutLabel"),t=this.get("layoutName"),a=this.$el.find("> .acf-label .acf-fc-layout-label");e&&a.text(acf.decode(e));const l=this.$el.find("> .acf-label .acf-fc-layout-name span");t?(l.text(t),l.parent().css("display","")):l.parent().css("display","none")},onClickEdit:function(t){const a=e(t.target);a.hasClass("acf-btn")||a.hasClass("copyable")||a.parent().hasClass("acf-btn")||a.parent().hasClass("copyable")||(this.isOpen()?this.close():this.open())},isOpen:function(e){return this.$el.children(".acf-field-layout-settings").hasClass("open")},open:function(e,t){const a=e?e.children(".acf-field-settings-fc_head"):this.$el.children(".acf-field-settings-fc_head"),l=e?e.children(".acf-field-layout-settings"):this.$el.children(".acf-field-layout-settings"),i=e?e.find(".toggle-indicator").first():this.$el.find(".toggle-indicator").first();acf.doAction("show",l),t?l.slideDown({complete:function(){l.find(".layout-label").trigger("focus")}}):l.slideDown(),i.addClass("open"),i.hasClass("closed")&&i.removeClass("closed"),l.addClass("open"),a.addClass("open")},close:function(){const e=this.$el.children(".acf-field-settings-fc_head"),t=this.$el.children(".acf-field-layout-settings"),a=this.$el.find(".toggle-indicator").first();t.slideUp(),t.removeClass("open"),a.removeClass("open"),e.removeClass("open"),a.hasClass("closed")||a.addClass("closed"),acf.doAction("hide",t)},onChangeLabel:function(e,t){let a=t.val();const l=acf.strEscape(a);this.set("layoutLabel",l),this.$el.attr("data-layout-label",l);let i=this.$input("name");""==i.val()&&(acf.val(i,acf.strSanitize(a)),this.$el.find(".layout-name").trigger("blur"))},onChangeName:function(e,t){const a=acf.strSanitize(t.val(),!1);t.val(a),this.set("layoutName",a),this.$el.attr("data-layout-name",a)},onClickAdd:function(e,t){e.preventDefault();var a=this.get("id"),l=acf.uniqid("layout_");$layout=acf.duplicate({$el:this.$el,search:a,replace:l,after:function(e,t){var a=t.find(".acf-field-list:first");a.children(".acf-field-object").remove(),a.addClass("-empty"),t.attr("data-layout-label",""),t.attr("data-layout-name",""),t.find(".acf-fc-meta input").val(""),t.find("label.acf-fc-layout-label").html(acf.__("Layout"))}});var i=acf.getFieldSetting($layout);i.$input("key").val(l),this.isOpen()?i.$el.find(".layout-label").trigger("focus"):this.open(i.$el,!0),this.fieldObject.save()},onClickDuplicate:function(e,t){e.preventDefault();var a=this.get("id"),l=acf.uniqid("layout_");$layout=acf.duplicate({$el:this.$el,search:a,replace:l});var i=acf.getFieldObjects({parent:$layout});i.length&&(i.map(function(e){e.wipe(),e.iLine truncated
@@ -0,0 +1 @@
(()=>{var t={340(){!function(t){var e=acf.Field.extend({type:"flexible_content",wait:"",events:{'click [data-name="add-layout"]':"onClickAdd",'click [data-name="duplicate-layout"]':"onClickDuplicate",'click [data-name="collapse-layout"]':"onClickCollapse",'click [data-name="remove-layout"]':"onClickRemove",'click [data-name="more-layout-actions"]':"onClickMoreActions","click .acf-fc-expand-all":"onClickExpandAll","click .acf-fc-collapse-all":"onClickCollapseAll",showField:"onShow",unloadField:"onUnload",mouseover:"onHover"},$control:function(){return this.$(".acf-flexible-content:first")},$layoutsWrap:function(){return this.$(".acf-flexible-content:first > .values")},$layouts:function(){return this.$(".acf-flexible-content:first > .values > .layout")},$layout:function(t){return this.$(".acf-flexible-content:first > .values > .layout:eq("+t+")")},$clonesWrap:function(){return this.$(".acf-flexible-content:first > .clones")},$clones:function(){return this.$(".acf-flexible-content:first > .clones > .layout")},$clone:function(t){return this.$('.acf-flexible-content:first > .clones > .layout[data-layout="'+t+'"]')},$actions:function(){return this.$(".acf-actions:last")},$button:function(){return this.$(".acf-fc-top-actions:first .button, .acf-actions:last .button")},$popup:function(){return this.$(".tmpl-popup:last")},$moreLayoutActions:function(){return this.$(".tmpl-more-layout-actions:last")},getPopupHTML:function(){var e=this.$popup().html(),a=t(e),i=this;return a.find("[data-layout]").each(function(){var e=t(this),a=e.data("min")||0,n=e.data("max")||0,o=e.data("layout")||"",s=i.countLayouts(o);if(n&&s>=n)e.addClass("disabled");else if(a&&s<a){var l=a-s,r=acf.__("{required} {label} {identifier} required (min {min})"),c=acf._n("layout","layouts",l);r=(r=(r=(r=r.replace("{required}",l)).replace("{label}",o)).replace("{identifier}",c)).replace("{min}",a),e.append('<span class="badge" title="'+r+'">'+l+"</span>")}}),a.outerHTML()},getMoreLayoutActionsHTML:function(){return this.$moreLayoutActions().html()},getValue:function(){return this.$layouts().length},allowRemove:function(){var t=parseInt(this.get("min"));return!t||t<this.val()},allowAdd:function(){return!this.isFull()},isFull:function(){const t=parseInt(this.get("max"));return t&&this.countLayouts()>=t},addSortable:function(t){1!=this.get("max")&&this.$layoutsWrap().sortable({items:"> .layout",handle:"> .acf-fc-layout-actions-wrap .acf-fc-layout-handle",forceHelperSize:!0,zIndex:9999,forcePlaceholderSize:!0,scroll:!0,stop:function(e,a){t.render()},update:function(e,a){t.$input().trigger("change")}})},addCollapsed:function(){var e=s.load(this.get("key"));if(!e)return!1;this.$layouts().each(function(a){e.indexOf(a)>-1&&t(this).addClass("-collapsed")})},addUnscopedEvents:function(e){this.on("invalidField",".layout",function(a){e.onInvalidField(a,t(this))}),t(document).on("click focusin",function(a){t(a.target).closest(".acf-flexible-content .layout").length||e.setActiveLayout(t([]))})},initialize:function(){this.addUnscopedEvents(this),this.addCollapsed(),acf.disable(this.$clonesWrap(),this.cid),this.render()},render:function(){this.$layouts().each(function(e){t(this).find(".acf-fc-layout-order:first").html(e+1)});const e=this;this.$control().on("click focus","> .values > .layout",function(a){const i=t(a.target).closest(".layout");e.setActiveLayout(i)}),0==this.val()?this.$control().addClass("-empty"):this.$control().removeClass("-empty"),this.maybeDisableAddLayout()},maybeDisableAddLayout:function(){const e=this,a=this.isFull(),i=this.$control().data("button-label"),n=acf.__("Duplicate"),o=acf.__("Maximum rows reached ({max})").replace("{max}",this.get("max"));a?this.$button().addClass("disabled"):this.$button().removeClass("disabled"),this.$layouts().each(function(){const s=t(this),l=s.find('[data-name="add-layout"]:first'),r=s.find('[data-name="duplicate-layout"]:first'),c=s.data("max")||0,d=t(".acf-toggle-layout.enable");if(a?(l.addClass("disabled").attr("title",o),r.addClass("disabled").attr("title",o),d.addClass("disabled")):(l.removeClass("disabled").attr("title",i),r.removeClass("disabled").attr("title",n),d.removeClass("disabled")),c){const t=s.data("layout")||"";if(e.countLayouts(t)>=c){const e=acf.__("Maximum {label} {identifier} reached ({max})").replace("{label}",t).replace("{identifier}",acf._n("layout","layouts",c)).replace("{max}",c);r.addClass("disabled").attr("title",e),d.addClass("disabled")}}})},setActiveLayout:function(e){t(".layout").removeClass("active-layout"),e.length&&e.addClass("active-layout")},onShow:function(t,e,a){var i=acf.getFields({is:":visible",parent:this.$el});acf.doAction("show_fields",i)},countLayouts:function(e){return this.$layouts().filter(function(){const a=t(this);return(!e||a.data("layout")===e)&&"0"!==a.attr("data-enabled")}).length},countLayoutsByName:function(t){const e=t.data("max");if(!e)return!0;const a=t.data("layout")||"";if(this.countLayouts(a)>=e){let a=acf.__("This field has a limit of {max} {label} {Line truncated
@@ -0,0 +1 @@
(()=>{var e={805(){!function(e){const t=function(t){return void 0===t.element?t:t.children&&"None"===t.text?void 0:("acfOptionsPages"===t.text&&(t.text=acf.__("Options Pages")),e('<span class="acf-selection"></span>').data("element",t.element).html(acf.strEscape(t.text)))},a=function(t){if(void 0===t.element)return t;const a=e('<span class="acf-selection"></span>');return a.html(acf.strEscape(t.element.innerHTML)),"options"!==t.id&&"edit_posts"!==t.id||a.append('<span class="acf-select2-default-pill">'+acf.__("Default")+"</span>"),a.data("element",t.element),a};new acf.Model({id:"UIOptionsPageManager",wait:"ready",events:{"change .acf-options-page-parent_slug":"toggleMenuPositionDesc"},initialize:function(){"ui_options_page"===acf.get("screen")&&(acf.newSelect2(e("select.acf-options-page-parent_slug"),{field:!1,templateSelection:t,templateResult:t,dropdownCssClass:"field-type-select-results"}),acf.newSelect2(e("select.acf-options-page-capability"),{field:!1,templateSelection:a,templateResult:a}),acf.newSelect2(e("select.acf-options-page-data_storage"),{field:!1,templateSelection:a,templateResult:a}),this.toggleMenuPositionDesc())},toggleMenuPositionDesc:function(t,a){"none"===e("select.acf-options-page-parent_slug").val()?(e(".acf-menu-position-desc-child").hide(),e(".acf-menu-position-desc-parent").show()):(e(".acf-menu-position-desc-parent").hide(),e(".acf-menu-position-desc-child").show())}}),new acf.Model({id:"optionsPageModalManager",events:{"change .location-rule-value":"createOptionsPage"},createOptionsPage:function(a){const n=e(a.target);if("add_new_options_page"!==n.val())return;let o=!1;const s=function(a){o=acf.newPopup({title:a.data.title,content:a.data.content,width:"600px"}),o.$el.addClass("acf-create-options-page-popup");const n=o.$el.find("#acf_ui_options_page-page_title"),s=n.val();n.trigger("focus").val("").val(s),acf.newSelect2(e("#acf_ui_options_page-parent_slug"),{field:!1,templateSelection:t,templateResult:t,dropdownCssClass:"field-type-select-results"}),o.on("submit","form",c)},c=function(t){t.preventDefault(),acf.validateForm({form:e("#acf-create-options-page-form"),success:i,failure:l})},i=function(){const t=e("#acf-create-options-page-form").serializeArray(),a={action:"acf/create_options_page"};t.forEach(e=>{a[e.name]=e.value}),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:p})},l=function(t){const a=e("#acf-create-options-page-form"),n=a.find(".acf-field .acf-error-message");a.find(".acf-notice").first().remove(),n.each(function(){const t=e(this).closest(".acf-field").find(".acf-label:first");e(this).attr("class","acf-options-page-modal-error").appendTo(t)})},p=function(e){e.success&&e.data.menu_slug?(n.prepend('<option value="'+e.data.menu_slug+'">'+e.data.page_title+"</option>"),n.val(e.data.menu_slug),o.close()):!e.success&&e.data.error&&alert(e.data.error)};!function(){const t=e(".acf-headerbar-title-field").val(),a={action:"acf/create_options_page",acf_parent_page_choices:this.acf.data.optionPageParentOptions?this.acf.data.optionPageParentOptions:[]};t.length&&(a.field_group_title=t),e.ajax({url:acf.get("ajaxurl"),data:acf.prepareForAjax(a),type:"post",dataType:"json",success:s})}()}})}(jQuery)}},t={};function a(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,a),s.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";a(805)})()})();
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.