PluginProbe ʕ •ᴥ•ʔ
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 4.6.2
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v4.6.2
4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.11.0 1.11.1 1.11.2 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 2.0.0 2.0.1 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.10.0 2.10.1 2.11.0 2.11.1 2.11.2 2.11.3 2.11.4 2.12.0 2.13.0 2.14.0 2.14.1 2.15.0 2.15.1 2.16.0 2.16.1 2.16.2 2.16.3 2.17.0 2.17.1 2.17.2 2.18.0 2.19.0 2.19.2 2.19.3 2.19.4 2.2.0 2.2.1 2.20.0 2.20.1 2.20.2 2.20.3 2.20.4 2.20.5 2.20.6 2.21.0 2.22.0 2.22.1 2.23.0 2.24.0 2.25.0 2.25.1 2.25.2 2.26.0 2.27.0 2.27.1 2.28.0 2.29.0 2.29.1 2.29.2 2.29.3 2.29.4 2.3.0 2.3.1 2.30.0 2.31.0 2.31.1 2.31.2 2.31.3 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.40.0 2.40.1 2.5.0 2.5.1 2.5.2 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.9.0 3.0.0 3.0.0-RC1 3.0.0-RC2 3.0.0-beta1 3.0.0-beta2 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.10.0 3.10.1 3.11.0 3.12.0 3.13.0 3.13.1 3.13.2 3.13.3 3.13.4 3.14.0 3.15.0 3.15.1 3.15.2 3.15.3 3.15.4 3.15.5 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.16.5 3.16.6 3.16.7 3.16.8 3.17.0 3.17.1 3.17.2 3.17.3 3.17.4 3.17.5 3.17.6 3.18.0 3.19.0 3.19.1 3.19.2 3.2.0 3.2.1 3.2.2 3.20.0 3.20.1 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.4.3 3.5.0 3.5.1 3.5.2 3.5.3 3.6.0 3.6.1 3.6.2 3.7.0 3.7.1 3.7.2 3.7.3 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.9.0 4.0.0 4.0.1 4.0.2 4.0.3 trunk 4.1.0 0.2.19.1 4.1.1 1.0.0 4.2.0 1.0.1 1.0.2
surecart / packages / blocks-next / build / blocks / cart-line-items / index.js
surecart / packages / blocks-next / build / blocks / cart-line-items Last commit date
block.json 1 year ago index-rtl.css 1 year ago index.asset.php 6 months ago index.css 1 year ago index.js 6 months ago style-index-rtl.css 6 months ago style-index.css 6 months ago view.php 1 month ago
index.js
1 lines
1 !function(){"use strict";var e,t={7005:function(e,t,l){var r=l(1609),n=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,l){var r,i={},s=null,u=null;for(r in void 0!==l&&(s=""+l),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,r)&&!c.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:n,type:e,key:s,ref:u,props:i,_owner:a.current}}},9255:function(e,t,l){e.exports=l(7005)},4554:function(e,t,l){var r=window.wp.blocks,n=window.wp.primitives,o=l(9255),a=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}),c=window.wp.i18n,i=window.wp.blockEditor,s=window.wp.components,u=window.wp.element,p=window.wp.data;function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},f.apply(null,arguments)}function y(e){let{template:t,renderAppender:l,...r}=e;const n=(0,i.useInnerBlocksProps)(r,{template:t,__unstableDisableLayoutClassNames:!0,renderAppender:l});return React.createElement("div",n)}const d=(0,u.memo)((function(e){let{blocks:t,blockContextId:l,isHidden:r,setActiveBlockContextId:n,...o}=e;const{style:a,className:c,...s}=o||{},u=(0,i.__experimentalUseBlockPreview)({blocks:t});return React.createElement("div",f({},u,{tabIndex:0,role:"button",onClick:()=>{n(l)},style:{...a,display:r?"none":void 0},className:c},s))}));function m(e){let{clientId:t,blockContexts:l,className:r,style:n,itemProps:o,template:a,renderAppender:c,attachBlockProps:s=!0}=e;const[m,x]=(0,u.useState)(),g=(0,p.useSelect)((e=>e(i.store).getBlocks(t)),[t]),h=s?(0,i.useBlockProps)({className:r,style:n}):{style:n,className:r};return React.createElement("div",h,l&&l.map((e=>React.createElement(i.BlockContextProvider,{key:e.id,value:e},e.id===(m||l[0]?.id)&&React.createElement(y,f({template:a,renderAppender:c},o)),React.createElement(d,f({blocks:g,blockContextId:e.id,setActiveBlockContextId:x,isHidden:e.id===(m||l[0]?.id)},o))))))}var x=[["core/group",{style:{layout:{selfStretch:"fill",flexSize:null},dimensions:{minHeight:"200px"}},layout:{type:"default"}},[["core/group",{style:{layout:{selfStretch:"fit",flexSize:null}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"stretch"}},[["surecart/cart-line-item-image",{id:3546,width:"114px",height:"114px",scale:"cover",sizeSlug:"large",linkDestination:"none",style:{layout:{selfStretch:"fixed",flexSize:"114px"},border:{radius:"4px",width:"1px"},shadow:"none"}}],["core/group",{style:{layout:{selfStretch:"fill",flexSize:null}},layout:{type:"flex",orientation:"vertical",justifyContent:"stretch",flexWrap:"nowrap",verticalAlignment:"top"}},[["core/group",{style:{layout:{selfStretch:"fill",flexSize:null}},layout:{type:"default"}},[["core/group",{style:{layout:{selfStretch:"fill",flexSize:null}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"stretch",justifyContent:"space-between"}},[["core/group",{style:{layout:{selfStretch:"fixed",flexSize:"50%"},spacing:{blockGap:"10px"}},layout:{type:"default"}},[["core/paragraph",{style:{color:{text:"#4b5563"},elements:{link:{color:{text:"#4b5563"}}}},content:"<strong>Cloudnova</strong>"}],["core/paragraph",{style:{typography:{fontSize:"14px",lineHeight:"1.4"},color:{text:"#828c99"},elements:{link:{color:{text:"#828c99"}}}},content:"Black / S<br>One Time"}]]],["core/group",{style:{layout:{selfStretch:"fit",flexSize:null},spacing:{blockGap:"10px"}},layout:{type:"default"}},[["core/paragraph",{align:"right",style:{layout:{selfStretch:"fill",flexSize:null},color:{text:"#4b5563"},elements:{link:{color:{text:"#4b5563"}}}},content:"<strong>$10</strong> / mo"}],["core/paragraph",{align:"right",style:{layout:{selfStretch:"fill",flexSize:null},typography:{fontSize:"14px",lineHeight:"1.4"},color:{text:"#828c99"},elements:{link:{color:{text:"#828c99"}}}},content:"$99 Setup Fee<br>14 Day Free Trial"}]]]]]]],["core/group",{layout:{type:"flex",flexWrap:"nowrap",justifyContent:"space-between",verticalAlignment:"center"}},[["core/group",{style:{layout:{selfStretch:"fill",flexSize:null}},layout:{type:"default"}},[["core/paragraph",{style:{layout:{selfStretch:"fill",flexSize:null}},content:"Qty"}]]],["core/group",{style:{layout:{selfStretch:"fit",flexSize:null}},layout:{type:"default"}},[["core/paragraph",{style:{layout:{selfStretch:"fit",flexSize:null}},content:"Remove"}]]]]]]]]]]]],g=JSON.parse('{"UU":"surecart/slide-out-cart-line-items"}');(0,r.registerBlockType)(g.UU,{icon:a,edit:e=>{let{attributes:t,setAttributes:l,__unstableLayoutClassNames:r,clientId:n}=e;const{removable:o,editable:a,style:u}=t,{blockGap:p}=u?.spacing||{},f=scBlockData?.plugin_url+"/images/placeholder-thumbnail.jpg",y=(0,i.useBlockProps)(),d=[{id:1,quantity:2,removable:o,editable:a,price:{name:"Basic",product:{name:"Example Product",image_url:f},display_amount:scData?.currency_symbol+"12.34"}},{id:2,quantity:4,removable:o,editable:a,price:{name:"Monthly",product:{name:"Example Product",image_url:f},display_amount:scData?.currency_symbol+"123.45"}}];return React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement(s.PanelBody,{title:(0,c.__)("Attributes","surecart")},React.createElement(s.PanelRow,null,React.createElement(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Removable","surecart"),help:(0,c.__)("Allow line items to be removed.","surecart"),checked:o,onChange:e=>l({removable:e})})),React.createElement(s.PanelRow,null,React.createElement(s.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Editable","surecart"),help:(0,c.__)("Allow line item quantities to be editable.","surecart"),checked:a,onChange:e=>l({editable:e})})))),React.createElement(m,{template:x,blockContexts:d,clientId:n,blockProps:y,className:r,style:{gap:p}}))},save:function(){return React.createElement(i.InnerBlocks.Content,null)}})},1609:function(e){e.exports=window.React}},l={};function r(e){var n=l[e];if(void 0!==n)return n.exports;var o=l[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=function(t,l,n,o){if(!l){var a=1/0;for(u=0;u<e.length;u++){l=e[u][0],n=e[u][1],o=e[u][2];for(var c=!0,i=0;i<l.length;i++)(!1&o||a>=o)&&Object.keys(r.O).every((function(e){return r.O[e](l[i])}))?l.splice(i--,1):(c=!1,o<a&&(a=o));if(c){e.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[l,n,o]},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={7919:0,6791:0};r.O.j=function(t){return 0===e[t]};var t=function(t,l){var n,o,a=l[0],c=l[1],i=l[2],s=0;if(a.some((function(t){return 0!==e[t]}))){for(n in c)r.o(c,n)&&(r.m[n]=c[n]);if(i)var u=i(r)}for(t&&t(l);s<a.length;s++)o=a[s],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},l=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))}();var n=r.O(void 0,[6791],(function(){return r(4554)}));n=r.O(n)}();