acf-datastore.asset.php
3 months ago
acf-datastore.js
3 months ago
acf-datastore.js.map
3 months ago
acf-datastore.min.asset.php
3 months ago
acf-datastore.min.js
3 months ago
acf-field-bindings.asset.php
3 months ago
acf-field-bindings.js
3 months ago
acf-field-bindings.js.map
3 months ago
acf-field-bindings.min.asset.php
3 months ago
acf-field-bindings.min.js
3 months ago
acf-pro-blocks.asset.php
1 month ago
acf-pro-blocks.js
1 month ago
acf-pro-blocks.js.map
1 month ago
acf-pro-blocks.min.asset.php
1 month ago
acf-pro-blocks.min.js
1 month ago
acf-pro-field-group.asset.php
11 months ago
acf-pro-field-group.js
11 months ago
acf-pro-field-group.js.map
9 months ago
acf-pro-field-group.min.asset.php
9 months ago
acf-pro-field-group.min.js
9 months ago
acf-pro-input.asset.php
2 months ago
acf-pro-input.js
2 months ago
acf-pro-input.js.map
2 months ago
acf-pro-input.min.asset.php
2 months ago
acf-pro-input.min.js
2 months ago
acf-pro-ui-options-page.asset.php
9 months ago
acf-pro-ui-options-page.js
9 months ago
acf-pro-ui-options-page.js.map
9 months ago
acf-pro-ui-options-page.min.asset.php
9 months ago
acf-pro-ui-options-page.min.js
9 months ago
index.php
1 year ago
acf-field-bindings.min.js
1 lines
| 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("SCF: wp.blocks.registerBlockBindingsSource is unavailable; SCF block bindings will not be registered. Requires WordPress 6.7+.")})(); |