PATH:
home
/
lab2454c
/
biocei.com
/
wp-includes
/
js
/
dist
/
script-modules
/
block-editor
/
utils
import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store});function o(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let o=5,i=2400,r=o;const l=window.getComputedStyle(e);let c=parseFloat(l.paddingLeft)||0,s=parseFloat(l.paddingRight)||0;const a=document.createRange();a.selectNodeContents(e);let d=e;const g=e.parentElement;if(g){const e=window.getComputedStyle(g);"flex"===e?.display&&(d=g,c+=parseFloat(e.paddingLeft)||0,s+=parseFloat(e.paddingRight)||0)}let p=d.clientHeight;for(;o<=i;){const l=Math.floor((o+i)/2);t(l);const g=a.getBoundingClientRect().width,f=e.scrollWidth<=d.clientWidth&&g<=d.clientWidth-c-s,h=n||e.scrollHeight<=d.clientHeight||e.scrollHeight<=p;d.clientHeight>p&&(p=d.clientHeight),f&&h?(r=l,o=l+1):i=l-1}return a.detach(),r}(e,t);return t(n),n}(0,n.store)("core/fit-text",{callbacks:{init(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)(),i=e=>{t.style.fontSize=0===e?"":`${e}px`};if(e.fontSize=o(t,i),window.ResizeObserver&&t.parentElement){const n=new window.ResizeObserver((()=>{e.fontSize=o(t,i)}));return n.observe(t.parentElement),n.observe(t),()=>{n&&n.disconnect()}}}}});
[-] fit-text-frontend.min.js
[edit]
[-] fit-text-frontend.js
[edit]
[+]
..