index.asset.php
1 month ago
index.js
1 month ago
index.js.LICENSE.txt
1 month ago
style-rtl.css
1 month ago
style.asset.php
1 month ago
style.css
1 month ago
index.js
2 lines
| 1 | /*! For license information please see index.js.LICENSE.txt */ |
| 2 | (()=>{"use strict";var e={94931:(e,r,o)=>{var t=o(51609),n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};r.Fragment=l,r.jsx=function(e,r,o){var t,l={},s=null,c=null;for(t in void 0!==o&&(s=""+o),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(c=r.ref),r)i.call(r,t)&&!d.hasOwnProperty(t)&&(l[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===l[t]&&(l[t]=r[t]);return{$$typeof:n,type:e,key:s,ref:c,props:l,_owner:a.current}}},39793:(e,r,o)=>{e.exports=o(94931)},51609:e=>{e.exports=window.React}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var l=r[t]={exports:{}};return e[t](l,l.exports,o),l.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};(()=>{o.r(t),o.d(t,{LayoutContext:()=>f,LayoutContextProvider:()=>w,WC_FOOTER_SLOT_NAME:()=>l,WC_HEADER_NAVIGATION_SLOT_NAME:()=>c,WC_HEADER_PAGE_TITLE_SLOT_NAME:()=>m,WC_HEADER_SLOT_NAME:()=>a,WooFooterItem:()=>i,WooHeaderItem:()=>s,WooHeaderNavigationItem:()=>u,WooHeaderPageTitle:()=>_,getLayoutContextValue:()=>y,useAdminSidebarWidth:()=>O,useExtendLayout:()=>x,useLayoutContext:()=>h});const e=window.wp.components,r=window.wc.components;var n=o(39793);const l="woocommerce_footer_item",i=({children:o,order:t=1})=>(0,n.jsx)(e.Fill,{name:l,children:e=>(0,r.createOrderedChildren)(o,t,e)});i.Slot=({fillProps:o})=>(0,n.jsx)(e.Slot,{name:l,fillProps:o,children:r.sortFillsByOrder});const a="woocommerce_header_item",d=e=>e&&e.length?`${a}/${e}`:a,s=({children:o,order:t=1,name:l=""})=>(0,n.jsx)(e.Fill,{name:d(l),children:e=>(0,r.createOrderedChildren)(o,t,e)});s.Slot=({fillProps:o,name:t=""})=>(0,n.jsx)(e.Slot,{name:d(t),fillProps:o,children:r.sortFillsByOrder});const c="woocommerce_header_navigation_item",u=({children:o,order:t=1})=>(0,n.jsx)(e.Fill,{name:c,children:e=>(0,r.createOrderedChildren)(o,t,e)});u.Slot=({fillProps:o})=>(0,n.jsx)(e.Slot,{name:c,fillProps:o,children:r.sortFillsByOrder});const m="woocommerce_header_page_title",_=({children:r})=>(0,n.jsx)(e.Fill,{name:m,children:r});_.Slot=({fillProps:r})=>(0,n.jsx)(e.Slot,{name:m,fillProps:r,children:e=>(0,n.jsx)(n.Fragment,{children:[...e].pop()})});const p=window.wp.element,f=(0,p.createContext)(void 0),y=(e=[])=>({layoutParts:[...e],extendLayout:r=>{const o=[...e,r];return{...y(o),layoutParts:o}},layoutString:e.join("/"),isDescendantOf:r=>e.includes(r)}),w=({children:e,value:r})=>(0,n.jsx)(f.Provider,{value:r,children:e}),h=()=>{const e=(0,p.useContext)(f);if(void 0===e)throw new Error("useLayoutContext must be used within a LayoutContextProvider");return e},x=e=>{const{extendLayout:r}=h();return(0,p.useMemo)(()=>r(e),[r,e])};function O(){const[e,r]=(0,p.useState)(0);return(0,p.useEffect)(()=>{const e=new ResizeObserver(e=>{r(e[0].contentRect.width)}),o=document.getElementById("adminmenu");return o&&e.observe(o),()=>{o&&e.unobserve(o)}},[]),e}})(),(window.wc=window.wc||{}).adminLayout=t})(); |