Current Path : /storage/v11800/testtest/public_html/wp-content/plugins/woocommerce/assets/client/blocks/

Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64

Upload File :
Current File : /storage/v11800/testtest/public_html/wp-content/plugins/woocommerce/assets/client/blocks/classic-shortcode.js
(()=>{var e,t,c,o={7379:(e,t,c)=>{"use strict";c.r(t);var o={};c.r(o),c.d(o,{blockifyConfig:()=>O,getDescription:()=>B,getTitle:()=>R,isConversionPossible:()=>_});var r={};c.r(r),c.d(r,{blockifyConfig:()=>j,getDescription:()=>T,getTitle:()=>S,isConversionPossible:()=>P});var i=c(1609);const l=window.wp.blocks,n=window.wp.blockEditor,a=window.wp.components;var s=c(7723),h=c(7104),m=c(3707);const d=window.wp.data;var w=c(6087);const p=window.wp.notices;var u=c(5573),k=c(851);const x=(0,i.createElement)((({className:e,height:t,width:c,...o})=>(0,i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 245 145",className:(0,k.A)("woo-icon",e),width:c,height:t,...o},(0,i.createElement)("path",{fill:"#7f54b3",d:"M22.76 0h199.1a22.77 22.77 0 0 1 22.8 22.76v75.92a22.77 22.77 0 0 1-22.78 22.78h-71.41l9.77 24-43.13-24H22.76C10.1946 121.449.011 111.2654 0 98.7V22.76C.011 10.1946 10.1946.011 22.76 0z"}),(0,i.createElement)("path",{fill:"#FFF",fillRule:"nonzero",d:"M12.32 20.63a8.16 8.16 0 0 1 6.25-3.09c5.0733-.36 7.9867 2.0333 8.74 7.18 3.14 20.86 6.4933 38.5633 10.06 53.11l21.92-41.69c2-3.76 4.49-5.76 7.52-6 4.3867-.3067 7.13 2.49 8.23 8.39a186 186 0 0 0 9.47 34.23c2.62-25.38 7.0133-43.7133 13.18-55a7.73 7.73 0 0 1 6.6-4.43 8.8 8.8 0 0 1 6.32 2 7.75 7.75 0 0 1 3.05 5.74 8.52 8.52 0 0 1-1 4.77c-3.9 7.24-7.12 19.28-9.66 36.12-2.48 16.2533-3.3967 28.9633-2.75 38.13a12.25 12.25 0 0 1-1.16 6.56 6.32 6.32 0 0 1-5.33 3.53c-2.6667.18-5.3033-1.0567-7.91-3.71-9.2933-9.54-16.6567-23.7267-22.09-42.56C57.3 76.7167 52.48 86.3333 49.3 92.76c-5.86 11.3333-10.89 17.13-15.09 17.39-2.7333.1933-5.0667-2.0933-7-6.86-5.1-13.0933-10.5833-38.4033-16.45-75.93a8.56 8.56 0 0 1 1.56-6.73zM227.23 36.34a23.17 23.17 0 0 0-16-11.59 26.25 26.25 0 0 0-5.42-.58c-9.5867 0-17.41 5-23.47 15a53 53 0 0 0-7.78 28.16c0 7.7333 1.6167 14.3333 4.85 19.8a23.15 23.15 0 0 0 16 11.59 26.28 26.28 0 0 0 5.42.59c9.68 0 17.5033-5 23.47-15A53.89 53.89 0 0 0 232.08 56c0-7.7333-1.6167-14.2867-4.85-19.66zm-12.61 27.72c-1.3733 6.56-3.9167 11.5-7.63 14.82-2.9267 2.6667-5.6133 3.7433-8.06 3.23-2.4467-.5133-4.4033-2.6667-5.87-6.46a25.68 25.68 0 0 1-1.76-9.09 35.9 35.9 0 0 1 .73-7.34 33 33 0 0 1 5.28-11.88c3.3333-4.8933 6.8067-6.9467 10.42-6.16 2.44.4867 4.3933 2.64 5.86 6.46a25.68 25.68 0 0 1 1.76 9.12 35.73 35.73 0 0 1-.73 7.33v-.03zM164.57 36.34a23.2 23.2 0 0 0-16-11.59 26.42 26.42 0 0 0-5.43-.58c-9.5933 0-17.4167 5-23.47 15a53 53 0 0 0-7.78 28.16c0 7.7333 1.6133 14.3333 4.84 19.8a23.19 23.19 0 0 0 16 11.59 26.44 26.44 0 0 0 5.43.59c9.68 0 17.5033-5 23.47-15A53.88 53.88 0 0 0 169.4 56c0-7.7333-1.6133-14.2867-4.84-19.66h.01zm-12.61 27.72c-1.3667 6.56-3.91 11.5-7.63 14.82-2.93 2.64-5.63 3.72-8.07 3.23-2.44-.49-4.4-2.64-5.86-6.46a25.7 25.7 0 0 1-1.77-9.09 35.9 35.9 0 0 1 .74-7.34 33 33 0 0 1 5.28-11.88c3.3333-4.8933 6.8067-6.9467 10.42-6.16 2.44.4867 4.3933 2.64 5.86 6.46a25.91 25.91 0 0 1 1.76 9.12 35.73 35.73 0 0 1-.73 7.33v-.03z"}))),null),g=({blocks:e,findCondition:t})=>{for(const c of e){if(t(c))return c;if(c.innerBlocks){const e=g({blocks:c.innerBlocks,findCondition:t});if(e)return e}}};c(4918),c(120);const b=()=>(0,i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 892 516"},(0,i.createElement)(u.G,{fill:"currentColor",transform:"translate(-1)"},(0,i.createElement)(u.Rect,{width:"100",height:"20",x:"1",rx:"2"}),(0,i.createElement)(u.Rect,{width:"100",height:"20",x:"421",rx:"2"}),(0,i.createElement)(u.Rect,{width:"100",height:"20",x:"793",rx:"2"}),(0,i.createElement)(u.Rect,{width:"150",height:"24",x:"125",y:"48",rx:"2"}),(0,i.createElement)(u.Rect,{width:"50",height:"24",x:"125",y:"86",rx:"2"}),(0,i.createElement)(u.Rect,{width:"50",height:"24",x:"457",y:"48",rx:"2"}),(0,i.createElement)(u.Rect,{width:"100",height:"100",x:"15",y:"48",rx:"2"}),(0,i.createElement)(u.Rect,{width:"150",height:"150",x:"1",y:"318",rx:"2"}),(0,i.createElement)(u.Rect,{width:"150",height:"150",x:"373",y:"318",rx:"2"}),(0,i.createElement)(u.Rect,{width:"150",height:"150",x:"187",y:"318",rx:"2"}),(0,i.createElement)(u.Rect,{width:"150",height:"24",x:"125",y:"178",rx:"2"}),(0,i.createElement)(u.Rect,{width:"50",height:"24",x:"125",y:"216",rx:"2"}),(0,i.createElement)(u.Rect,{width:"50",height:"24",x:"457",y:"178",rx:"2"}),(0,i.createElement)(u.Rect,{width:"100",height:"100",x:"15",y:"178",rx:"2"}),(0,i.createElement)(u.Rect,{width:"304",height:"359",x:"588",y:"34",rx:"2"}),(0,i.createElement)(u.Rect,{width:"520",height:"1",x:"1",y:"34",rx:".5"}),(0,i.createElement)(u.Rect,{width:"520",height:"1",y:"162",rx:".5"}),(0,i.createElement)(u.Rect,{width:"520",height:"1",x:"1",y:"292",rx:".5"}),(0,i.createElement)(u.Rect,{width:"304",height:"64",x:"589",y:"407",rx:"2"}),(0,i.createElement)(u.Rect,{width:"100",height:"38",x:"26",y:"478",rx:"2"}),(0,i.createElement)(u.Rect,{width:"100",height:"38",x:"212",y:"478",rx:"2"}),(0,i.createElement)(u.Rect,{width:"100",height:"38",x:"398",y:"478",rx:"2"}))),f=()=>(0,i.createElement)(u.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 892 726"},(0,i.createElement)(u.G,{fill:"currentColor",transform:"translate(-1)"},(0,i.createElement)(u.Rect,{width:"203",height:"38",x:"1",rx:"2"}),(0,i.createElement)(u.Rect,{width:"434",height:"38",x:"1",y:"62",rx:"2"}),(0,i.createElement)(u.Rect,{width:"434",height:"38",y:"124",rx:"2"}),(0,i.createElement)(u.Rect,{width:"434",height:"38",x:"1",y:"186",rx:"2"}),(0,i.createElement)(u.Rect,{width:"434",height:"38",x:"2",y:"248",rx:"2"}),(0,i.createElement)(u.Rect,{width:"434",height:"38",x:"3",y:"310",rx:"2"}),(0,i.createElement)(u.Rect,{width:"434",height:"38",x:"3",y:"372",rx:"2"}),(0,i.createElement)(u.Rect,{width:"892",height:"204",x:"2",y:"434",rx:"2"}),(0,i.createElement)(u.Rect,{width:"203",height:"38",x:"231",rx:"2"}),(0,i.createElement)(u.Rect,{width:"203",height:"38",x:"514",rx:"2"}),(0,i.createElement)(u.Rect,{width:"427",height:"100",x:"466",y:"62",rx:"2"}),(0,i.createElement)(u.Rect,{width:"304",height:"64",x:"588",y:"662",rx:"2"}),(0,i.createElement)(u.Rect,{width:"38",height:"38",x:"466",rx:"2"}),(0,i.createElement)(u.Rect,{width:"203",height:"38",x:"48",y:"662",rx:"2"}),(0,i.createElement)(u.Rect,{width:"38",height:"38",y:"662",rx:"2"}))),y="cart",E="checkout",v={cart:{type:y,title:(0,s.__)("Cart Shortcode","woocommerce"),description:(0,s.__)("Renders the classic cart shortcode.","woocommerce"),placeholder:"cart"},checkout:{type:E,title:(0,s.__)("Checkout Cart","woocommerce"),description:(0,s.__)("Renders the classic checkout shortcode.","woocommerce"),placeholder:"checkout"}},_=()=>!0,C=e=>[(0,l.createBlock)("woocommerce/checkout",{...e,className:"wc-block-checkout"})].filter(Boolean),R=()=>(0,s.__)("Classic Checkout","woocommerce"),B=()=>(0,s.__)("This block will render the classic checkout shortcode. You can optionally transform it into blocks for more control over the checkout experience.","woocommerce"),O={getButtonLabel:()=>(0,s.__)("Transform into blocks","woocommerce"),onClickCallback:({clientId:e,attributes:t,getBlocks:c,replaceBlock:o,selectBlock:r})=>{o(e,C(t));const i=c().find((e=>"core/group"===e.name&&e.innerBlocks.some((e=>"woocommerce/store-notices"===e.name))));i&&r(i.clientId)},getBlockifiedTemplate:C},P=()=>!0,I=e=>[(0,l.createBlock)("woocommerce/cart",{...e,className:"wc-block-cart"})].filter(Boolean),S=()=>(0,s.__)("Classic Cart","woocommerce"),T=()=>(0,s.__)("This block will render the classic cart shortcode. You can optionally transform it into blocks for more control over the cart experience.","woocommerce"),j={getButtonLabel:()=>(0,s.__)("Transform into blocks","woocommerce"),onClickCallback:({clientId:e,attributes:t,getBlocks:c,replaceBlock:o,selectBlock:r})=>{o(e,I(t));const i=c().find((e=>"core/group"===e.name&&e.innerBlocks.some((e=>"woocommerce/store-notices"===e.name))));i&&r(i.clientId)},getBlockifiedTemplate:I},N=JSON.parse('{"name":"woocommerce/classic-shortcode","version":"1.0.0","title":"Classic Shortcode","description":"Renders classic WooCommerce shortcodes.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":true,"html":false,"multiple":false,"reusable":false,"inserter":true},"attributes":{"shortcode":{"type":"string","default":"cart","enum":["cart","checkout"]},"align":{"type":"string","default":"wide"}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}'),M={[y]:r,[E]:o,fallback:{isConversionPossible:()=>!1,getBlockifiedTemplate:()=>[],getDescription:()=>"",onClickCallback:()=>{}}},A=({blockifyConfig:e,clientId:t,attributes:c})=>{const{getButtonLabel:o,onClickCallback:r,getBlockifiedTemplate:h}=e,[m,u]=(0,w.useState)(!1),{replaceBlock:k,selectBlock:x}=(0,d.useDispatch)(n.store),{createInfoNotice:b}=(0,d.useDispatch)(p.store),{getBlocks:f}=(0,d.useSelect)((e=>({getBlocks:e(n.store).getBlocks})),[]);return(0,i.createElement)(a.TabbableContainer,{className:"wp-block-woocommerce-classic-shortcode__placeholder-migration-button-container"},(0,i.createElement)(a.Button,{variant:"primary",onClick:()=>{r({clientId:t,getBlocks:f,attributes:c,replaceBlock:k,selectBlock:x}),b((0,s.__)("Classic shortcode transformed to blocks.","woocommerce"),{actions:[{label:(0,s.__)("Undo","woocommerce"),onClick:()=>{const e=["woocommerce/cart","woocommerce/checkout"],t=g({blocks:f(),findCondition:t=>e.includes(t.name)});t&&k(t.clientId,(0,l.createBlock)("woocommerce/classic-shortcode",{shortcode:c.shortcode}))}}],type:"snackbar"})},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),text:o?o():"",tabIndex:0},m&&(0,i.createElement)(a.Popover,{resize:!1,placement:"right-end"},(0,i.createElement)("div",{style:{minWidth:"250px",width:"250px",maxWidth:"250px",minHeight:"300px",height:"300px",maxHeight:"300px",cursor:"pointer"}},(0,i.createElement)(n.BlockPreview,{blocks:h({...c,isPreview:!0}),viewportWidth:1200,additionalStyles:[{css:"body { padding: 20px !important; height: fit-content !important; overflow:hidden}"}]})))),(0,i.createElement)(a.Button,{variant:"secondary",href:"https://woocommerce.com/document/cart-checkout-blocks-status/",target:"_blank",tabIndex:0},(0,s.__)("Learn more","woocommerce")))},z=({clientId:e,attributes:t})=>{var c,o;const r=(0,n.useBlockProps)(),l=function(e,t){const c=Object.keys(t);let o=null;for(let r=0;c.length>r;r++){const i=t[e.substr(0,c[r].length)];if(i){o=i;break}}return o}(t.shortcode,v),m=t.shortcode,d=null!==(c=null==l?void 0:l.placeholder)&&void 0!==c?c:"cart",p=null!==(o=null==l?void 0:l.type)&&void 0!==o?o:"fallback",{isConversionPossible:u,getDescription:k,getTitle:g,blockifyConfig:y}=M[p],E=u(),_=g?g():(0,s.__)("Classic Shortcode Placeholder","woocommerce"),C=k(m,E),R=(0,w.createInterpolateElement)((0,s.__)("You can learn more about the benefits of switching to blocks, compatibility with extensions, and how to switch back to shortcodes <a>in our documentation</a>.","woocommerce"),{a:(0,i.createElement)(a.ExternalLink,{href:"https://woocommerce.com/document/cart-checkout-blocks-status/"})});return(0,i.createElement)("div",{...r},(0,i.createElement)(a.Placeholder,{className:"wp-block-woocommerce-classic-shortcode__placeholder"},(0,i.createElement)("div",{className:"wp-block-woocommerce-classic-shortcode__placeholder-wireframe"},"cart"===d?(0,i.createElement)(b,null):(0,i.createElement)(f,null)),(0,i.createElement)("div",{className:"wp-block-woocommerce-classic-shortcode__placeholder-copy"},(0,i.createElement)("div",{className:"wp-block-woocommerce-classic-shortcode__placeholder-copy__icon-container"},(0,i.createElement)("span",{className:"woo-icon"},(0,i.createElement)(h.A,{icon:x})," ",(0,s.__)("WooCommerce","woocommerce")),(0,i.createElement)("span",null,_)),(0,i.createElement)("p",{dangerouslySetInnerHTML:{__html:C}}),(0,i.createElement)("p",null,R),E&&y&&(0,i.createElement)(A,{clientId:e,blockifyConfig:y,attributes:t}))))},W={icon:(0,i.createElement)(h.A,{icon:m.A,className:"wc-block-editor-components-block-icon"}),edit:({attributes:e,clientId:t,setAttributes:c})=>(0,i.createElement)(z,{attributes:e,setAttributes:c,clientId:t}),save:()=>null,variations:[{name:"checkout",title:(0,s.__)("Classic Checkout","woocommerce"),attributes:{shortcode:"checkout"},isActive:(e,t)=>e.shortcode===t.shortcode,scope:["inserter"]},{name:"cart",title:(0,s.__)("Classic Cart","woocommerce"),attributes:{shortcode:"cart"},isActive:(e,t)=>e.shortcode===t.shortcode,scope:["inserter"],isDefault:!0}]};(0,l.registerBlockType)(N,W)},4918:()=>{},120:()=>{},1609:e=>{"use strict";e.exports=window.React},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var c=r[e]={exports:{}};return o[e].call(c.exports,c,c.exports,i),c.exports}i.m=o,e=[],i.O=(t,c,o,r)=>{if(!c){var l=1/0;for(h=0;h<e.length;h++){for(var[c,o,r]=e[h],n=!0,a=0;a<c.length;a++)(!1&r||l>=r)&&Object.keys(i.O).every((e=>i.O[e](c[a])))?c.splice(a--,1):(n=!1,r<l&&(l=r));if(n){e.splice(h--,1);var s=o();void 0!==s&&(t=s)}}return t}r=r||0;for(var h=e.length;h>0&&e[h-1][2]>r;h--)e[h]=e[h-1];e[h]=[c,o,r]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);i.r(r);var l={};t=t||[null,c({}),c([]),c(c)];for(var n=2&o&&e;"object"==typeof n&&!~t.indexOf(n);n=c(n))Object.getOwnPropertyNames(n).forEach((t=>l[t]=()=>e[t]));return l.default=()=>e,i.d(r,l),r},i.d=(e,t)=>{for(var c in t)i.o(t,c)&&!i.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:t[c]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=3035,(()=>{var e={3035:0};i.O.j=t=>0===e[t];var t=(t,c)=>{var o,r,[l,n,a]=c,s=0;if(l.some((t=>0!==e[t]))){for(o in n)i.o(n,o)&&(i.m[o]=n[o]);if(a)var h=a(i)}for(t&&t(c);s<l.length;s++)r=l[s],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(h)},c=self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[];c.forEach(t.bind(null,0)),c.push=t.bind(null,c.push.bind(c))})();var l=i.O(void 0,[94],(()=>i(7379)));l=i.O(l),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["classic-shortcode"]=l})();

Softgel-Capsule – Affy Pharma Pvt Ltd

Arrange A Callback
[]
1 Step 1
Full Name
Telephone
Departmentyour full name
Postal Address
Message
0 /
Previous
Next
Shopping Basket