OwlCyberSecurity - MANAGER
Edit File: 4148.js
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[4148],{36862:(e,t,n)=>{n.d(t,{a:()=>s});var o=n(17855),a=n.n(o),i=n(69307),r=n(56857);const s=({children:e,className:t})=>(0,i.createElement)("div",{className:a()("woocommerce-onboarding-loader",t)},e);s.Layout=({children:e,className:t})=>(0,i.createElement)("div",{className:a()("woocommerce-onboarding-loader-wrapper",t)},(0,i.createElement)("div",{className:a()("woocommerce-onboarding-loader-container",t)},e)),s.Illustration=({children:e})=>(0,i.createElement)(i.Fragment,null,e),s.Title=({children:e,className:t})=>(0,i.createElement)("h1",{className:a()("woocommerce-onboarding-loader__title",t)},e),s.ProgressBar=({progress:e,className:t})=>(0,i.createElement)(r.Z,{className:a()("progress-bar",t),percent:null!=e?e:0,color:"var(--wp-admin-theme-color)",bgcolor:"#E0E0E0"}),s.Subtext=({children:e,className:t})=>(0,i.createElement)("p",{className:a()("woocommerce-onboarding-loader__paragraph",t)},e),s.Sequence=({interval:e,shouldLoop:t=!0,children:n,onChange:o=()=>{}})=>{const[a,r]=(0,i.useState)(0),s=i.Children.count(n);(0,i.useEffect)((()=>{const n=setInterval((()=>{r((e=>{const a=e+1;if(t){const e=a%s;return o(e),e}return a<s?(o(a),a):(clearInterval(n),e)}))}),e);return()=>clearInterval(n)}),[e,n,t,s]);const c=i.Children.toArray(n)[a];return(0,i.createElement)(i.Fragment,null,c)}},70524:(e,t,n)=>{n.d(t,{_:()=>M});var o=n(99196),a=n(69307),i=n(55609),r=n(94333),s=n(17145),c=n(39506),l=n(94675),m=n(26414),d=n(76151),h=n(11703),u=n(73559),p=n(83795),w=n(86011),y=n(64518),f=n(56806),v=n(6069),b=n(15659),g=n(6904),_=n(10991),E=n(46708),x=n(52807),k=n(5538),z=n(19491),N=n(499);const Z=[{name:"visa",component:(0,a.createElement)(s.Z,{key:"visa"})},{name:"mastercard",component:(0,a.createElement)(c.Z,{key:"mastercard"})},{name:"amex",component:(0,a.createElement)(l.Z,{key:"amex"})},{name:"discover",component:(0,a.createElement)(m.Z,{key:"discover"})},{name:"woopay",component:(0,a.createElement)(p.Z,{key:"woopay"})},{name:"applepay",component:(0,a.createElement)(d.Z,{key:"applepay"})},{name:"googlepay",component:(0,a.createElement)(h.Z,{key:"googlepay"})},{name:"afterpay",component:(0,a.createElement)(w.Z,{key:"afterpay"})},{name:"affirm",component:(0,a.createElement)(y.Z,{key:"affirm"})},{name:"klarna",component:(0,a.createElement)(f.Z,{key:"klarna"})},{name:"cartebancaire",component:(0,a.createElement)(v.Z,{key:"cartebancaire"})},{name:"unionpay",component:(0,a.createElement)(b.Z,{key:"unionpay"})},{name:"diners",component:(0,a.createElement)(g.Z,{key:"diners"})},{name:"eftpos",component:(0,a.createElement)(_.Z,{key:"eftpos"})},{name:"jcb",component:(0,a.createElement)(u.Z,{key:"jcb"})},{name:"bancontact",component:(0,a.createElement)(x.Z,{key:"bancontact"})},{name:"becs",component:(0,a.createElement)(z.Z,{key:"becs"})},{name:"eps",component:(0,a.createElement)(k.Z,{key:"eps"})},{name:"ideal",component:(0,a.createElement)(E.Z,{key:"ideal"})},{name:"przelewy24",component:(0,a.createElement)(N.Z,{key:"przelewy24"})}],M=({isWooPayEligible:e=!1,maxElements:t=10,tabletWidthBreakpoint:n=768,maxElementsTablet:s=7,mobileWidthBreakpoint:c=480,maxElementsMobile:l=5,totalPaymentMethods:m=20})=>{const[d,h]=(0,o.useState)(t),[u,p]=(0,o.useState)(!1),w=(0,r.useDebounce)((()=>{p(!1)}),350),y=e?m:m-1,f=t=>e?t:t+1;(0,o.useEffect)((()=>{const e=()=>{window.innerWidth<=c?h(l):window.innerWidth<=n?h(s):h(t)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t,l,s,n,c]);const v=Z.slice(0,f(d)).filter((t=>e||"woopay"!==t.name)),b=Z.slice(f(d)).filter((t=>e||"woopay"!==t.name));return(0,a.createElement)("div",{className:"woocommerce-woopayments-payment-methods-logos"},v.map((e=>e.component)),d<y&&(0,a.createElement)("div",{className:"woocommerce-woopayments-payment-methods-logos-count",role:"button",tabIndex:0,onClick:()=>p(!u),onMouseEnter:()=>{p(!0),w.cancel()},onMouseLeave:w,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||p(!u)}},"+ ",y-d,u&&(0,a.createElement)(i.Popover,{placement:"top-start",className:"woocommerce-woopayments-payment-methods-logos-popover",focusOnMount:!1,noArrow:!0,shift:!0,onClose:w},(0,a.createElement)("div",{className:"woocommerce-woopayments-payment-methods-logos"},b.map((e=>e.component))))))}},73660:(e,t,n)=>{n.d(t,{b:()=>s,r:()=>c});var o=n(66589),a=n.n(o),i=n(65736);const r={PH:{"National Capital Region":(0,i.__)("Metro Manila","woocommerce")},IT:{Rome:(0,i.__)("Roma","woocommerce")}},s=(e,t,n=.7)=>{if(!t)return null;let o=null,i=n;const s=(({country_short:e,region:t="",city:n=""})=>{if(!e)return null;const o=r[e];if(!o)return null;const a=o[t];return a||(o[n]||null)})(t);for(const n of e){if(n.key===t.country_short)return n;if(n.key.split(":")[0]===t.country_short&&n.label.includes("—")){const e=n.label.split("—")[1].trim();if(s===e)return n;if(0===e.localeCompare(t.region||"","en",{sensitivity:"base"})||0===e.localeCompare(t.city||"","en",{sensitivity:"base"}))return n;const r=Math.max(a().compareTwoStrings(e,t.region||""),a().compareTwoStrings(e,t.city||""));r>=i&&(o=n,i=r)}}return o},c=e=>{var t;return null!==(t=null==e?void 0:e.split(":")[0])&&void 0!==t?t:void 0}},48391:(e,t,n)=>{n.d(t,{Q:()=>p,Z:()=>w});var o=n(80225),a=n(69307),i=n(55609),r=n(94333),s=n(65736),c=n(81514);const l={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},m=320,d=9/19.5,h={width:"100%",height:"100%"};function u(e,t){const n=1-Math.max(0,Math.min(1,(e-m)/980));var o;return e/((o=t)+(d-o)*n)}const p=(0,a.createContext)(!1),w=function e({isFullWidth:t,isOversized:n,setIsOversized:d,isReady:w,children:y,defaultSize:f,innerContentStyle:v,isHandleVisibleByDefault:b=!1}){const[g,_]=(0,a.useState)(h),[E,x]=(0,a.useState)(),[k,z]=(0,a.useState)(!1),[N,Z]=(0,a.useState)(!1),[M,j]=(0,a.useState)(1),S={type:"tween",duration:k?0:.5},[C,R]=(0,a.useState)(!1),W=(0,a.useRef)(null),L=(0,r.useInstanceId)(e,"woocommerce-edit-site-resizable-frame-handle-help"),T=f.width/f.height,P={default:{flexGrow:0,height:g.height},fullWidth:{flexGrow:1,height:g.height}},A=k||b?"active":N?"visible":"hidden",I=(0,c.jsx)(i.__unstableMotion.button,{role:"separator","aria-orientation":"vertical",className:(0,o.Z)("woocommerce-edit-site-resizable-frame__handle",{"is-resizing":k}),variants:{hidden:{opacity:0,left:0},visible:{opacity:.6,left:-10},active:{opacity:1,left:-10}},animate:A,"aria-label":(0,s.__)("Drag to resize","woocommerce"),"aria-describedby":L,"aria-valuenow":W.current?.resizable?.offsetWidth||void 0,"aria-valuemin":m,"aria-valuemax":f.width,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight"].includes(e.key))return;e.preventDefault();const t=20*(e.shiftKey?5:1)*("ArrowLeft"===e.key?1:-1),n=Math.min(Math.max(m,W.current.resizable.offsetWidth+t),f.width);_({width:n,height:u(n,T)})},initial:"hidden",exit:"hidden",whileFocus:"active",whileHover:"active",children:b&&!C&&(0,c.jsx)(i.Popover,{className:"woocommerce-assembler-hub__resizable-frame__drag-handler",position:"middle right",children:(0,s.__)("Drag to resize","woocommerce")})},"handle");return(0,c.jsx)(i.ResizableBox,{as:i.__unstableMotion.div,ref:W,initial:!1,variants:P,animate:t?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&_({width:"100%",height:"100%"})},transition:S,size:g,enable:{top:!1,right:!1,bottom:!1,left:w,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:M,handleClasses:void 0,handleStyles:{left:l,right:l},minWidth:m,maxWidth:"100%",maxHeight:"100%",onFocus:()=>Z(!0),onBlur:()=>Z(!1),onMouseOver:()=>Z(!0),onMouseOut:()=>Z(!1),handleComponent:{left:(0,c.jsxs)(c.Fragment,{children:[b?(0,c.jsx)("div",{children:I}):(0,c.jsx)(i.Tooltip,{position:"middle right",text:(0,s.__)("Drag to resize","woocommerce"),children:I}),(0,c.jsx)("div",{hidden:!0,id:L,children:(0,s.__)("Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.","woocommerce")})]})},onResizeStart:(e,t,n)=>{x(n.offsetWidth),z(!0)},onResize:(e,t,o,a)=>{const i=a.width/M,r=Math.abs(i),s=a.width<0?r:(f.width-E)/2,c=Math.min(r,s),l=0===r?0:c/r;j(1-l+2*l);const m=E+a.width;d(m>f.width),_({height:n?"100%":u(m,T)})},onResizeStop:(e,t,o)=>{z(!1),C||R(!0),n&&(d(!1),_(h))},className:(0,o.Z)("woocommerce-edit-site-resizable-frame__inner",{"is-resizing":k}),children:(0,c.jsx)(i.__unstableMotion.div,{className:"customize-your-store-edit-site-resizable-frame__inner-content",animate:{borderRadius:t?0:8},transition:S,style:v,children:(0,c.jsx)(p.Provider,{value:k,children:y})})})}},5645:(e,t,n)=>{n.d(t,{R:()=>y});var o=n(80225),a=n(9818),i=n(55609),r=n(94333),s=n(37798),c=n(22629),l=n(69307),m=n(19439),d=n(10431),h=n(86020),u=n(77970),p=n(62833),w=n(81514);const y=(0,l.forwardRef)((({isTransparent:e,...t},n)=>{const{siteTitle:l}=(0,a.useSelect)((e=>{const{getSite:t}=e(s.store);return{siteTitle:t()?.title}}),[]),y=(0,r.useReducedMotion)();return(0,w.jsx)(i.__unstableMotion.div,{ref:n,...t,className:(0,o.Z)("woocommerce-edit-site-site-hub",t.className),initial:!1,transition:{type:"tween",duration:y?0:.3,ease:"easeOut"},children:(0,w.jsx)(i.__experimentalHStack,{justify:"space-between",alignment:"center",className:"woocommerce-edit-site-site-hub__container",children:(0,w.jsxs)(i.__experimentalHStack,{justify:"flex-start",className:"woocommerce-edit-site-site-hub__text-content",spacing:"0",children:[(0,w.jsx)("div",{className:(0,o.Z)("woocommerce-edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e}),children:(0,w.jsx)(h.Link,{href:(0,d.getNewPath)((0,d.getPersistedQuery)(),"/",{}),type:"wp-admin",children:(0,p.id)()?(0,w.jsx)(u.Z,{size:24,className:"woocommerce-cys-wordpress-header-logo"}):(0,w.jsx)(m.Z,{className:"woocommerce-edit-site-layout__view-mode-toggle-icon"})})}),!(0,p.id)()&&(0,w.jsx)(i.__unstableAnimatePresence,{children:(0,w.jsx)(i.__unstableMotion.div,{layout:!1,animate:{opacity:1},exit:{opacity:0},className:(0,o.Z)("woocommerce-edit-site-site-hub__site-title",{"is-transparent":e}),transition:{type:"tween",duration:y?0:.2,ease:"easeOut",delay:.1},children:(0,c.decodeEntities)(l)})})]})})})}))},77970:(e,t,n)=>{n.d(t,{Z:()=>s});var o=n(69596),a=n.n(o),i=n(81514);function r({className:e="wordpress-logo",size:t=72}){return(0,i.jsx)("svg",{className:e,height:t,width:t,viewBox:"0 0 72 72",children:(0,i.jsx)("path",{d:"M36,0C16.1,0,0,16.1,0,36c0,19.9,16.1,36,36,36c19.9,0,36-16.2,36-36C72,16.1,55.8,0,36,0z M3.6,36 c0-4.7,1-9.1,2.8-13.2l15.4,42.3C11.1,59.9,3.6,48.8,3.6,36z M36,68.4c-3.2,0-6.2-0.5-9.1-1.3l9.7-28.2l9.9,27.3 c0.1,0.2,0.1,0.3,0.2,0.4C43.4,67.7,39.8,68.4,36,68.4z M40.5,20.8c1.9-0.1,3.7-0.3,3.7-0.3c1.7-0.2,1.5-2.8-0.2-2.7 c0,0-5.2,0.4-8.6,0.4c-3.2,0-8.5-0.4-8.5-0.4c-1.7-0.1-2,2.6-0.2,2.7c0,0,1.7,0.2,3.4,0.3l5,13.8L28,55.9L16.2,20.8 c2-0.1,3.7-0.3,3.7-0.3c1.7-0.2,1.5-2.8-0.2-2.7c0,0-5.2,0.4-8.6,0.4c-0.6,0-1.3,0-2.1,0C14.7,9.4,24.7,3.6,36,3.6 c8.4,0,16.1,3.2,21.9,8.5c-0.1,0-0.3,0-0.4,0c-3.2,0-5.4,2.8-5.4,5.7c0,2.7,1.5,4.9,3.2,7.6c1.2,2.2,2.7,4.9,2.7,8.9 c0,2.8-0.8,6.3-2.5,10.5l-3.2,10.8L40.5,20.8z M52.3,64l9.9-28.6c1.8-4.6,2.5-8.3,2.5-11.6c0-1.2-0.1-2.3-0.2-3.3 c2.5,4.6,4,9.9,4,15.5C68.4,47.9,61.9,58.4,52.3,64z"})})}r.propTypes={className:a().string,size:a().number};const s=r},8016:(e,t,n)=>{function o(e,t=new Set){if(!t.has(e)){t.add(e);for(const n in e)if(e.hasOwnProperty(n)){if("component"===n)return e;if("object"==typeof e[n]&&null!==e[n]){const a=o(e[n],t);if(void 0!==a)return a}}}}n.d(t,{r:()=>o})}}]);