index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
templates
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/templates/admin.js
!function(){"use strict";var a=window.wp.plugins,e=window.React,t=window.wp.data,r=window.wp.editPost,o=window.wp.editor,n=window.wp.blockEditor,_=window.wp.components,s=window.wp.i18n;(0,a.registerPlugin)("plugin-document-setting-panel-demo",{render:function(){var a=(0,t.useSelect)((function(a){var e=a("core/editor").getEditedPostAttribute("meta")||{},t=e._surecart_dashboard_logo_width,r=e._surecart_dashboard_show_logo,n=e._surecart_dashboard_navigation_orders,_=e._surecart_dashboard_navigation_invoices,s=e._surecart_dashboard_navigation_subscriptions,i=e._surecart_dashboard_navigation_downloads,d=e._surecart_dashboard_navigation_account,c=e._surecart_dashboard_navigation_billing;return{template:a(o.store).getEditedPostAttribute("template"),_surecart_dashboard_logo_width:t,_surecart_dashboard_show_logo:r,_surecart_dashboard_navigation_orders:n,_surecart_dashboard_navigation_invoices:_,_surecart_dashboard_navigation_subscriptions:s,_surecart_dashboard_navigation_downloads:i,_surecart_dashboard_navigation_account:d,_surecart_dashboard_navigation_billing:c}})),i=a.template,d=a._surecart_dashboard_logo_width,c=a._surecart_dashboard_show_logo,l=a._surecart_dashboard_navigation_orders,u=a._surecart_dashboard_navigation_invoices,g=a._surecart_dashboard_navigation_subscriptions,h=a._surecart_dashboard_navigation_downloads,b=a._surecart_dashboard_navigation_account,w=a._surecart_dashboard_navigation_billing,v=(0,_.__experimentalUseCustomUnits)({availableUnits:(0,n.useSettings)("spacing.units")||["%","px","em","rem","vw"]}),m=(0,t.useDispatch)(o.store).editPost;return"pages/template-surecart-dashboard.php"!==i?null:(0,e.createElement)(r.PluginDocumentSettingPanel,{name:"sc-dashboard-panel",title:(0,s.__)("Template Options","surecart"),className:"custom-panel",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.519 35.5C27.1944 35.5 35.0379 27.665 35.0379 18C35.0379 8.33502 27.1944 0.5 17.519 0.5C7.84351 0.5 0 8.33502 0 18C0 27.665 7.84351 35.5 17.519 35.5ZM17.5944 9.25C16.1877 9.25 14.241 10.0536 13.2463 11.0449L10.5448 13.7372H24.0104L28.5129 9.25H17.5944ZM21.7689 24.9551C20.7742 25.9464 18.8275 26.75 17.4208 26.75H6.50228L11.0048 22.2628H24.4704L21.7689 24.9551ZM26.1453 15.9808H8.29837L7.45535 16.8221C5.4592 18.617 6.05123 20.0192 8.84675 20.0192H26.742L27.5853 19.1779C29.562 17.3936 28.9408 15.9808 26.1453 15.9808Z",fill:"currentColor"}))},(0,e.createElement)(_.ToggleControl,{label:(0,s.__)("Show Logo","surecart"),checked:c,onChange:function(a){return m({meta:{_surecart_dashboard_show_logo:a}})}}),!!c&&(0,e.createElement)(_.__experimentalUnitControl,{label:(0,s.__)("Logo Width","surecart"),value:d,onChange:function(a){return m({meta:{_surecart_dashboard_logo_width:a}})},units:v}),(0,e.createElement)(_.PanelRow,null,(0,e.createElement)("div",null,(0,e.createElement)(_.BaseControl.VisualLabel,null,(0,s.__)("Navigation","surecart")),(0,e.createElement)(_.ToggleControl,{label:(0,s.__)("Orders","surecart"),checked:l,onChange:function(a){return m({meta:{_surecart_dashboard_navigation_orders:a}})}}),(0,e.createElement)(_.ToggleControl,{label:(0,s.__)("Invoices","surecart"),checked:u,onChange:function(a){return m({meta:{_surecart_dashboard_navigation_invoices:a}})}}),(0,e.createElement)(_.ToggleControl,{label:(0,s.__)("Plans","surecart"),checked:g,onChange:function(a){return m({meta:{_surecart_dashboard_navigation_subscriptions:a}})}}),(0,e.createElement)(_.ToggleControl,{label:(0,s.__)("Downloads","surecart"),checked:h,onChange:function(a){return m({meta:{_surecart_dashboard_navigation_downloads:a}})}}),(0,e.createElement)(_.ToggleControl,{label:(0,s.__)("WordPress Account","surecart"),checked:b,onChange:function(a){return m({meta:{_surecart_dashboard_navigation_account:a}})}}),(0,e.createElement)(_.ToggleControl,{label:(0,s.__)("Billing Details","surecart"),checked:w,onChange:function(a){return m({meta:{_surecart_dashboard_navigation_billing:a}})}}))))}})}();