geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/breadcrumbs.js

1 line
4.8 KiB
JavaScript
Raw Normal View History

2024-02-01 17:24:18 +05:30
(()=>{var e,t={8010:(e,t,r)=>{"use strict";r.r(t);var o=r(9196);const i=window.wp.blocks,n=window.wc.wcSettings;var l,a,c,s,p,u,m,d,w,b;const g=(0,n.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),f=(g.pluginUrl,g.pluginUrl,g.buildPhase),v=(null===(l=n.STORE_PAGES.shop)||void 0===l||l.permalink,null===(a=n.STORE_PAGES.checkout)||void 0===a||a.id,null===(c=n.STORE_PAGES.checkout)||void 0===c||c.permalink,null===(s=n.STORE_PAGES.privacy)||void 0===s||s.permalink,null===(p=n.STORE_PAGES.privacy)||void 0===p||p.title,null===(u=n.STORE_PAGES.terms)||void 0===u||u.permalink,null===(m=n.STORE_PAGES.terms)||void 0===m||m.title,null===(d=n.STORE_PAGES.cart)||void 0===d||d.id,null===(w=n.STORE_PAGES.cart)||void 0===w||w.permalink,null!==(b=n.STORE_PAGES.myaccount)&&void 0!==b&&b.permalink?n.STORE_PAGES.myaccount.permalink:(0,n.getSetting)("wpLoginUrl","/wp-login.php"),(0,n.getSetting)("localPickupEnabled",!1),(0,n.getSetting)("countries",{})),h=(0,n.getSetting)("countryData",{});Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,v[e]||""]))),Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowBilling)).map((e=>[e,h[e].states||[]]))),Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,v[e]||""]))),Object.fromEntries(Object.keys(h).filter((e=>!0===h[e].allowShipping)).map((e=>[e,h[e].states||[]]))),Object.fromEntries(Object.keys(h).map((e=>[e,h[e].locale||[]])));var k=r(1984);const S=JSON.parse('{"name":"woocommerce/breadcrumbs","version":"1.0.0","title":"Store Breadcrumbs","description":"Enable customers to keep track of their location within the store and navigate back to parent pages.","category":"woocommerce","keywords":["WooCommerce"],"textdomain":"woocommerce","attributes":{"contentJustification":{"type":"string"},"fontSize":{"type":"string","default":"small"},"align":{"type":"string","default":"wide"}},"supports":{"align":["wide","full"],"color":{"background":false,"link":true},"html":false,"typography":{"fontSize":true,"lineHeight":true}},"apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),y=window.wp.blockEditor,E=window.wp.components;var O=r(5736);var _=r(444);const x=(0,o.createElement)(_.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(_.Rect,{x:"4",y:"10.5",width:"6",height:"3",rx:"1.5",fill:"currentColor"}),(0,o.createElement)(_.Rect,{x:"12",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}),(0,o.createElement)(_.Rect,{x:"17",y:"10.5",width:"3",height:"3",rx:"1.5",fill:"currentColor"}));r(2433);const P={...S.supports,...f>1&&{typography:{...S.supports.typography,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};(0,i.registerBlockType)(S,{icon:{src:(0,o.createElement)(k.Z,{icon:x,className:"wc-block-editor-components-block-icon"})},attributes:{...S.attributes},supports:{...P},edit:()=>{const e=(0,y.useBlockProps)({className:"woocommerce wc-block-breadcrumbs"});return(0,o.createElement)("div",{...e},(0,o.createElement)(E.Disabled,null,(0,o.createElement)("a",{href:"/"},(0,O.__)("Breadcrumbs","woocommerce")),(0,O.__)(" / Navigation / Path","woocommerce")))},save:()=>null})},2433:()=>{},9196:e=>{"use strict";e.exports=window.React},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},444:e=>{"use strict";e.exports=window.wp.primitives}},r={};function o(e){var i=r[e];if(void 0!==i)return i.exports;var n=r[e]={exports:{}};return t[e].call(n.exports,n,n.exports,o),n.exports}o.m=t,e=[],o.O=(t,r,i,n)=>{if(!r){var l=1/0;for(p=0;p<e.length;p++){for(var[r,i,n]=e[p],a=!0,c=0;c<r.length;c++)(!1&n||l>=n)&&Object.keys(o.O).every((e=>o.O[e](r[c])))?r.splice(c--,1):(a=!1,n<l&&(l=n));if(a){e.splice(p--,1);var s=i();void 0!==s&&(t=s)}}return t}n=n||0;for(var p=e.length;p>0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[r,i,n]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{