Plugin Directory

Changeset 3035393


Ignore:
Timestamp:
02/14/2024 06:10:50 AM (2 years ago)
Author:
Godaddy
Message:

Committing 1.7.2 to trunk

Location:
godaddy-payments/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • godaddy-payments/trunk/assets/css/blocks/wc-poynt-checkout-block.css

    r3025639 r3035393  
    122122  --tw-backdrop-sepia: ;
    123123}
     124.tw-fixed {
     125  position: fixed;
     126}
    124127.tw-absolute {
    125128  position: absolute;
    126129}
     130.tw-inset-0 {
     131  inset: 0px;
     132}
     133.tw-left-\[50\%\] {
     134  left: 50%;
     135}
    127136.tw-right-16px {
    128137  right: 1rem;
    129138}
     139.tw-right-4 {
     140  right: 1rem;
     141}
    130142.tw-top-1\/2 {
    131143  top: 50%;
    132144}
     145.tw-top-4 {
     146  top: 1rem;
     147}
     148.tw-top-\[50\%\] {
     149  top: 50%;
     150}
     151.tw-z-50 {
     152  z-index: 50;
     153}
    133154.\!tw-mt-24px {
    134155  margin-top: 1.5rem !important;
     
    169190.\!tw-max-w-\[40px\] {
    170191  max-width: 40px !important;
     192}
     193.tw-max-w-lg {
     194  max-width: 32rem;
    171195}
    172196.-tw-translate-x-1\/2 {
     
    178202  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    179203}
     204.tw-translate-x-\[-50\%\] {
     205  --tw-translate-x: -50%;
     206  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     207}
     208.tw-translate-y-\[-50\%\] {
     209  --tw-translate-y: -50%;
     210  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     211}
     212.tw-flex-col {
     213  flex-direction: column;
     214}
     215.tw-flex-col-reverse {
     216  flex-direction: column-reverse;
     217}
    180218.tw-place-content-between {
    181219  place-content: space-between;
     
    189227.tw-gap-2 {
    190228  gap: 0.5rem;
     229}
     230.tw-gap-4 {
     231  gap: 1rem;
    191232}
    192233.tw-space-x-2 > :not([hidden]) ~ :not([hidden]) {
     
    195236  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
    196237}
     238.tw-space-y-1 > :not([hidden]) ~ :not([hidden]) {
     239  --tw-space-y-reverse: 0;
     240  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
     241  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
     242}
     243.tw-space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
     244  --tw-space-y-reverse: 0;
     245  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
     246  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
     247}
    197248.tw-rounded-full {
    198249  border-radius: 9999px;
     
    210261  border-color: transparent;
    211262}
     263.tw-bg-background {
     264  background-color: hsl(var(--background));
     265}
     266.tw-bg-black\/80 {
     267  background-color: rgb(0 0 0 / 0.8);
     268}
    212269.tw-bg-destructive {
    213270  background-color: hsl(var(--destructive));
     
    227284.tw-stroke-red-500 {
    228285  stroke: #ef4444;
     286}
     287.tw-p-6 {
     288  padding: 1.5rem;
    229289}
    230290.tw-px-2 {
     
    250310  padding-top: 1.5em;
    251311}
     312.tw-text-center {
     313  text-align: center;
     314}
    252315.tw-indent-2 {
    253316  text-indent: 0.5rem;
     317}
     318.tw-text-lg {
     319  font-size: 1.125rem;
     320  line-height: 1.75rem;
     321}
     322.tw-text-sm {
     323  font-size: 0.875rem;
     324  line-height: 1.25rem;
    254325}
    255326.tw-text-xs {
     
    263334  line-height: 1;
    264335}
     336.tw-tracking-tight {
     337  letter-spacing: -0.025em;
     338}
    265339.tw-text-current {
    266340  color: currentColor;
     
    272346  color: hsl(var(--foreground));
    273347}
     348.tw-text-muted-foreground {
     349  color: hsl(var(--muted-foreground));
     350}
    274351.tw-text-primary {
    275352  color: hsl(var(--primary));
     
    280357.tw-text-secondary-foreground {
    281358  color: hsl(var(--secondary-foreground));
     359}
     360.tw-opacity-70 {
     361  opacity: 0.7;
     362}
     363.tw-shadow-lg {
     364  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
     365  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
     366  box-shadow:
     367    var(--tw-ring-offset-shadow, 0 0 #0000),
     368    var(--tw-ring-shadow, 0 0 #0000),
     369    var(--tw-shadow);
    282370}
    283371.tw-ring-offset-background {
     
    295383  transition-duration: 150ms;
    296384}
     385.tw-transition-opacity {
     386  transition-property: opacity;
     387  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     388  transition-duration: 150ms;
     389}
     390.tw-duration-200 {
     391  transition-duration: 200ms;
     392}
    297393@keyframes enter {
    298394  from {
     
    325421  --tw-enter-translate-y: -50%;
    326422}
     423.tw-duration-200 {
     424  animation-duration: 200ms;
     425}
    327426.hover\:tw-bg-destructive\/80:hover {
    328427  background-color: hsl(var(--destructive) / 0.8);
     
    333432.hover\:tw-bg-secondary\/80:hover {
    334433  background-color: hsl(var(--secondary) / 0.8);
     434}
     435.hover\:tw-opacity-100:hover {
     436  opacity: 1;
    335437}
    336438.focus\:tw-outline-none:focus {
     
    366468  --tw-ring-offset-width: 2px;
    367469}
     470.disabled\:tw-pointer-events-none:disabled {
     471  pointer-events: none;
     472}
    368473.disabled\:tw-cursor-not-allowed:disabled {
    369474  cursor: not-allowed;
     
    371476.disabled\:tw-opacity-50:disabled {
    372477  opacity: 0.5;
     478}
     479.data-\[state\=open\]\:tw-bg-accent[data-state=open] {
     480  background-color: hsl(var(--accent));
     481}
     482.data-\[state\=open\]\:tw-text-muted-foreground[data-state=open] {
     483  color: hsl(var(--muted-foreground));
     484}
     485.data-\[state\=open\]\:tw-animate-in[data-state=open] {
     486  animation-name: enter;
     487  animation-duration: 150ms;
     488  --tw-enter-opacity: initial;
     489  --tw-enter-scale: initial;
     490  --tw-enter-rotate: initial;
     491  --tw-enter-translate-x: initial;
     492  --tw-enter-translate-y: initial;
     493}
     494.data-\[state\=closed\]\:tw-animate-out[data-state=closed] {
     495  animation-name: exit;
     496  animation-duration: 150ms;
     497  --tw-exit-opacity: initial;
     498  --tw-exit-scale: initial;
     499  --tw-exit-rotate: initial;
     500  --tw-exit-translate-x: initial;
     501  --tw-exit-translate-y: initial;
     502}
     503.data-\[state\=closed\]\:tw-fade-out-0[data-state=closed] {
     504  --tw-exit-opacity: 0;
     505}
     506.data-\[state\=open\]\:tw-fade-in-0[data-state=open] {
     507  --tw-enter-opacity: 0;
     508}
     509.data-\[state\=closed\]\:tw-zoom-out-95[data-state=closed] {
     510  --tw-exit-scale: .95;
     511}
     512.data-\[state\=open\]\:tw-zoom-in-95[data-state=open] {
     513  --tw-enter-scale: .95;
     514}
     515.data-\[state\=closed\]\:tw-slide-out-to-left-1\/2[data-state=closed] {
     516  --tw-exit-translate-x: -50%;
     517}
     518.data-\[state\=closed\]\:tw-slide-out-to-top-\[48\%\][data-state=closed] {
     519  --tw-exit-translate-y: -48%;
     520}
     521.data-\[state\=open\]\:tw-slide-in-from-left-1\/2[data-state=open] {
     522  --tw-enter-translate-x: -50%;
     523}
     524.data-\[state\=open\]\:tw-slide-in-from-top-\[48\%\][data-state=open] {
     525  --tw-enter-translate-y: -48%;
     526}
     527@media (min-width: 400px) {
     528  .sm\:tw-flex-row {
     529    flex-direction: row;
     530  }
     531  .sm\:tw-justify-end {
     532    justify-content: flex-end;
     533  }
     534  .sm\:tw-space-x-2 > :not([hidden]) ~ :not([hidden]) {
     535    --tw-space-x-reverse: 0;
     536    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
     537    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
     538  }
     539  .sm\:tw-text-left {
     540    text-align: left;
     541  }
    373542}
    374543
  • godaddy-payments/trunk/assets/js/blocks/wc-poynt-checkout-block.js

    r3025639 r3035393  
    1 !function(){var e,t,r,n={500:function(e,t,r){"use strict";r.d(t,{Q:function(){return Bt}});var n=window.wp.element,o=r(991),a=r(196),i=r.t(a,2);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}var l=window.ReactDOM;function c(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function d(...e){return(0,a.useCallback)(c(...e),e)}const u=(0,a.forwardRef)(((e,t)=>{const{children:r,...n}=e,o=a.Children.toArray(r),i=o.find(m);if(i){const e=i.props.children,r=o.map((t=>t===i?a.Children.count(e)>1?a.Children.only(null):(0,a.isValidElement)(e)?e.props.children:null:t));return(0,a.createElement)(p,s({},n,{ref:t}),(0,a.isValidElement)(e)?(0,a.cloneElement)(e,void 0,r):null)}return(0,a.createElement)(p,s({},n,{ref:t}),r)}));u.displayName="Slot";const p=(0,a.forwardRef)(((e,t)=>{const{children:r,...n}=e;return(0,a.isValidElement)(r)?(0,a.cloneElement)(r,{...b(n,r.props),ref:t?c(t,r.ref):r.ref}):a.Children.count(r)>1?a.Children.only(null):null}));p.displayName="SlotClone";const f=({children:e})=>(0,a.createElement)(a.Fragment,null,e);function m(e){return(0,a.isValidElement)(e)&&e.type===f}function b(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{a(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const r=(0,a.forwardRef)(((e,r)=>{const{asChild:n,...o}=e,i=n?u:t;return(0,a.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,a.createElement)(i,s({},o,{ref:r}))}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),y=(0,a.forwardRef)(((e,t)=>(0,a.createElement)(g.label,s({},e,{ref:t,onMouseDown:t=>{var r;null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))));function v(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=v(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function w(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=v(e))&&(n&&(n+=" "),n+=t);return n}const h=w;!function e(t){function r(e,t,n){var o,a={};if(Array.isArray(e))return e.concat(t);for(o in e)a[n?o.toLowerCase():o]=e[o];for(o in t){var i=n?o.toLowerCase():o,s=t[o];a[i]=i in a&&"object"==typeof s?r(a[i],s,"headers"==i):s}return a}function n(e,n,o,a,i){var s="string"!=typeof e?(n=e).url:e,l={config:n},c=r(t,n),d={};a=a||c.data,(c.transformRequest||[]).map((function(e){a=e(a,c.headers)||a})),c.auth&&(d.authorization=c.auth),a&&"object"==typeof a&&"function"!=typeof a.append&&"function"!=typeof a.text&&(a=JSON.stringify(a),d["content-type"]="application/json");try{d[c.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+c.xsrfCookieName+"=([^;]*)"))[2])}catch(e){}return c.baseURL&&(s=s.replace(/^(?!.*\/\/)\/?/,c.baseURL+"/")),c.params&&(s+=(~s.indexOf("?")?"&":"?")+(c.paramsSerializer?c.paramsSerializer(c.params):new URLSearchParams(c.params))),(c.fetch||fetch)(s,{method:(o||c.method||"get").toUpperCase(),body:a,headers:r(c.headers,d,!0),credentials:c.withCredentials?"include":i}).then((function(e){for(var t in e)"function"!=typeof e[t]&&(l[t]=e[t]);return"stream"==c.responseType?(l.data=e.body,l):e[c.responseType||"text"]().then((function(e){l.data=e,l.data=JSON.parse(e)})).catch(Object).then((function(){return(c.validateStatus?c.validateStatus(e.status):e.ok)?l:Promise.reject(l)}))}))}return t=t||{},n.request=n,n.get=function(e,t){return n(e,t,"get")},n.delete=function(e,t){return n(e,t,"delete")},n.head=function(e,t){return n(e,t,"head")},n.options=function(e,t){return n(e,t,"options")},n.post=function(e,t,r){return n(e,r,"post",t)},n.put=function(e,t,r){return n(e,r,"put",t)},n.patch=function(e,t,r){return n(e,r,"patch",t)},n.all=Promise.all.bind(Promise),n.spread=function(e){return e.apply.bind(e,e)},n.CancelToken="function"==typeof AbortController?AbortController:Object,n.defaults=t,n.create=e,n}();var x=r(458);function C(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(null==e||e(n),!1===r||!n.defaultPrevented)return null==t?void 0:t(n)}}function k(e,t=[]){let r=[];const n=()=>{const t=r.map((e=>(0,a.createContext)(e)));return function(r){const n=(null==r?void 0:r[e])||t;return(0,a.useMemo)((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return n.scopeName=e,[function(t,n){const o=(0,a.createContext)(n),i=r.length;function s(t){const{scope:r,children:n,...s}=t,l=(null==r?void 0:r[e][i])||o,c=(0,a.useMemo)((()=>s),Object.values(s));return(0,a.createElement)(l.Provider,{value:c},n)}return r=[...r,n],s.displayName=t+"Provider",[s,function(r,s){const l=(null==s?void 0:s[e][i])||o,c=(0,a.useContext)(l);if(c)return c;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},E(n,...t)]}function E(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return(0,a.useMemo)((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}const P=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?a.useLayoutEffect:()=>{},S=i["useId".toString()]||(()=>{});let _=0;function O(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{t.current=e})),(0,a.useMemo)((()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}function N({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,o]=function({defaultProp:e,onChange:t}){const r=(0,a.useState)(e),[n]=r,o=(0,a.useRef)(n),i=O(t);return(0,a.useEffect)((()=>{o.current!==n&&(i(n),o.current=n)}),[n,o,i]),r}({defaultProp:t,onChange:r}),i=void 0!==e,s=i?e:n,l=O(r);return[s,(0,a.useCallback)((t=>{if(i){const r="function"==typeof t?t(e):t;r!==e&&l(r)}else o(t)}),[i,e,o,l])]}const R=(0,a.createContext)(void 0);function j(e){const t=(0,a.useContext)(R);return e||t||"ltr"}const I="rovingFocusGroup.onEntryFocus",M={bubbles:!1,cancelable:!0},T="RovingFocusGroup",[A,z,D]=function(e){const t=e+"CollectionProvider",[r,n]=k(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:r}=e,n=a.useRef(null),i=a.useRef(new Map).current;return a.createElement(o,{scope:t,itemMap:i,collectionRef:n},r)},Slot:a.forwardRef(((e,t)=>{const{scope:r,children:n}=e,o=d(t,i(s,r).collectionRef);return a.createElement(u,{ref:o},n)})),ItemSlot:a.forwardRef(((e,t)=>{const{scope:r,children:n,...o}=e,s=a.useRef(null),p=d(t,s),f=i(l,r);return a.useEffect((()=>(f.itemMap.set(s,{ref:s,...o}),()=>{f.itemMap.delete(s)}))),a.createElement(u,{[c]:"",ref:p},n)}))},function(t){const r=i(e+"CollectionConsumer",t);return a.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(r.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[r.collectionRef,r.itemMap])},n]}(T),[L,F]=k(T,[D]),[G,$]=L(T),U=(0,a.forwardRef)(((e,t)=>(0,a.createElement)(A.Provider,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(A.Slot,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(B,s({},e,{ref:t})))))),B=(0,a.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:p,...f}=e,m=(0,a.useRef)(null),b=d(t,m),y=j(i),[v=null,w]=N({prop:l,defaultProp:c,onChange:u}),[h,x]=(0,a.useState)(!1),k=O(p),E=z(r),P=(0,a.useRef)(!1),[S,_]=(0,a.useState)(0);return(0,a.useEffect)((()=>{const e=m.current;if(e)return e.addEventListener(I,k),()=>e.removeEventListener(I,k)}),[k]),(0,a.createElement)(G,{scope:r,orientation:n,dir:y,loop:o,currentTabStopId:v,onItemFocus:(0,a.useCallback)((e=>w(e)),[w]),onItemShiftTab:(0,a.useCallback)((()=>x(!0)),[]),onFocusableItemAdd:(0,a.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,a.useCallback)((()=>_((e=>e-1))),[])},(0,a.createElement)(g.div,s({tabIndex:h||0===S?-1:0,"data-orientation":n},f,{ref:b,style:{outline:"none",...e.style},onMouseDown:C(e.onMouseDown,(()=>{P.current=!0})),onFocus:C(e.onFocus,(e=>{const t=!P.current;if(e.target===e.currentTarget&&t&&!h){const t=new CustomEvent(I,M);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter((e=>e.focusable));V([e.find((e=>e.active)),e.find((e=>e.id===v)),...e].filter(Boolean).map((e=>e.ref.current)))}}P.current=!1})),onBlur:C(e.onBlur,(()=>x(!1)))})))})),q=(0,a.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,...l}=e,c=function(e){const[t,r]=a.useState(S());return P((()=>{r((e=>null!=e?e:String(_++)))}),[e]),t?`radix-${t}`:""}(),d=i||c,u=$("RovingFocusGroupItem",r),p=u.currentTabStopId===d,f=z(r),{onFocusableItemAdd:m,onFocusableItemRemove:b}=u;return(0,a.useEffect)((()=>{if(n)return m(),()=>b()}),[n,m,b]),(0,a.createElement)(A.ItemSlot,{scope:r,id:d,focusable:n,active:o},(0,a.createElement)(g.span,s({tabIndex:p?0:-1,"data-orientation":u.orientation},l,{ref:t,onMouseDown:C(e.onMouseDown,(e=>{n?u.onItemFocus(d):e.preventDefault()})),onFocus:C(e.onFocus,(()=>u.onItemFocus(d))),onKeyDown:C(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:W[n]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=u.loop?(n=a+1,(r=o).map(((e,t)=>r[(n+t)%r.length]))):o.slice(a+1)}setTimeout((()=>V(o)))}var r,n}))})))})),W={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function V(e){const t=document.activeElement;for(const r of e){if(r===t)return;if(r.focus(),document.activeElement!==t)return}}const H=U,Z=q,J=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=(0,a.useState)(),n=(0,a.useRef)({}),o=(0,a.useRef)(e),i=(0,a.useRef)("none"),s=e?"mounted":"unmounted",[c,d]=function(e,t){return(0,a.useReducer)(((e,r)=>{const n=t[e][r];return null!=n?n:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,a.useEffect)((()=>{const e=K(n.current);i.current="mounted"===c?e:"none"}),[c]),P((()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,a=K(t);e?d("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?d("UNMOUNT"):d(r&&n!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,d]),P((()=>{if(t){const e=e=>{const r=K(n.current).includes(e.animationName);e.target===t&&r&&(0,l.flushSync)((()=>d("ANIMATION_END")))},r=e=>{e.target===t&&(i.current=K(n.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:(0,a.useCallback)((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),o="function"==typeof r?r({present:n.isPresent}):a.Children.only(r),i=d(n.ref,o.ref);return"function"==typeof r||n.isPresent?(0,a.cloneElement)(o,{ref:i}):null};function K(e){return(null==e?void 0:e.animationName)||"none"}J.displayName="Presence";const Y="Radio",[X,Q]=k(Y),[ee,te]=X(Y),re=(0,a.forwardRef)(((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:i,disabled:l,value:c="on",onCheck:u,...p}=e,[f,m]=(0,a.useState)(null),b=d(t,(e=>m(e))),y=(0,a.useRef)(!1),v=!f||Boolean(f.closest("form"));return(0,a.createElement)(ee,{scope:r,checked:o,disabled:l},(0,a.createElement)(g.button,s({type:"button",role:"radio","aria-checked":o,"data-state":ae(o),"data-disabled":l?"":void 0,disabled:l,value:c},p,{ref:b,onClick:C(e.onClick,(e=>{o||null==u||u(),v&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))})),v&&(0,a.createElement)(oe,{control:f,bubbles:!y.current,name:n,value:c,checked:o,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))})),ne=(0,a.forwardRef)(((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=te("RadioIndicator",r);return(0,a.createElement)(J,{present:n||i.checked},(0,a.createElement)(g.span,s({"data-state":ae(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),oe=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,i=(0,a.useRef)(null),l=function(e){const t=(0,a.useRef)({value:e,previous:e});return(0,a.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(r),c=function(e){const[t,r]=(0,a.useState)(void 0);return P((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),t}(t);return(0,a.useEffect)((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==r&&o){const t=new Event("click",{bubbles:n});o.call(e,r),e.dispatchEvent(t)}}),[l,r,n]),(0,a.createElement)("input",s({type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ae(e){return e?"checked":"unchecked"}const ie=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],se="RadioGroup",[le,ce]=k(se,[F,Q]),de=F(),ue=Q(),[pe,fe]=le(se),me=(0,a.forwardRef)(((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:l=!1,disabled:c=!1,orientation:d,dir:u,loop:p=!0,onValueChange:f,...m}=e,b=de(r),y=j(u),[v,w]=N({prop:i,defaultProp:o,onChange:f});return(0,a.createElement)(pe,{scope:r,name:n,required:l,disabled:c,value:v,onValueChange:w},(0,a.createElement)(H,s({asChild:!0},b,{orientation:d,dir:y,loop:p}),(0,a.createElement)(g.div,s({role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":c?"":void 0,dir:y},m,{ref:t}))))})),be=(0,a.forwardRef)(((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=fe("RadioGroupItem",r),l=i.disabled||n,c=de(r),u=ue(r),p=(0,a.useRef)(null),f=d(t,p),m=i.value===o.value,b=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{const e=e=>{ie.includes(e.key)&&(b.current=!0)},t=()=>b.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),(0,a.createElement)(Z,s({asChild:!0},c,{focusable:!l,active:m}),(0,a.createElement)(re,s({disabled:l,required:i.required,checked:m},u,o,{name:i.name,ref:f,onCheck:()=>i.onValueChange(o.value),onKeyDown:C((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:C(o.onFocus,(()=>{var e;b.current&&(null===(e=p.current)||void 0===e||e.click())}))})))})),ge=(0,a.forwardRef)(((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=ue(r);return(0,a.createElement)(ne,s({},o,n,{ref:t}))}));var ye={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const ve=((e,t)=>{const r=(0,a.forwardRef)((({color:r="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:s,...l},c)=>{return(0,a.createElement)("svg",{ref:c,...ye,width:n,height:n,stroke:r,strokeWidth:i?24*Number(o)/Number(n):o,className:`lucide lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...l},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...(Array.isArray(s)?s:[s])||[]]);var d}));return r.displayName=`${e}`,r})("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);window.wp.components,window.wp.compose;var we,he,xe=window.wp.htmlEntities,Ce=window.wp.i18n,ke=Object.create,Ee=Object.defineProperty,Pe=Object.defineProperties,Se=Object.getOwnPropertyDescriptor,_e=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,Re=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Me=(e,t,r)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Te=(e,t)=>{for(var r in t||(t={}))je.call(t,r)&&Me(e,r,t[r]);if(Ne)for(var r of Ne(t))Ie.call(t,r)&&Me(e,r,t[r]);return e},Ae=(e,t)=>Pe(e,_e(t)),ze=(e,t)=>{var r={};for(var n in e)je.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ne)for(var n of Ne(e))t.indexOf(n)<0&&Ie.call(e,n)&&(r[n]=e[n]);return r},De=(we={"../woocommerce/dist/index.js"(e,t){var r,n,o,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(c,{formatPrice:()=>g,getSetting:()=>y,registerExpressPaymentMethod:()=>v,registerPaymentMethod:()=>w}),t.exports=(r=c,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of s(t))l.call(e,r)||undefined===r||a(e,r,{get:()=>t[r],enumerable:!(n=i(t,r))||n.enumerable});return e})(a({},"__esModule",{value:!0}),r));var d,u,p,f,m,b,g=(null==(o=null==(n=null==window?void 0:window.wc)?void 0:n.priceFormat)?void 0:o.formatPrice)||(e=>(console.error("formatPrice was not defined"),e)),y=(null==(u=null==(d=null==window?void 0:window.wc)?void 0:d.wcSettings)?void 0:u.getSetting)||(()=>(console.error("getSetting was not defined"),{})),v=(null==(f=null==(p=null==window?void 0:window.wc)?void 0:p.wcBlocksRegistry)?void 0:f.registerExpressPaymentMethod)||(()=>(console.error("registerExpressPaymentMethod was not defined"),null)),w=(null==(b=null==(m=null==window?void 0:window.wc)?void 0:m.wcBlocksRegistry)?void 0:b.registerPaymentMethod)||(()=>(console.error("registerPaymentMethod was not defined"),null))}},function(){return he||(0,we[Oe(we)[0]])((he={exports:{}}).exports,he),he.exports});function Le(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Fe(e))&&(n&&(n+=" "),n+=t);return n}function Fe(e){if("string"==typeof e)return e;for(var t,r="",n=0;n<e.length;n++)e[n]&&(t=Fe(e[n]))&&(r&&(r+=" "),r+=t);return r}var Ge="-";function $e(e){var t=function(e){var t=e.theme,r=e.prefix,n={nextPart:new Map,validators:[]},o=function(e,t){return t?e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var r=e[0],n=e[1];return[t+r,n]}))):e}))]})):e}(Object.entries(e.classGroups),r);return o.forEach((function(e){var r=e[0];qe(e[1],n,r,t)})),n}(e),r=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,o=void 0===n?{}:n;return{getClassGroupId:function(e){var r=e.split(Ge);return""===r[0]&&1!==r.length&&r.shift(),Ue(r,t)||function(e){if(Be.test(e)){var t=Be.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var n=r[e]||[];return t&&o[e]?[].concat(n,o[e]):n}}}function Ue(e,t){var r;if(0===e.length)return t.classGroupId;var n=e[0],o=t.nextPart.get(n),a=o?Ue(e.slice(1),o):void 0;if(a)return a;if(0!==t.validators.length){var i=e.join(Ge);return null==(r=t.validators.find((function(e){return(0,e.validator)(i)})))?void 0:r.classGroupId}}var Be=/^\[(.+)\]$/;function qe(e,t,r,n){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void qe(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((function(e){var o=e[0];qe(e[1],We(t,o),r,n)}))}else(""===e?t:We(t,e)).classGroupId=r}))}function We(e,t){var r=e;return t.split(Ge).forEach((function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function Ve(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function o(o,a){r.set(o,a),++t>e&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):o(e,t)}}}var He="!";function Ze(e){var t=e.separator||":",r=1===t.length,n=t[0],o=t.length;return function(e){for(var a,i=[],s=0,l=0,c=0;c<e.length;c++){var d=e[c];if(0===s){if(d===n&&(r||e.slice(c,c+o)===t)){i.push(e.slice(l,c)),l=c+o;continue}if("/"===d){a=c;continue}}"["===d?s++:"]"===d&&s--}var u=0===i.length?e:e.substring(l),p=u.startsWith(He);return{modifiers:i,hasImportantModifier:p,baseClassName:p?u.substring(1):u,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}}var Je=/\s+/;function Ke(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o,a,i=function(e){var r=t[0],l=t.slice(1).reduce((function(e,t){return t(e)}),r());return n=function(e){return Te({cache:Ve(e.cacheSize),splitModifiers:Ze(e)},$e(e))}(l),o=n.cache.get,a=n.cache.set,i=s,s(e)};function s(e){var t=o(e);if(t)return t;var r=function(e,t){var r=t.splitModifiers,n=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Je).map((function(e){var t=r(e),o=t.modifiers,a=t.hasImportantModifier,i=t.baseClassName,s=t.maybePostfixModifierPosition,l=n(s?i.substring(0,s):i),c=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=n(i)))return{isTailwindClass:!1,originalClassName:e};c=!1}var d=function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)})),t.push.apply(t,r.sort()),t}(o).join(":");return{isTailwindClass:!0,modifierId:a?d+He:d,classGroupId:l,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,i=t+r;return!a.has(i)&&(a.add(i),o(r,n).forEach((function(e){return a.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,n);return a(e,r),r}return function(){return i(Le.apply(null,arguments))}}function Ye(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var Xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qe=/^\d+\/\d+$/,et=new Set(["px","full","screen"]),tt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,rt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nt=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function ot(e){return dt(e)||et.has(e)||Qe.test(e)||at(e)}function at(e){return yt(e,"length",vt)}function it(e){return yt(e,"size",wt)}function st(e){return yt(e,"position",wt)}function lt(e){return yt(e,"url",ht)}function ct(e){return yt(e,"number",dt)}function dt(e){return!Number.isNaN(Number(e))}function ut(e){return e.endsWith("%")&&dt(e.slice(0,-1))}function pt(e){return xt(e)||yt(e,"number",xt)}function ft(e){return Xe.test(e)}function mt(){return!0}function bt(e){return tt.test(e)}function gt(e){return yt(e,"",Ct)}function yt(e,t,r){var n=Xe.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function vt(e){return rt.test(e)}function wt(){return!1}function ht(e){return e.startsWith("url(")}function xt(e){return Number.isInteger(Number(e))}function Ct(e){return nt.test(e)}function kt(){var e=Ye("colors"),t=Ye("spacing"),r=Ye("blur"),n=Ye("brightness"),o=Ye("borderColor"),a=Ye("borderRadius"),i=Ye("borderSpacing"),s=Ye("borderWidth"),l=Ye("contrast"),c=Ye("grayscale"),d=Ye("hueRotate"),u=Ye("invert"),p=Ye("gap"),f=Ye("gradientColorStops"),m=Ye("gradientColorStopPositions"),b=Ye("inset"),g=Ye("margin"),y=Ye("opacity"),v=Ye("padding"),w=Ye("saturate"),h=Ye("scale"),x=Ye("sepia"),C=Ye("skew"),k=Ye("space"),E=Ye("translate"),P=function(){return["auto",ft,t]},S=function(){return[ft,t]},_=function(){return["",ot]},O=function(){return["auto",dt,ft]},N=function(){return["","0",ft]},R=function(){return[dt,ct]},j=function(){return[dt,ft]};return{cacheSize:500,theme:{colors:[mt],spacing:[ot],blur:["none","",bt,ft],brightness:R(),borderColor:[e],borderRadius:["none","","full",bt,ft],borderSpacing:S(),borderWidth:_(),contrast:R(),grayscale:N(),hueRotate:j(),invert:N(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[ut,at],inset:P(),margin:P(),opacity:R(),padding:S(),saturate:R(),scale:R(),sepia:N(),skew:j(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",ft]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[ft])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",pt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ft]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",pt]}],"grid-cols":[{"grid-cols":[mt]}],"col-start-end":[{col:["auto",{span:["full",pt]},ft]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[mt]}],"row-start-end":[{row:["auto",{span:[pt]},ft]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ft]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ft]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ft,t]}],"min-w":[{"min-w":["min","max","fit",ft,ot]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[bt]},bt,ft]}],h:[{h:[ft,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ft,ot]}],"max-h":[{"max-h":[ft,t,"min","max","fit"]}],"font-size":[{text:["base",bt,at]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ct]}],"font-family":[{font:[mt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ft]}],"line-clamp":[{"line-clamp":["none",dt,ct]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ft,ot]}],"list-image":[{"list-image":["none",ft]}],"list-style-type":[{list:["none","disc","decimal",ft]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",ot]}],"underline-offset":[{"underline-offset":["auto",ft,ot]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ft]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ft]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[st])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",it]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[ft,ot]}],"outline-w":[{outline:[ot]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ot]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,gt]}],"shadow-color":[{shadow:[mt]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",bt,ft]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ft]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",ft]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",ft]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[h]}],"scale-x":[{"scale-x":[h]}],"scale-y":[{"scale-y":[h]}],rotate:[{rotate:[pt,ft]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ft]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ft]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ft]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ot,ct]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Et=Ke(kt);function Pt(...e){return Et(w(e))}var St,_t="color: #03a9f4; font-weight: bold;",Ot="color: currentColor",Nt=(St="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e=>h(St,null==e?void 0:e.class,null==e?void 0:e.className));function Rt({settings:e={},context:t="checkout"}){var r;return(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{children:(0,xe.decodeEntities)(e.description||"")}),(null==(r=e.flags)?void 0:r.is_test_environment)&&"edit"!==t&&(0,x.jsx)("strong",{children:(0,Ce.__)("Test Mode Enabled","wc-plugin-framework").toUpperCase()})]})}(0,a.forwardRef)(((e,t)=>{var r=e,{className:n}=r,o=ze(r,["className"]);return(0,x.jsx)(y,Te({ref:t,className:Pt(Nt(),n)},o))})).displayName=y.displayName,(0,a.forwardRef)(((e,t)=>{var r=e,{className:n}=r,o=ze(r,["className"]);return(0,x.jsx)(me,Ae(Te({className:Pt("tw-grid tw-gap-2",n)},o),{ref:t}))})).displayName=me.displayName,(0,a.forwardRef)(((e,t)=>{var r=e,{className:n}=r,o=ze(r,["className"]);return(0,x.jsx)(be,Ae(Te({ref:t,className:Pt("tw-aspect-square tw-h-4 tw-w-4 tw-rounded-full tw-border tw-border-primary tw-text-primary tw-ring-offset-background focus:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50",n)},o),{children:(0,x.jsx)(ge,{className:"tw-flex tw-items-center tw-justify-center",children:(0,x.jsx)(ve,{className:"tw-h-10px tw-w-10px tw-fill-current tw-text-current"})})}))})).displayName=be.displayName;var jt={dinersclub:"diners",disc:"discover",mc:"mastercard"};function It(e){var t,r,n=e,{labelIcon:o,cardIcons:a=[],title:i,children:s}=n,l=ze(n,["labelIcon","cardIcons","title","children"]);const c=null==(t=l.components)?void 0:t.PaymentMethodLabel,d=null==(r=l.components)?void 0:r.PaymentMethodIcons,u=(0,xe.decodeEntities)(i),p=null==a?void 0:a.map((e=>jt[e]||e));return(0,x.jsxs)("div",{className:"tw-flex tw-w-full tw-place-content-between tw-items-center tw-mr-12px",children:[(0,x.jsx)(c,{icon:o,text:u}),p?(0,x.jsx)(d,{icons:p}):null,s]})}((e,t,r)=>{r=null!=e?ke(Re(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of Oe(t))je.call(e,r)||undefined===r||Ee(e,r,{get:()=>t[r],enumerable:!(n=Se(t,r))||n.enumerable})})(e&&e.__esModule?r:Ee(r,"default",{value:e,enumerable:!0}),e)})(De());var Mt,Tt,At=(0,a.forwardRef)((function(e,t){var r=e,{className:n,classNames:o,disabled:i,feedback:s,id:l,isInvalid:c,label:d="",name:u,onBlur:p,onFocus:f,placeholder:m,type:b="text",value:g}=r,y=ze(r,["className","classNames","disabled","feedback","id","isInvalid","label","name","onBlur","onFocus","placeholder","type","value"]);const[v,w]=(0,a.useState)(!1),h=(0,a.useRef)(null);return(0,a.useImperativeHandle)(t,(()=>h.current)),(0,a.useEffect)((()=>{g&&w(!0)}),[g]),(0,x.jsxs)("div",{className:Pt("wc-block-components-text-input !tw-mt-24px",v?"is-active":"",c?"has-error":"",n,null==o?void 0:o.root),children:[(0,x.jsx)("label",{className:Pt(n,null==o?void 0:o.label),htmlFor:l||u,onClick:()=>{var e;i||(w(!0),null==(e=null==h?void 0:h.current)||e.focus())},children:d}),s||null,(0,x.jsx)("input",Te({id:l||u,type:b,value:g,"aria-label":d,autoCapitalize:"off",onFocus:e=>{w(!0),null==f||f(e)},ref:t,onBlur:e=>{e.target.value||w(!1),null==p||p(e)},className:Pt(n,null==o?void 0:o.input),placeholder:v?m:""},y))]})}));function zt({debug:e=!1,logTagStyle:t=_t,logTextStyle:r=Ot,tag:n}){return(0,a.useCallback)((({message:o,prefix:a})=>{!function(e){var t,r,n;t=this,r=arguments,n=function*({debug:e=!1,logTagStyle:t=_t,logTextStyle:r=Ot,message:n="",prefix:o,tag:a}){e&&n&&("object"==typeof n?console.debug(`%c[${a}]%c${o?` ${o}`:""}: %O`,t,r,n):console.debug(`%c[${a}]%c${o?` ${o}`:""}: %s`,t,r,n))},new Promise(((e,o)=>{var a=e=>{try{s(n.next(e))}catch(e){o(e)}},i=e=>{try{s(n.throw(e))}catch(e){o(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,i);s((n=n.apply(t,r)).next())}))}({debug:e,logTagStyle:t,logTextStyle:r,message:o,prefix:a,tag:n})}),[e,t,r,n])}null==(Tt=null==(Mt=null==window?void 0:window.wc)?void 0:Mt.blocksCheckout)||Tt.TextInput,(0,a.forwardRef)((function(e,t){return(0,x.jsx)(At,Ae(Te({},e),{ref:t}))})),(0,a.forwardRef)((function({options:e,value:t,onChange:r,labelText:n,name:o,className:a=""},i){return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("div",{className:Pt("wc-block-components-text-input is-active tw-w-full",a),children:[(0,x.jsx)("label",{htmlFor:o,children:n}),(0,x.jsx)("select",{name:o,onChange:r,value:t,ref:i,className:"tw-block tw-w-full tw-height-48px tw-border tw-rounded-sm tw-pt-[1.5em] tw-pb-[0.25em] tw-indent-2 tw-leading-none tw-bg-no-repeat",children:e})]})})}));const Dt={labels:!0,paymentLabel:!1,zipCode:!1,firstName:!1,lastName:!1,emailAddress:!1,phone:!1,line1:!1,line2:!1,city:!1,territory:!1,countryCode:!1,collectShippingAddress:!1,shippingAddressSameAsBilling:!0,submitButton:!1},Lt={border:"0px",borderRadius:"0px",boxShadow:"none",height:"208px",width:"100%"},Ft={container:"\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(2, 1fr);\n\t\t\tcolumn-gap: 1rem;\n\t\t\trow-gap: 16px;\n\t\t\tpadding: 0 1px;\n\t\t",requiredMark:"\n\t\t\tcolor: rgb(226, 64, 28);\n\t\t\tpadding-left: 2px;\n\t\t\ttranslate: 0 -2px;\n\t\t\tdisplay: inline-block;\n\t\t",rowCardNumber:"\n\t\t\tgrid-column: span 2 / span 2;\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",rowExpiration:"\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",rowCVV:"\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",rowZip:"\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",inputDefault:'\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid #50575e;\n\t\t\tborder-radius: 4px;\n\t\t\tbox-sizing: border-box;\n\t\t\tcolor: #2b2d2f;\n\t\t\tfont-family: inherit;\n\t\t\tfont-size: 1em;\n\t\t\tline-height: 1em;\n\t\t\t&::placeholder {\n\t\t\t\tcolor: #6d6d6d;\n\t\t\t}\n\t\t\t&:focus {\n\t\t\t\toutline: 1px solid #000;\n\t\t\t\tborder-color: #000;\n\t\t\t}\n\t\t\tpadding: 1em;\n\t\t\t&[data-error="true"] {\n\t\t\t\tborder: 1px solid #b61717;\n\t\t\t\t&:focus {\n\t\t\t\t\toutline: 1px solid #b61717;\n\t\t\t\t}\n\t\t\t\t&::placeholder {\n\t\t\t\t\tcolor: #b61717;\n\t\t\t\t}\n\t\t\t}\n\t\t',inputLabel:"\n\t\t\tfont-size: 12px;\n\t\t\ttext-transform: capitalize;\n\t\t\tcolor: #6d6d6d;\n\t\t",reCaptcha:{text:"\n\t\t\t\tgrid-column: span 2 / span 2;\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\tcolor: #6d6d6d;\n\t\t\t",link:"\n\t\t\t\tcolor: #6d6d6d;\n\t\t\t\tfont-weight: normal;\n\t\t\t"}},Gt={theme:"checkout"};function $t({creditCardSettings:e,showZip:t}){const r=Lt?.height,n=e?.gateway?.mountOptions?.enableReCaptcha||"TEXT"===e?.gateway?.mountOptions?.reCaptchaOptions?.type;return`\n\t\tcalc(\n\t\t\t${r}\n\t\t\t+ ${n?"48px":"0px"}\n\t\t\t+ ${n&&"TEXT"!==e?.gateway?.mountOptions?.reCaptchaOptions?.type?"16px":"0px"}\n\t\t\t+ ${t?"96px":"0px"}\n\t\t)\n\t`}const Ut={general_error:(0,Ce.__)("An error occurred, please try again or try an alternate form of payment.","godaddy-payment")},Bt="poynt_credit_card",qt="pay_in_person",Wt=(0,o.getSetting)(`${Bt}_data`,{title:(0,Ce.__)("Credit Card","godaddy-payment"),description:"",supports:[],flags:{tokenization_enabled:!1}});(0,o.registerPaymentMethod)({name:Bt,label:(0,n.createElement)(It,{title:Wt?.title||(0,Ce.__)("Credit Card","godaddy-payment"),cardIcons:Wt?.enabled_card_types}),content:(0,n.createElement)((function({eventRegistration:e,emitResponse:t,billing:r,creditCardSettings:o}){const a=`wc-${o?.id}`,i=`${a}-hosted-form`,s=zt({debug:o?.flags?.logging_enabled,tag:"Godaddy Payments"}),l=e?.onPaymentSetup,c=e?.onCheckoutFail;(0,n.useEffect)((()=>{const e=c?.((async e=>{const{paymentStatus:r,paymentDetails:n}=e.processingResponse;if(r===t?.responseTypes.FAIL&&n.result===t?.responseTypes.FAIL&&n.message)return{type:t?.responseTypes.FAIL,message:o?.flags?.detailed_decline_messages_enabled?n.message:Ut.general_error,messageContext:"checkout"===o?.debug_mode?t?.noticeContexts?.CHECKOUT:t?.noticeContexts?.PAYMENTS,retry:!0}}));return()=>e?.()}),[o?.debug_mode,o?.flags?.detailed_decline_messages_enabled,t?.noticeContexts?.CHECKOUT,t?.noticeContexts?.PAYMENTS,t?.responseTypes.FAIL,c]);const d=(0,n.useMemo)((()=>({firstName:r?.billingAddress?.first_name,lastName:r?.billingAddress?.last_name,line1:r?.billingAddress?.address_1,zipCode:r?.billingAddress?.postcode})),[r?.billingAddress?.address_1,r?.billingAddress?.first_name,r?.billingAddress?.last_name,r?.billingAddress?.postcode]),{collect:u}=function({creditCardSettings:e,debugLog:t}){return{collect:(0,n.useMemo)((()=>{if(window?.TokenizeJs&&e?.gateway?.appId&&e?.gateway?.businessId){const r=new window.TokenizeJs(e?.gateway?.businessId,e?.gateway?.appId);return r.on("ready",(e=>{"ready"===e?.type&&t({prefix:"GoDaddy Payments",message:"Collect instance ready"})})),r}window?.TokenizeJs||t({prefix:"GoDaddy Payments",message:"TokenizeJs not available"}),e?.gateway?.appId||e?.gateway?.businessId||t({prefix:"GoDaddy Payments",message:"App ID or Business ID not available"})}),[e?.gateway?.appId,e?.gateway?.businessId,t])}}({creditCardSettings:o,debugLog:s}),p=!d.zipCode,[f]=(0,n.useState)(p);return function({collect:e,creditCardSettings:t,showZip:r=!1,hostedFieldId:o}){(0,n.useEffect)((()=>(e?.mount(o,document,{...t?.gateway?.mountOptions,displayComponents:{...Dt,...t?.gateway?.mountOptions?.displayComponents,...r?{zipCode:!0}:{}},iFrame:{...Lt,...t?.gateway?.mountOptions?.iFrame,height:$t({creditCardSettings:t,showZip:r})},customCss:{...Ft,...t?.gateway?.mountOptions?.customCss},style:{...Gt,...t?.gateway?.mountOptions?.style}}),()=>{e?.unmount(o,document)})),[o,e,t?.gateway?.mountOptions,r,t])}({collect:u,creditCardSettings:o,showZip:f,hostedFieldId:i}),function({debugLog:e,collect:t,emitResponse:r,billingInfo:o,onPaymentSetup:a}){(0,n.useEffect)((()=>{const n=a?.((async()=>{if(!t)return e({prefix:"GoDaddy Payments",message:"GoDaddy Payments request not ready"}),{type:r?.responseTypes.ERROR,message:"GoDaddy Payments request not ready",messageContext:r?.noticeContexts?.PAYMENTS};try{e({prefix:"GoDaddy Payments",message:"Dispatching GoDaddy Payments request"});const n=await async function({collect:e,billingInfo:t}){return new Promise(((r,n)=>{e.on("nonce",(e=>{r(e)})),e.on("error",(e=>{n(e)})),e.getNonce({firstName:t?.firstName,lastName:t?.lastName,line1:t?.line1,zipCode:t?.zipCode})}))}({collect:t,billingInfo:o});return e({prefix:"GoDaddy Payments",message:"Successfully processed payment"}),{type:r?.responseTypes.SUCCESS,meta:{paymentMethodData:{[`wc_${Bt}_nonce`]:n?.data?.nonce}}}}catch(t){return e({prefix:"GoDaddy Payments",message:"Error processing payment"}),{type:r?.responseTypes.ERROR,message:"Error processing payment",messageContext:r?.noticeContexts?.PAYMENTS}}}));return()=>{n?.()}}),[o,t,e,r?.noticeContexts?.PAYMENTS,r?.responseTypes.ERROR,r?.responseTypes.SUCCESS,a])}({debugLog:s,collect:u,emitResponse:t,billingInfo:d,onPaymentSetup:l}),(0,n.createElement)("div",{id:a,className:"tw-grid"},(0,n.createElement)(Rt,{settings:o}),(0,n.createElement)("div",{id:i,className:"tw-flex"}))}),{creditCardSettings:Wt}),edit:(0,n.createElement)(Rt,{settings:Wt,context:"edit"}),canMakePayment:()=>!0,placeOrderButtonLabel:(0,Ce.__)("Place Order","godaddy-payment"),ariaLabel:Wt?.title||(0,Ce.__)("Credit Card","godaddy-payment"),supports:{showSavedCards:Wt?.flags?.tokenization_enabled,showSaveOption:Wt?.flags?.tokenization_enabled,features:Wt?.supports}});const Vt=(0,o.getSetting)(`${qt}_data`,{title:(0,Ce.__)("Pay in Person","godaddy-payment"),description:"",supports:[],flags:{tokenization_enabled:!1}});(0,o.registerPaymentMethod)({name:qt,label:(0,n.createElement)(It,{title:Vt?.title||(0,Ce.__)("Pay in Person","godaddy-payment")}),content:(0,n.createElement)((function({eventRegistration:e,emitResponse:t,payInPersonSettings:r}){const o=`wc-${r?.id}`,a=e?.onPaymentSetup;return(0,n.useEffect)((()=>{const e=a?.((async()=>({type:t?.responseTypes.SUCCESS})));return()=>{e?.()}}),[t?.responseTypes.SUCCESS,a]),(0,n.createElement)("div",{id:o,className:"tw-grid"},(0,n.createElement)(Rt,{settings:r}))}),{payInPersonSettings:Vt}),edit:(0,n.createElement)(Rt,{settings:Vt,context:"edit"}),canMakePayment:()=>!0,placeOrderButtonLabel:(0,Ce.__)("Place Order","godaddy-payment"),ariaLabel:Vt?.title||(0,Ce.__)("Pay in Person","godaddy-payment"),supports:{showSavedCards:!1,showSaveOption:!1,features:Vt?.supports}})},991:function(e){var t,r,n,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(l,{formatPrice:()=>b,getSetting:()=>g,registerExpressPaymentMethod:()=>y,registerPaymentMethod:()=>v}),e.exports=(t=l,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of i(t))s.call(e,r)||undefined===r||o(e,r,{get:()=>t[r],enumerable:!(n=a(t,r))||n.enumerable});return e})(o({},"__esModule",{value:!0}),t));var c,d,u,p,f,m,b=(null==(n=null==(r=null==window?void 0:window.wc)?void 0:r.priceFormat)?void 0:n.formatPrice)||(e=>(console.error("formatPrice was not defined"),e)),g=(null==(d=null==(c=null==window?void 0:window.wc)?void 0:c.wcSettings)?void 0:d.getSetting)||(()=>(console.error("getSetting was not defined"),{})),y=(null==(p=null==(u=null==window?void 0:window.wc)?void 0:u.wcBlocksRegistry)?void 0:p.registerExpressPaymentMethod)||(()=>(console.error("registerExpressPaymentMethod was not defined"),null)),v=(null==(m=null==(f=null==window?void 0:window.wc)?void 0:f.wcBlocksRegistry)?void 0:m.registerPaymentMethod)||(()=>(console.error("registerPaymentMethod was not defined"),null))},53:function(e,t,r){"use strict";var n=r(196),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,d=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:d,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},458:function(e,t,r){"use strict";e.exports=r(53)},196:function(e){"use strict";e.exports=window.React}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.m=n,e=[],a.O=function(t,r,n,o){if(!r){var i=1/0;for(d=0;d<e.length;d++){r=e[d][0],n=e[d][1],o=e[d][2];for(var s=!0,l=0;l<r.length;l++)(!1&o||i>=o)&&Object.keys(a.O).every((function(e){return a.O[e](r[l])}))?r.splice(l--,1):(s=!1,o<i&&(i=o));if(s){e.splice(d--,1);var c=n();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[r,n,o]},r=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,n){if(1&n&&(e=this(e)),8&n)return e;if("object"==typeof e&&e){if(4&n&&e.__esModule)return e;if(16&n&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};t=t||[null,r({}),r([]),r(r)];for(var s=2&n&&e;"object"==typeof s&&!~t.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},a.d(o,i),o},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e={65:0,899:0};a.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,o,i=r[0],s=r[1],l=r[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(l)var d=l(a)}for(t&&t(r);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(d)},r=self.webpackChunk_gdcorp_partners_woocommerce_gateway_godaddy_payments=self.webpackChunk_gdcorp_partners_woocommerce_gateway_godaddy_payments||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var i=a.O(void 0,[899],(function(){return a(500)}));i=a.O(i)}();
     1(()=>{var e,t,n,r={980:(e,t,n)=>{"use strict";n.d(t,{ue:()=>Ar});const r=window.wp.element;var o=n(56),a=n(280),i=n.t(a,2);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const c=window.ReactDOM;function d(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function u(...e){return(0,a.useCallback)(d(...e),e)}const f=(0,a.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=a.Children.toArray(n),i=o.find(g);if(i){const e=i.props.children,n=o.map((t=>t===i?a.Children.count(e)>1?a.Children.only(null):(0,a.isValidElement)(e)?e.props.children:null:t));return(0,a.createElement)(p,l({},r,{ref:t}),(0,a.isValidElement)(e)?(0,a.cloneElement)(e,void 0,n):null)}return(0,a.createElement)(p,l({},r,{ref:t}),n)}));f.displayName="Slot";const p=(0,a.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,a.isValidElement)(n)?(0,a.cloneElement)(n,{...v(r,n.props),ref:t?d(t,n.ref):n.ref}):a.Children.count(n)>1?a.Children.only(null):null}));p.displayName="SlotClone";const m=({children:e})=>(0,a.createElement)(a.Fragment,null,e);function g(e){return(0,a.isValidElement)(e)&&e.type===m}function v(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,a.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?f:t;return(0,a.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,a.createElement)(i,l({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{}),h=(0,a.forwardRef)(((e,t)=>(0,a.createElement)(b.label,s({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))));function y(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=y(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function w(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=y(e))&&(r&&(r+=" "),r+=t);return r}const x=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,E=w,C=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return E(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=x(t)||x(r);return o[e][i]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n}))?[...e,n,r]:e}),[]);return E(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)};!function e(t){function n(e,t,r){var o,a={};if(Array.isArray(e))return e.concat(t);for(o in e)a[r?o.toLowerCase():o]=e[o];for(o in t){var i=r?o.toLowerCase():o,s=t[o];a[i]=i in a&&"object"==typeof s?n(a[i],s,"headers"==i):s}return a}function r(e,r,o,a,i){var s="string"!=typeof e?(r=e).url:e,l={config:r},c=n(t,r),d={};a=a||c.data,(c.transformRequest||[]).map((function(e){a=e(a,c.headers)||a})),c.auth&&(d.authorization=c.auth),a&&"object"==typeof a&&"function"!=typeof a.append&&"function"!=typeof a.text&&(a=JSON.stringify(a),d["content-type"]="application/json");try{d[c.xsrfHeaderName]=decodeURIComponent(document.cookie.match(RegExp("(^|; )"+c.xsrfCookieName+"=([^;]*)"))[2])}catch(e){}return c.baseURL&&(s=s.replace(/^(?!.*\/\/)\/?/,c.baseURL+"/")),c.params&&(s+=(~s.indexOf("?")?"&":"?")+(c.paramsSerializer?c.paramsSerializer(c.params):new URLSearchParams(c.params))),(c.fetch||fetch)(s,{method:(o||c.method||"get").toUpperCase(),body:a,headers:n(c.headers,d,!0),credentials:c.withCredentials?"include":i}).then((function(e){for(var t in e)"function"!=typeof e[t]&&(l[t]=e[t]);return"stream"==c.responseType?(l.data=e.body,l):e[c.responseType||"text"]().then((function(e){l.data=e,l.data=JSON.parse(e)})).catch(Object).then((function(){return(c.validateStatus?c.validateStatus(e.status):e.ok)?l:Promise.reject(l)}))}))}return t=t||{},r.request=r,r.get=function(e,t){return r(e,t,"get")},r.delete=function(e,t){return r(e,t,"delete")},r.head=function(e,t){return r(e,t,"head")},r.options=function(e,t){return r(e,t,"options")},r.post=function(e,t,n){return r(e,n,"post",t)},r.put=function(e,t,n){return r(e,n,"put",t)},r.patch=function(e,t,n){return r(e,n,"patch",t)},r.all=Promise.all.bind(Promise),r.spread=function(e){return e.apply.bind(e,e)},r.CancelToken="function"==typeof AbortController?AbortController:Object,r.defaults=t,r.create=e,r}();var k=n(135);function S(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function O(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,a.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,a.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,a.createContext)(r),i=n.length;function s(t){const{scope:n,children:r,...s}=t,l=(null==n?void 0:n[e][i])||o,c=(0,a.useMemo)((()=>s),Object.values(s));return(0,a.createElement)(l.Provider,{value:c},r)}return n=[...n,r],s.displayName=t+"Provider",[s,function(n,s){const l=(null==s?void 0:s[e][i])||o,c=(0,a.useContext)(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},P(r,...t)]}function P(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,a.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const N=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?a.useLayoutEffect:()=>{},_=i["useId".toString()]||(()=>{});let R=0;function A(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{t.current=e})),(0,a.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function T({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,a.useState)(e),[r]=n,o=(0,a.useRef)(r),i=A(t);return(0,a.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,s=i?e:r,l=A(n);return[s,(0,a.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[i,e,o,l])]}const I=(0,a.createContext)(void 0);function j(e){const t=(0,a.useContext)(I);return e||t||"ltr"}const M="rovingFocusGroup.onEntryFocus",D={bubbles:!1,cancelable:!0},L="RovingFocusGroup",[z,F,G]=function(e){const t=e+"CollectionProvider",[n,r]=O(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=a.useRef(null),i=a.useRef(new Map).current;return a.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:a.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=u(t,i(s,n).collectionRef);return a.createElement(f,{ref:o},r)})),ItemSlot:a.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,s=a.useRef(null),d=u(t,s),p=i(l,n);return a.useEffect((()=>(p.itemMap.set(s,{ref:s,...o}),()=>{p.itemMap.delete(s)}))),a.createElement(f,{[c]:"",ref:d},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return a.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}(L),[W,B]=O(L,[G]),[$,U]=W(L),q=(0,a.forwardRef)(((e,t)=>(0,a.createElement)(z.Provider,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(z.Slot,{scope:e.__scopeRovingFocusGroup},(0,a.createElement)(V,l({},e,{ref:t})))))),V=(0,a.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f,...p}=e,m=(0,a.useRef)(null),g=u(t,m),v=j(i),[h=null,y]=T({prop:s,defaultProp:c,onChange:d}),[w,x]=(0,a.useState)(!1),E=A(f),C=F(n),k=(0,a.useRef)(!1),[O,P]=(0,a.useState)(0);return(0,a.useEffect)((()=>{const e=m.current;if(e)return e.addEventListener(M,E),()=>e.removeEventListener(M,E)}),[E]),(0,a.createElement)($,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:h,onItemFocus:(0,a.useCallback)((e=>y(e)),[y]),onItemShiftTab:(0,a.useCallback)((()=>x(!0)),[]),onFocusableItemAdd:(0,a.useCallback)((()=>P((e=>e+1))),[]),onFocusableItemRemove:(0,a.useCallback)((()=>P((e=>e-1))),[])},(0,a.createElement)(b.div,l({tabIndex:w||0===O?-1:0,"data-orientation":r},p,{ref:g,style:{outline:"none",...e.style},onMouseDown:S(e.onMouseDown,(()=>{k.current=!0})),onFocus:S(e.onFocus,(e=>{const t=!k.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(M,D);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter((e=>e.focusable));Y([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}k.current=!1})),onBlur:S(e.onBlur,(()=>x(!1)))})))})),K=(0,a.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,c=function(e){const[t,n]=a.useState(_());return N((()=>{e||n((e=>null!=e?e:String(R++)))}),[e]),e||(t?`radix-${t}`:"")}(),d=i||c,u=U("RovingFocusGroupItem",n),f=u.currentTabStopId===d,p=F(n),{onFocusableItemAdd:m,onFocusableItemRemove:g}=u;return(0,a.useEffect)((()=>{if(r)return m(),()=>g()}),[r,m,g]),(0,a.createElement)(z.ItemSlot,{scope:n,id:d,focusable:r,active:o},(0,a.createElement)(b.span,l({tabIndex:f?0:-1,"data-orientation":u.orientation},s,{ref:t,onMouseDown:S(e.onMouseDown,(e=>{r?u.onItemFocus(d):e.preventDefault()})),onFocus:S(e.onFocus,(()=>u.onItemFocus(d))),onKeyDown:S(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Z[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=u.loop?(r=a+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(a+1)}setTimeout((()=>Y(o)))}var n,r}))})))})),Z={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Y(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const H=q,X=K,J=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,a.useState)(),r=(0,a.useRef)({}),o=(0,a.useRef)(e),i=(0,a.useRef)("none"),s=e?"mounted":"unmounted",[l,d]=function(e,t){return(0,a.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,a.useEffect)((()=>{const e=Q(r.current);i.current="mounted"===l?e:"none"}),[l]),N((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Q(t);e?d("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?d("UNMOUNT"):d(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,d]),N((()=>{if(t){const e=e=>{const n=Q(r.current).includes(e.animationName);e.target===t&&n&&(0,c.flushSync)((()=>d("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Q(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,a.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=u(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,a.cloneElement)(o,{ref:i}):null};function Q(e){return(null==e?void 0:e.animationName)||"none"}J.displayName="Presence";const ee="Radio",[te,ne]=O(ee),[re,oe]=te(ee),ae=(0,a.forwardRef)(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:l,value:c="on",onCheck:d,...f}=e,[p,m]=(0,a.useState)(null),g=u(t,(e=>m(e))),v=(0,a.useRef)(!1),h=!p||Boolean(p.closest("form"));return(0,a.createElement)(re,{scope:n,checked:o,disabled:l},(0,a.createElement)(b.button,s({type:"button",role:"radio","aria-checked":o,"data-state":le(o),"data-disabled":l?"":void 0,disabled:l,value:c},f,{ref:g,onClick:S(e.onClick,(e=>{o||null==d||d(),h&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))})),h&&(0,a.createElement)(se,{control:p,bubbles:!v.current,name:r,value:c,checked:o,required:i,disabled:l,style:{transform:"translateX(-100%)"}}))})),ie=(0,a.forwardRef)(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=oe("RadioIndicator",n);return(0,a.createElement)(J,{present:r||i.checked},(0,a.createElement)(b.span,s({"data-state":le(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),se=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=(0,a.useRef)(null),l=function(e){const t=(0,a.useRef)({value:e,previous:e});return(0,a.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}(n),c=function(e){const[t,n]=(0,a.useState)(void 0);return N((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(t);return(0,a.useEffect)((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[l,n,r]),(0,a.createElement)("input",s({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function le(e){return e?"checked":"unchecked"}const ce=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],de="RadioGroup",[ue,fe]=O(de,[B,ne]),pe=B(),me=ne(),[ge,ve]=ue(de),be=(0,a.forwardRef)(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:l=!1,disabled:c=!1,orientation:d,dir:u,loop:f=!0,onValueChange:p,...m}=e,g=pe(n),v=j(u),[h,y]=T({prop:i,defaultProp:o,onChange:p});return(0,a.createElement)(ge,{scope:n,name:r,required:l,disabled:c,value:h,onValueChange:y},(0,a.createElement)(H,s({asChild:!0},g,{orientation:d,dir:v,loop:f}),(0,a.createElement)(b.div,s({role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":c?"":void 0,dir:v},m,{ref:t}))))})),he=(0,a.forwardRef)(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=ve("RadioGroupItem",n),l=i.disabled||r,c=pe(n),d=me(n),f=(0,a.useRef)(null),p=u(t,f),m=i.value===o.value,g=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{const e=e=>{ce.includes(e.key)&&(g.current=!0)},t=()=>g.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),(0,a.createElement)(X,s({asChild:!0},c,{focusable:!l,active:m}),(0,a.createElement)(ae,s({disabled:l,required:i.required,checked:m},d,o,{name:i.name,ref:p,onCheck:()=>i.onValueChange(o.value),onKeyDown:S((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:S(o.onFocus,(()=>{var e;g.current&&(null===(e=f.current)||void 0===e||e.click())}))})))})),ye=(0,a.forwardRef)(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=me(n);return(0,a.createElement)(ie,s({},o,r,{ref:t}))}));var we={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const xe=(e,t)=>{const n=(0,a.forwardRef)((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,children:s,...l},c)=>{return(0,a.createElement)("svg",{ref:c,...we,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:`lucide lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,...l},[...t.map((([e,t])=>(0,a.createElement)(e,t))),...(Array.isArray(s)?s:[s])||[]]);var d}));return n.displayName=`${e}`,n},Ee=xe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);window.wp.components,window.wp.compose;const Ce="dismissableLayer.update";let ke;const Se=(0,a.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Oe=(0,a.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:c,onDismiss:d,...f}=e,p=(0,a.useContext)(Se),[m,g]=(0,a.useState)(null),v=null!==(n=null==m?void 0:m.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,h]=(0,a.useState)({}),y=u(t,(e=>g(e))),w=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=w.indexOf(x),C=m?w.indexOf(m):-1,k=p.layersWithOutsidePointerEventsDisabled.size>0,O=C>=E,P=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=A(e),r=(0,a.useRef)(!1),o=(0,a.useRef)((()=>{}));return(0,a.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const a={originalEvent:e};function i(){Ne("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=i,t.addEventListener("click",o.current,{once:!0})):i()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...p.branches].some((e=>e.contains(t)));O&&!n&&(null==i||i(e),null==c||c(e),e.defaultPrevented||null==d||d())}),v),N=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=A(e),r=(0,a.useRef)(!1);return(0,a.useEffect)((()=>{const e=e=>{e.target&&!r.current&&Ne("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...p.branches].some((e=>e.contains(t)))||(null==s||s(e),null==c||c(e),e.defaultPrevented||null==d||d())}),v);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=A(e);(0,a.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{C===p.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),v),(0,a.useEffect)((()=>{if(m)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(ke=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),Pe(),()=>{r&&1===p.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=ke)}}),[m,v,r,p]),(0,a.useEffect)((()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),Pe())}),[m,p]),(0,a.useEffect)((()=>{const e=()=>h({});return document.addEventListener(Ce,e),()=>document.removeEventListener(Ce,e)}),[]),(0,a.createElement)(b.div,l({},f,{ref:y,style:{pointerEvents:k?O?"auto":"none":void 0,...e.style},onFocusCapture:S(e.onFocusCapture,N.onFocusCapture),onBlurCapture:S(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:S(e.onPointerDownCapture,P.onPointerDownCapture)}))}));function Pe(){const e=new CustomEvent(Ce);document.dispatchEvent(e)}function Ne(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&(0,c.flushSync)((()=>e.dispatchEvent(t)))}(o,a):o.dispatchEvent(a)}const _e="focusScope.autoFocusOnMount",Re="focusScope.autoFocusOnUnmount",Ae={bubbles:!1,cancelable:!0},Te=(0,a.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[c,d]=(0,a.useState)(null),f=A(o),p=A(i),m=(0,a.useRef)(null),g=u(t,(e=>d(e))),v=(0,a.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,a.useEffect)((()=>{if(r){function e(e){if(v.paused||!c)return;const t=e.target;c.contains(t)?m.current=t:De(m.current,{select:!0})}function t(e){if(v.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||De(m.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&De(c)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return c&&o.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,c,v.paused]),(0,a.useEffect)((()=>{if(c){Le.add(v);const e=document.activeElement;if(!c.contains(e)){const t=new CustomEvent(_e,Ae);c.addEventListener(_e,f),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(De(r,{select:t}),document.activeElement!==n)return}(Ie(c).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&De(c))}return()=>{c.removeEventListener(_e,f),setTimeout((()=>{const t=new CustomEvent(Re,Ae);c.addEventListener(Re,p),c.dispatchEvent(t),t.defaultPrevented||De(null!=e?e:document.body,{select:!0}),c.removeEventListener(Re,p),Le.remove(v)}),0)}}}),[c,f,p,v]);const h=(0,a.useCallback)((e=>{if(!n&&!r)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,a]=function(e){const t=Ie(e);return[je(t,e),je(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&De(a,{select:!0})):(e.preventDefault(),n&&De(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,v.paused]);return(0,a.createElement)(b.div,l({tabIndex:-1},s,{ref:g,onKeyDown:h}))}));function Ie(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function je(e,t){for(const n of e)if(!Me(n,{upTo:t}))return n}function Me(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function De(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Le=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ze(e,t),e.unshift(t)},remove(t){var n;e=ze(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function ze(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const Fe=(0,a.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?c.createPortal((0,a.createElement)(b.div,l({},o,{ref:t})),r):null}));let Ge=0;function We(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Be=function(){return Be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Be.apply(this,arguments)};function $e(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Ue="right-scroll-bar-position",qe="width-before-scroll-bar";function Ve(e){return e}var Ke=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Ve);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Be({async:!0,ssr:!1},e),t}(),Ze=function(){},Ye=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Ze,onWheelCapture:Ze,onTouchMoveCapture:Ze}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,h=void 0===b?"div":b,y=$e(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,x=function(e,t){return n=t||null,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}([n,t]),E=Be(Be({},y),o);return a.createElement(a.Fragment,null,u&&a.createElement(w,{sideCar:Ke,removeScrollBar:d,shards:f,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),s?a.cloneElement(a.Children.only(l),Be(Be({},E),{ref:x})):a.createElement(h,Be({},E,{className:c,ref:x}),l))}));Ye.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ye.classNames={fullWidth:qe,zeroRight:Ue};var He=function(e){var t=e.sideCar,n=$e(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Be({},n))};He.isSideCarExport=!0;var Xe=function(){var e=0,t=null;return{add:function(r){var o,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(a=r,(o=t).styleSheet?o.styleSheet.cssText=a:o.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Je=function(){var e,t=(e=Xe(),function(t,n){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Qe={left:0,top:0,right:0,gap:0},et=function(e){return parseInt(e||"",10)||0},tt=Je(),nt=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Ue," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(qe," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Ue," .").concat(Ue," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(qe," .").concat(qe," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},rt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=a.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Qe;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[et(n),et(r),et(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)}),[o]);return a.createElement(tt,{styles:nt(i,!t,o,n?"":"!important")})},ot=!1;if("undefined"!=typeof window)try{var at=Object.defineProperty({},"passive",{get:function(){return ot=!0,!0}});window.addEventListener("test",at,at),window.removeEventListener("test",at,at)}catch(e){ot=!1}var it=!!ot&&{passive:!1},st=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},lt=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ct(e,n)){var r=dt(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ct=function(e,t){return"v"===e?function(e){return st(e,"overflowY")}(t):function(e){return st(e,"overflowX")}(t)},dt=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},ut=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ft=function(e){return[e.deltaX,e.deltaY]},pt=function(e){return e&&"current"in e?e.current:e},mt=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},gt=0,vt=[];const bt=(ht=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(gt++)[0],i=a.useState((function(){return Je()}))[0],s=a.useRef(e);a.useEffect((function(){s.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(pt),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,a=ut(e),i=n.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var f=lt(u,d);if(!f)return!0;if(f?o=u:(o="v"===u?"h":"v",f=lt(u,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,d=i>0,u=0,f=0;do{var p=dt(e,s),m=p[0],g=p[1]-p[2]-a*m;(m||g)&&ct(e,s)&&(u+=g,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(0===u||!1)||!d&&(0===f||!1))&&(c=!0),c}(p,t,e,"h"===p?l:c)}),[]),c=a.useCallback((function(e){var n=e;if(vt.length&&vt[vt.length-1]===i){var r="deltaY"in n?ft(n):ut(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(pt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?l(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),d=a.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),u=a.useCallback((function(e){n.current=ut(e),r.current=void 0}),[]),f=a.useCallback((function(t){d(t.type,ft(t),t.target,l(t,e.lockRef.current))}),[]),p=a.useCallback((function(t){d(t.type,ut(t),t.target,l(t,e.lockRef.current))}),[]);a.useEffect((function(){return vt.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,it),document.addEventListener("touchmove",c,it),document.addEventListener("touchstart",u,it),function(){vt=vt.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,it),document.removeEventListener("touchmove",c,it),document.removeEventListener("touchstart",u,it)}}),[]);var m=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(i,{styles:mt(o)}):null,m?a.createElement(rt,{gapMode:"margin"}):null)},Ke.useMedium(ht),He);var ht,yt=a.forwardRef((function(e,t){return a.createElement(Ye,Be({},e,{ref:t,sideCar:bt}))}));yt.classNames=Ye.classNames;const wt=yt;var xt=new WeakMap,Et=new WeakMap,Ct={},kt=0,St=function(e){return e&&(e.host||St(e.parentNode))},Ot=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=St(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);Ct[n]||(Ct[n]=new WeakMap);var a=Ct[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))d(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(xt.get(e)||0)+1,c=(a.get(e)||0)+1;xt.set(e,l),a.set(e,c),i.push(e),1===l&&o&&Et.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return d(t),s.clear(),kt++,function(){i.forEach((function(e){var t=xt.get(e)-1,o=a.get(e)-1;xt.set(e,t),a.set(e,o),t||(Et.has(e)||e.removeAttribute(r),Et.delete(e)),o||e.removeAttribute(n)})),--kt||(xt=new WeakMap,xt=new WeakMap,Et=new WeakMap,Ct={})}}(r,o,n,"aria-hidden")):function(){return null}};const Pt="Dialog",[Nt,_t]=O(Pt),[Rt,At]=Nt(Pt),Tt="DialogPortal",[It,jt]=Nt(Tt,{forceMount:void 0}),Mt="DialogOverlay",Dt=(0,a.forwardRef)(((e,t)=>{const n=jt(Mt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=At(Mt,e.__scopeDialog);return i.modal?(0,a.createElement)(J,{present:r||i.open},(0,a.createElement)(Lt,s({},o,{ref:t}))):null})),Lt=(0,a.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=At(Mt,n);return(0,a.createElement)(wt,{as:f,allowPinchZoom:!0,shards:[o.contentRef]},(0,a.createElement)(b.div,s({"data-state":Kt(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),zt="DialogContent",Ft=(0,a.forwardRef)(((e,t)=>{const n=jt(zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=At(zt,e.__scopeDialog);return(0,a.createElement)(J,{present:r||i.open},i.modal?(0,a.createElement)(Gt,s({},o,{ref:t})):(0,a.createElement)(Wt,s({},o,{ref:t})))})),Gt=(0,a.forwardRef)(((e,t)=>{const n=At(zt,e.__scopeDialog),r=(0,a.useRef)(null),o=u(t,n.contentRef,r);return(0,a.useEffect)((()=>{const e=r.current;if(e)return Ot(e)}),[]),(0,a.createElement)(Bt,s({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:S(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:S(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:S(e.onFocusOutside,(e=>e.preventDefault()))}))})),Wt=(0,a.forwardRef)(((e,t)=>{const n=At(zt,e.__scopeDialog),r=(0,a.useRef)(!1),o=(0,a.useRef)(!1);return(0,a.createElement)(Bt,s({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),Bt=(0,a.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,c=At(zt,n),d=u(t,(0,a.useRef)(null));return(0,a.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:We()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:We()),Ge++,()=>{1===Ge&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Ge--}}),[]),(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Te,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},(0,a.createElement)(Oe,s({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Kt(c.open)},l,{ref:d,onDismiss:()=>c.onOpenChange(!1)}))),!1)})),$t="DialogTitle",Ut=(0,a.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=At($t,n);return(0,a.createElement)(b.h2,s({id:o.titleId},r,{ref:t}))})),qt=(0,a.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=At("DialogDescription",n);return(0,a.createElement)(b.p,s({id:o.descriptionId},r,{ref:t}))})),Vt=(0,a.forwardRef)(((e,t)=>{const{__scopeDialog:n,...r}=e,o=At("DialogClose",n);return(0,a.createElement)(b.button,s({type:"button"},r,{ref:t,onClick:S(e.onClick,(()=>o.onOpenChange(!1)))}))}));function Kt(e){return e?"open":"closed"}const[Zt,Yt]=function(e,t){const n=(0,a.createContext)(t);function r(e){const{children:t,...r}=e,o=(0,a.useMemo)((()=>r),Object.values(r));return(0,a.createElement)(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=(0,a.useContext)(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:zt,titleName:$t,docsSlug:"dialog"}),Ht=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=At(Tt,t);return(0,a.createElement)(It,{scope:t,forceMount:n},a.Children.map(r,(e=>(0,a.createElement)(J,{present:n||i.open},(0,a.createElement)(Fe,{asChild:!0,container:o},e)))))},Xt=Dt,Jt=Ft,Qt=Ut,en=qt,tn=Vt,nn=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rn=window.wp.htmlEntities,on=window.wp.i18n;var an,sn,ln=Object.create,cn=Object.defineProperty,dn=Object.defineProperties,un=Object.getOwnPropertyDescriptor,fn=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertyNames,mn=Object.getOwnPropertySymbols,gn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,hn=(e,t,n)=>t in e?cn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yn=(e,t)=>{for(var n in t||(t={}))vn.call(t,n)&&hn(e,n,t[n]);if(mn)for(var n of mn(t))bn.call(t,n)&&hn(e,n,t[n]);return e},wn=(e,t)=>dn(e,fn(t)),xn=(e,t)=>{var n={};for(var r in e)vn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mn)for(var r of mn(e))t.indexOf(r)<0&&bn.call(e,r)&&(n[r]=e[r]);return n},En=(e,t,n)=>(n=null!=e?ln(gn(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of pn(t))vn.call(e,n)||undefined===n||cn(e,n,{get:()=>t[n],enumerable:!(r=un(t,n))||r.enumerable});return e})(!t&&e&&e.__esModule?n:cn(n,"default",{value:e,enumerable:!0}),e)),Cn=(an={"../woocommerce/dist/index.js"(e,t){var n,r,o,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(c,{WC_VERSION:()=>E,formatPrice:()=>h,getSetting:()=>y,registerExpressPaymentMethod:()=>w,registerPaymentMethod:()=>x}),t.exports=(n=c,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of s(t))l.call(e,n)||undefined===n||a(e,n,{get:()=>t[n],enumerable:!(r=i(t,n))||r.enumerable});return e})(a({},"__esModule",{value:!0}),n));var d,u,f,p,m,g,v,b,h=(null==(o=null==(r=null==window?void 0:window.wc)?void 0:r.priceFormat)?void 0:o.formatPrice)||(e=>(console.error("formatPrice was not defined"),e)),y=(null==(u=null==(d=null==window?void 0:window.wc)?void 0:d.wcSettings)?void 0:u.getSetting)||(()=>(console.error("getSetting was not defined"),{})),w=(null==(p=null==(f=null==window?void 0:window.wc)?void 0:f.wcBlocksRegistry)?void 0:p.registerExpressPaymentMethod)||(()=>(console.error("registerExpressPaymentMethod was not defined"),null)),x=(null==(g=null==(m=null==window?void 0:window.wc)?void 0:m.wcBlocksRegistry)?void 0:g.registerPaymentMethod)||(()=>(console.error("registerPaymentMethod was not defined"),null)),E=(null==(b=null==(v=null==window?void 0:window.wc)?void 0:v.wcSettings)?void 0:b.WC_VERSION)||"0.0.0"}},function(){return sn||(0,an[pn(an)[0]])((sn={exports:{}}).exports,sn),sn.exports});function kn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Sn(e))&&(r&&(r+=" "),r+=t);return r}function Sn(e){if("string"==typeof e)return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=Sn(e[r]))&&(n&&(n+=" "),n+=t);return n}En(Cn());var On="-";function Pn(e){var t=function(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},o=function(e,t){return t?e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var n=e[0],r=e[1];return[t+n,r]}))):e}))]})):e}(Object.entries(e.classGroups),n);return o.forEach((function(e){var n=e[0];An(e[1],r,n,t)})),r}(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,o=void 0===r?{}:r;return{getClassGroupId:function(e){var n=e.split(On);return""===n[0]&&1!==n.length&&n.shift(),Nn(n,t)||function(e){if(Rn.test(e)){var t=Rn.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){var r=n[e]||[];return t&&o[e]?[].concat(r,o[e]):r}}}function Nn(e,t){var n;if(0===e.length)return t.classGroupId;var r=e[0],o=t.nextPart.get(r),a=o?Nn(e.slice(1),o):void 0;if(a)return a;if(0!==t.validators.length){var i=e.join(On);return null==(n=t.validators.find((function(e){return(0,e.validator)(i)})))?void 0:n.classGroupId}}var Rn=/^\[(.+)\]$/;function An(e,t,n,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void An(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((function(e){var o=e[0];An(e[1],Tn(t,o),n,r)}))}else(""===e?t:Tn(t,e)).classGroupId=n}))}function Tn(e,t){var n=e;return t.split(On).forEach((function(e){n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function In(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function o(o,a){n.set(o,a),++t>e&&(t=0,r=n,n=new Map)}return{get:function(e){var t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set:function(e,t){n.has(e)?n.set(e,t):o(e,t)}}}var jn="!";function Mn(e){var t=e.separator||":",n=1===t.length,r=t[0],o=t.length;return function(e){for(var a,i=[],s=0,l=0,c=0;c<e.length;c++){var d=e[c];if(0===s){if(d===r&&(n||e.slice(c,c+o)===t)){i.push(e.slice(l,c)),l=c+o;continue}if("/"===d){a=c;continue}}"["===d?s++:"]"===d&&s--}var u=0===i.length?e:e.substring(l),f=u.startsWith(jn);return{modifiers:i,hasImportantModifier:f,baseClassName:f?u.substring(1):u,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}}var Dn=/\s+/;function Ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o,a,i=function(e){var n=t[0],l=t.slice(1).reduce((function(e,t){return t(e)}),n());return r=function(e){return yn({cache:In(e.cacheSize),splitModifiers:Mn(e)},Pn(e))}(l),o=r.cache.get,a=r.cache.set,i=s,s(e)};function s(e){var t=o(e);if(t)return t;var n=function(e,t){var n=t.splitModifiers,r=t.getClassGroupId,o=t.getConflictingClassGroupIds,a=new Set;return e.trim().split(Dn).map((function(e){var t=n(e),o=t.modifiers,a=t.hasImportantModifier,i=t.baseClassName,s=t.maybePostfixModifierPosition,l=r(s?i.substring(0,s):i),c=Boolean(s);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(!(l=r(i)))return{isTailwindClass:!1,originalClassName:e};c=!1}var d=function(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,n.sort().concat([e])),n=[]):n.push(e)})),t.push.apply(t,n.sort()),t}(o).join(":");return{isTailwindClass:!0,modifierId:a?d+jn:d,classGroupId:l,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,n=e.classGroupId,r=e.hasPostfixModifier,i=t+n;return!a.has(i)&&(a.add(i),o(n,r).forEach((function(e){return a.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,r);return a(e,n),n}return function(){return i(kn.apply(null,arguments))}}function zn(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var Fn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gn=/^\d+\/\d+$/,Wn=new Set(["px","full","screen"]),Bn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$n=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Un=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function qn(e){return Xn(e)||Wn.has(e)||Gn.test(e)||Vn(e)}function Vn(e){return or(e,"length",ar)}function Kn(e){return or(e,"size",ir)}function Zn(e){return or(e,"position",ir)}function Yn(e){return or(e,"url",sr)}function Hn(e){return or(e,"number",Xn)}function Xn(e){return!Number.isNaN(Number(e))}function Jn(e){return e.endsWith("%")&&Xn(e.slice(0,-1))}function Qn(e){return lr(e)||or(e,"number",lr)}function er(e){return Fn.test(e)}function tr(){return!0}function nr(e){return Bn.test(e)}function rr(e){return or(e,"",cr)}function or(e,t,n){var r=Fn.exec(e);return!!r&&(r[1]?r[1]===t:n(r[2]))}function ar(e){return $n.test(e)}function ir(){return!1}function sr(e){return e.startsWith("url(")}function lr(e){return Number.isInteger(Number(e))}function cr(e){return Un.test(e)}function dr(){var e=zn("colors"),t=zn("spacing"),n=zn("blur"),r=zn("brightness"),o=zn("borderColor"),a=zn("borderRadius"),i=zn("borderSpacing"),s=zn("borderWidth"),l=zn("contrast"),c=zn("grayscale"),d=zn("hueRotate"),u=zn("invert"),f=zn("gap"),p=zn("gradientColorStops"),m=zn("gradientColorStopPositions"),g=zn("inset"),v=zn("margin"),b=zn("opacity"),h=zn("padding"),y=zn("saturate"),w=zn("scale"),x=zn("sepia"),E=zn("skew"),C=zn("space"),k=zn("translate"),S=function(){return["auto",er,t]},O=function(){return[er,t]},P=function(){return["",qn]},N=function(){return["auto",Xn,er]},_=function(){return["","0",er]},R=function(){return[Xn,Hn]},A=function(){return[Xn,er]};return{cacheSize:500,theme:{colors:[tr],spacing:[qn],blur:["none","",nr,er],brightness:R(),borderColor:[e],borderRadius:["none","","full",nr,er],borderSpacing:O(),borderWidth:P(),contrast:R(),grayscale:_(),hueRotate:A(),invert:_(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Jn,Vn],inset:S(),margin:S(),opacity:R(),padding:O(),saturate:R(),scale:R(),sepia:_(),skew:A(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",er]}],container:["container"],columns:[{columns:[nr]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[er])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qn]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",er]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Qn]}],"grid-cols":[{"grid-cols":[tr]}],"col-start-end":[{col:["auto",{span:["full",Qn]},er]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[tr]}],"row-start-end":[{row:["auto",{span:[Qn]},er]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",er]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",er]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",er,t]}],"min-w":[{"min-w":["min","max","fit",er,qn]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[nr]},nr,er]}],h:[{h:[er,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",er,qn]}],"max-h":[{"max-h":[er,t,"min","max","fit"]}],"font-size":[{text:["base",nr,Vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Hn]}],"font-family":[{font:[tr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",er]}],"line-clamp":[{"line-clamp":["none",Xn,Hn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",er,qn]}],"list-image":[{"list-image":["none",er]}],"list-style-type":[{list:["none","disc","decimal",er]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",qn]}],"underline-offset":[{"underline-offset":["auto",er,qn]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",er]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",er]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[Zn])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yn]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[er,qn]}],"outline-w":[{outline:[qn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[qn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",nr,rr]}],"shadow-color":[{shadow:[tr]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",nr,er]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",er]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",er]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",er]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Qn,er]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",er]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",er]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",er]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[qn,Hn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var ur=Ln(dr);function fr(...e){return ur(w(e))}var pr="color: #03a9f4; font-weight: bold;",mr="color: currentColor",gr=C("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");(0,a.forwardRef)(((e,t)=>{var n=e,{className:r}=n,o=xn(n,["className"]);return(0,k.jsx)(h,yn({ref:t,className:fr(gr(),r)},o))})).displayName=h.displayName,(0,a.forwardRef)(((e,t)=>{var n=e,{className:r}=n,o=xn(n,["className"]);return(0,k.jsx)(be,wn(yn({className:fr("tw-grid tw-gap-2",r)},o),{ref:t}))})).displayName=be.displayName,(0,a.forwardRef)(((e,t)=>{var n=e,{className:r}=n,o=xn(n,["className"]);return(0,k.jsx)(he,wn(yn({ref:t,className:fr("tw-aspect-square tw-h-4 tw-w-4 tw-rounded-full tw-border tw-border-primary tw-text-primary tw-ring-offset-background focus:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50",r)},o),{children:(0,k.jsx)(ye,{className:"tw-flex tw-items-center tw-justify-center",children:(0,k.jsx)(Ee,{className:"tw-h-10px tw-w-10px tw-fill-current tw-text-current"})})}))})).displayName=he.displayName,C("tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2",{variants:{variant:{default:"tw-border-transparent tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/80",secondary:"tw-border-transparent tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80",destructive:"tw-border-transparent tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/80",outline:"tw-text-foreground"}},defaultVariants:{variant:"default"}});var vr=Ht,br=(a.forwardRef(((e,t)=>{var n=e,{className:r}=n,o=xn(n,["className"]);return(0,k.jsxs)(tn,wn(yn({ref:t,className:fr("tw-absolute tw-right-4 tw-top-4 tw-rounded-sm tw-opacity-70 tw-ring-offset-background tw-transition-opacity hover:tw-opacity-100 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2 disabled:tw-pointer-events-none data-[state=open]:tw-bg-accent data-[state=open]:tw-text-muted-foreground",r)},o),{children:[(0,k.jsx)(nn,{className:"h-4 w-4"}),(0,k.jsx)("span",{className:"sr-only",children:"Close"})]}))})),a.forwardRef(((e,t)=>{var n=e,{className:r}=n,o=xn(n,["className"]);return(0,k.jsx)(Xt,yn({ref:t,className:fr("tw-fixed tw-inset-0 tw-z-50 tw-bg-black/80 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0",r)},o))})));function hr({settings:e={},context:t="checkout"}){var n;return(0,k.jsxs)("div",{children:[(0,k.jsx)("p",{children:(0,rn.decodeEntities)(e.description||"")}),(null==(n=e.flags)?void 0:n.is_test_environment)&&"edit"!==t&&(0,k.jsx)("strong",{children:(0,on.__)("Test Mode Enabled","wc-plugin-framework").toUpperCase()})]})}br.displayName=Xt.displayName,a.forwardRef(((e,t)=>{var n=e,{className:r,children:o}=n,a=xn(n,["className","children"]);return(0,k.jsxs)(vr,{children:[(0,k.jsx)(br,{}),(0,k.jsx)(Jt,wn(yn({ref:t,className:fr("tw-fixed tw-left-[50%] tw-top-[50%] tw-z-50 tw-grid tw-w-full tw-max-w-lg tw-translate-x-[-50%] tw-translate-y-[-50%] tw-gap-4 tw-border tw-bg-background tw-p-6 tw-shadow-lg tw-duration-200 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[state=closed]:tw-slide-out-to-left-1/2 data-[state=closed]:tw-slide-out-to-top-[48%] data-[state=open]:tw-slide-in-from-left-1/2 data-[state=open]:tw-slide-in-from-top-[48%]",r)},a),{children:o}))]})})).displayName=Jt.displayName,a.forwardRef(((e,t)=>{var n=e,{className:r}=n,o=xn(n,["className"]);return(0,k.jsx)(Qt,yn({ref:t,className:fr("tw-text-lg tw-font-semibold tw-leading-none tw-tracking-tight",r)},o))})).displayName=Qt.displayName,a.forwardRef(((e,t)=>{var n=e,{className:r}=n,o=xn(n,["className"]);return(0,k.jsx)(en,yn({ref:t,className:fr("tw-text-sm tw-text-muted-foreground",r)},o))})).displayName=en.displayName;var yr={dinersclub:"diners",disc:"discover",mc:"mastercard"};function wr(e){var t,n,r=e,{labelIcon:o,cardIcons:a=[],title:i,children:s}=r,l=xn(r,["labelIcon","cardIcons","title","children"]);const c=null==(t=l.components)?void 0:t.PaymentMethodLabel,d=null==(n=l.components)?void 0:n.PaymentMethodIcons,u=(0,rn.decodeEntities)(i),f=null==a?void 0:a.map((e=>yr[e]||e));return(0,k.jsxs)("div",{className:"tw-flex tw-w-full tw-place-content-between tw-items-center tw-mr-12px",children:[(0,k.jsx)(c,{icon:o,text:u}),f?(0,k.jsx)(d,{icons:f}):null,s]})}En(Cn());var xr,Er,Cr=(0,a.forwardRef)((function(e,t){var n=e,{className:r,classNames:o,disabled:i,feedback:s,id:l,isInvalid:c,label:d="",name:u,onBlur:f,onFocus:p,placeholder:m,type:g="text",value:v}=n,b=xn(n,["className","classNames","disabled","feedback","id","isInvalid","label","name","onBlur","onFocus","placeholder","type","value"]);const[h,y]=(0,a.useState)(!1),w=(0,a.useRef)(null);return(0,a.useImperativeHandle)(t,(()=>w.current)),(0,a.useEffect)((()=>{v&&y(!0)}),[v]),(0,k.jsxs)("div",{className:fr("wc-block-components-text-input !tw-mt-24px",h?"is-active":"",c?"has-error":"",r,null==o?void 0:o.root),children:[(0,k.jsx)("label",{className:fr(r,null==o?void 0:o.label),htmlFor:l||u,onClick:()=>{var e;i||(y(!0),null==(e=null==w?void 0:w.current)||e.focus())},children:d}),s||null,(0,k.jsx)("input",yn({id:l||u,type:g,value:v,"aria-label":d,autoCapitalize:"off",onFocus:e=>{y(!0),null==p||p(e)},ref:t,onBlur:e=>{e.target.value||y(!1),null==f||f(e)},className:fr(r,null==o?void 0:o.input),placeholder:h?m:""},b))]})}));function kr({debug:e=!1,logTagStyle:t=pr,logTextStyle:n=mr,tag:r}){return(0,a.useCallback)((({message:o,prefix:a})=>{!function(e){var t,n,r;t=this,n=arguments,r=function*({debug:e=!1,logTagStyle:t=pr,logTextStyle:n=mr,message:r="",prefix:o,tag:a}){e&&r&&("object"==typeof r?console.debug(`%c[${a}]%c${o?` ${o}:`:""} %O`,t,n,r):console.debug(`%c[${a}]%c${o?` ${o}:`:""} %s`,t,n,r))},new Promise(((e,o)=>{var a=e=>{try{s(r.next(e))}catch(e){o(e)}},i=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,i);s((r=r.apply(t,n)).next())}))}({debug:e,logTagStyle:t,logTextStyle:n,message:o,prefix:a,tag:r})}),[e,t,n,r])}null==(Er=null==(xr=null==window?void 0:window.wc)?void 0:xr.blocksCheckout)||Er.TextInput,(0,a.forwardRef)((function(e,t){return(0,k.jsx)(Cr,wn(yn({},e),{ref:t}))})),(0,a.forwardRef)((function({options:e,value:t,onChange:n,labelText:r,name:o,className:a=""},i){return(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("div",{className:fr("wc-block-components-text-input is-active tw-w-full",a),children:[(0,k.jsx)("label",{htmlFor:o,children:r}),(0,k.jsx)("select",{name:o,onChange:n,value:t,ref:i,className:"tw-block tw-w-full tw-height-48px tw-border tw-rounded-sm tw-pt-[1.5em] tw-pb-[0.25em] tw-indent-2 tw-leading-none tw-bg-no-repeat",children:e})]})})}));const Sr={labels:!0,paymentLabel:!1,zipCode:!1,firstName:!1,lastName:!1,emailAddress:!1,phone:!1,line1:!1,line2:!1,city:!1,territory:!1,countryCode:!1,collectShippingAddress:!1,shippingAddressSameAsBilling:!0,submitButton:!1},Or={border:"0px",borderRadius:"0px",boxShadow:"none",height:"208px",width:"100%"},Pr={container:"\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(2, 1fr);\n\t\t\tcolumn-gap: 1rem;\n\t\t\trow-gap: 16px;\n\t\t\tpadding: 0 1px;\n\t\t",requiredMark:"\n\t\t\tcolor: rgb(226, 64, 28);\n\t\t\tpadding-left: 2px;\n\t\t\ttranslate: 0 -2px;\n\t\t\tdisplay: inline-block;\n\t\t",rowCardNumber:"\n\t\t\tgrid-column: span 2 / span 2;\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",rowExpiration:"\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",rowCVV:"\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",rowZip:"\n\t\t\tmargin-bottom: 0;\n\t\t\tpadding: 0;\n\t\t",inputDefault:'\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid #50575e;\n\t\t\tborder-radius: 4px;\n\t\t\tbox-sizing: border-box;\n\t\t\tcolor: #2b2d2f;\n\t\t\tfont-family: inherit;\n\t\t\tfont-size: 1em;\n\t\t\tline-height: 1em;\n\t\t\t&::placeholder {\n\t\t\t\tcolor: #6d6d6d;\n\t\t\t}\n\t\t\t&:focus {\n\t\t\t\toutline: 1px solid #000;\n\t\t\t\tborder-color: #000;\n\t\t\t}\n\t\t\tpadding: 1em;\n\t\t\t&[data-error="true"] {\n\t\t\t\tborder: 1px solid #b61717;\n\t\t\t\t&:focus {\n\t\t\t\t\toutline: 1px solid #b61717;\n\t\t\t\t}\n\t\t\t\t&::placeholder {\n\t\t\t\t\tcolor: #b61717;\n\t\t\t\t}\n\t\t\t}\n\t\t',inputLabel:"\n\t\t\tfont-size: 12px;\n\t\t\ttext-transform: capitalize;\n\t\t\tcolor: #6d6d6d;\n\t\t",reCaptcha:{text:"\n\t\t\t\tgrid-column: span 2 / span 2;\n\t\t\t\tmargin-bottom: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\tcolor: #6d6d6d;\n\t\t\t",link:"\n\t\t\t\tcolor: #6d6d6d;\n\t\t\t\tfont-weight: normal;\n\t\t\t"}},Nr={theme:"checkout"};function _r({creditCardSettings:e,showZip:t}){const n=Or?.height,r=e?.gateway?.mountOptions?.enableReCaptcha||"TEXT"===e?.gateway?.mountOptions?.reCaptchaOptions?.type;return`\n\t\tcalc(\n\t\t\t${n}\n\t\t\t+ ${r?"48px":"0px"}\n\t\t\t+ ${r&&"TEXT"!==e?.gateway?.mountOptions?.reCaptchaOptions?.type?"16px":"0px"}\n\t\t\t+ ${t?"96px":"0px"}\n\t\t)\n\t`}const Rr={general_error:(0,on.__)("An error occurred, please try again or try an alternate form of payment.","godaddy-payments")},Ar="poynt_credit_card",Tr="pay_in_person",Ir=(0,o.getSetting)(`${Ar}_data`,{title:(0,on.__)("Credit Card","godaddy-payments"),description:"",supports:[],flags:{tokenization_enabled:!1}});(0,o.registerPaymentMethod)({name:Ar,label:(0,r.createElement)(wr,{title:Ir?.title||(0,on.__)("Credit Card","godaddy-payments"),cardIcons:Ir?.enabled_card_types}),content:(0,r.createElement)((function({eventRegistration:e,emitResponse:t,billing:n,creditCardSettings:o,shippingData:a}){const i=`wc-${o?.id}`,s=`${i}-hosted-form`,l=kr({debug:o?.flags?.logging_enabled,tag:"Godaddy Payments"}),c=e?.onPaymentSetup,d=e?.onCheckoutFail;(0,r.useEffect)((()=>{const e=d?.((async e=>{const{paymentStatus:n,paymentDetails:r}=e.processingResponse;if(n===t?.responseTypes.FAIL&&r.result===t?.responseTypes.FAIL&&r.message)return{type:t?.responseTypes.FAIL,message:o?.flags?.detailed_decline_messages_enabled?r.message:Rr.general_error,messageContext:"checkout"===o?.debug_mode?t?.noticeContexts?.CHECKOUT:t?.noticeContexts?.PAYMENTS,retry:!0}}));return()=>e?.()}),[o?.debug_mode,o?.flags?.detailed_decline_messages_enabled,t?.noticeContexts?.CHECKOUT,t?.noticeContexts?.PAYMENTS,t?.responseTypes.FAIL,d]);const u=(0,r.useMemo)((()=>({firstName:n?.billingAddress?.first_name,lastName:n?.billingAddress?.last_name,line1:n?.billingAddress?.address_1,line2:n?.billingAddress?.address_2,city:n?.billingAddress?.city,territory:n?.billingAddress?.state,countryCode:n?.billingAddress?.country,phone:n?.billingAddress?.phone,emailAddress:n?.billingAddress?.email,zipCode:n?.billingAddress?.postcode})),[n?.billingAddress?.address_1,n?.billingAddress?.first_name,n?.billingAddress?.last_name,n?.billingAddress?.postcode,n?.billingAddress?.address_2,n?.billingAddress?.city,n?.billingAddress?.state,n?.billingAddress?.country,n?.billingAddress?.phone,n?.billingAddress?.email]),f=(0,r.useMemo)((()=>({shippingLine1:a?.shippingAddress?.address_1,shippingLine2:a?.shippingAddress?.address_2,shippingCity:a?.shippingAddress?.city,shippingTerritory:a?.shippingAddress?.state,shippingZip:a?.shippingAddress?.postcode,needsShipping:a?.needsShipping})),[a?.shippingAddress?.address_1,a?.shippingAddress?.address_2,a?.shippingAddress?.city,a?.shippingAddress?.state,a?.shippingAddress?.postcode,a?.needsShipping]),{collect:p}=function({creditCardSettings:e,debugLog:t}){return{collect:(0,r.useMemo)((()=>{if(window?.TokenizeJs&&e?.gateway?.appId&&e?.gateway?.businessId){const n=new window.TokenizeJs(e?.gateway?.businessId,e?.gateway?.appId);return n.on("ready",(e=>{"ready"===e?.type&&t({prefix:"GoDaddy Payments",message:"Collect instance ready"})})),n}window?.TokenizeJs||t({prefix:"GoDaddy Payments",message:"TokenizeJs not available"}),e?.gateway?.appId||e?.gateway?.businessId||t({prefix:"GoDaddy Payments",message:"App ID or Business ID not available"})}),[e?.gateway?.appId,e?.gateway?.businessId,t])}}({creditCardSettings:o,debugLog:l}),m=!u.zipCode,[g]=(0,r.useState)(m);return function({collect:e,creditCardSettings:t,showZip:n=!1,hostedFieldId:o}){(0,r.useEffect)((()=>(e?.mount(o,document,{...t?.gateway?.mountOptions,displayComponents:{...Sr,...t?.gateway?.mountOptions?.displayComponents,...n?{zipCode:!0}:{}},iFrame:{...Or,...t?.gateway?.mountOptions?.iFrame,height:_r({creditCardSettings:t,showZip:n})},customCss:{...Pr,...t?.gateway?.mountOptions?.customCss},style:{...Nr,...t?.gateway?.mountOptions?.style}}),()=>{e?.unmount(o,document)})),[o,e,t?.gateway?.mountOptions,n,t])}({collect:p,creditCardSettings:o,showZip:g,hostedFieldId:s}),function({debugLog:e,collect:t,emitResponse:n,billingInfo:o,onPaymentSetup:a,shippingInfo:i}){(0,r.useEffect)((()=>{const r=a?.((async()=>{if(!t)return e({prefix:"GoDaddy Payments",message:"GoDaddy Payments request not ready"}),{type:n?.responseTypes.ERROR,message:"GoDaddy Payments request not ready",messageContext:n?.noticeContexts?.PAYMENTS};try{e({prefix:"GoDaddy Payments",message:"Dispatching GoDaddy Payments request"});const r=await async function({collect:e,billingInfo:t,shippingInfo:n}){return new Promise(((r,o)=>{e.on("nonce",(e=>{r(e)})),e.on("error",(e=>{o(e)})),e.getNonce({firstName:t?.firstName,lastName:t?.lastName,line1:t?.line1,line2:t?.line2,city:t?.city,territory:t?.territory,countryCode:t?.countryCode,zipCode:t?.zipCode,emailAddress:t?.emailAddress,phone:t?.phone,...n?.needsShipping?{shippingLine1:n?.shippingLine1,shippingLine2:n?.shippingLine2,shippingCity:n?.shippingCity,shippingTerritory:n?.shippingTerritory,shippingZip:n?.shippingZip}:{}})}))}({collect:t,billingInfo:o,shippingInfo:i});return e({prefix:"GoDaddy Payments",message:"Successfully processed payment"}),{type:n?.responseTypes.SUCCESS,meta:{paymentMethodData:{[`wc_${Ar}_nonce`]:r?.data?.nonce}}}}catch(t){return e({prefix:"GoDaddy Payments",message:"Error processing payment"}),{type:n?.responseTypes.ERROR,message:"Error processing payment",messageContext:n?.noticeContexts?.PAYMENTS}}}));return()=>{r?.()}}),[o,i,t,e,n?.noticeContexts?.PAYMENTS,n?.responseTypes.ERROR,n?.responseTypes.SUCCESS,a])}({debugLog:l,collect:p,emitResponse:t,billingInfo:u,onPaymentSetup:c,shippingInfo:f}),(0,r.createElement)("div",{id:i,className:"tw-grid"},(0,r.createElement)(hr,{settings:o}),(0,r.createElement)("div",{id:s,className:"tw-flex"}))}),{creditCardSettings:Ir}),edit:(0,r.createElement)(hr,{settings:Ir,context:"edit"}),canMakePayment:()=>!0,placeOrderButtonLabel:(0,on.__)("Place Order","godaddy-payments"),ariaLabel:Ir?.title||(0,on.__)("Credit Card","godaddy-payments"),supports:{showSavedCards:Ir?.flags?.tokenization_enabled,showSaveOption:Ir?.flags?.tokenization_enabled,features:Ir?.supports}});const jr=(0,o.getSetting)(`${Tr}_data`,{title:(0,on.__)("Pay in Person","godaddy-payments"),description:"",supports:[],flags:{tokenization_enabled:!1}});(0,o.registerPaymentMethod)({name:Tr,label:(0,r.createElement)(wr,{title:jr?.title||(0,on.__)("Pay in Person","godaddy-payments")}),content:(0,r.createElement)((function({eventRegistration:e,emitResponse:t,payInPersonSettings:n}){const o=`wc-${n?.id}`,a=e?.onPaymentSetup;return(0,r.useEffect)((()=>{const e=a?.((async()=>({type:t?.responseTypes.SUCCESS})));return()=>{e?.()}}),[t?.responseTypes.SUCCESS,a]),(0,r.createElement)("div",{id:o,className:"tw-grid"},(0,r.createElement)(hr,{settings:n}))}),{payInPersonSettings:jr}),edit:(0,r.createElement)(hr,{settings:jr,context:"edit"}),canMakePayment:()=>!0,placeOrderButtonLabel:(0,on.__)("Place Order","godaddy-payments"),ariaLabel:jr?.title||(0,on.__)("Pay in Person","godaddy-payments"),supports:{showSavedCards:!1,showSaveOption:!1,features:jr?.supports}})},56:e=>{var t,n,r,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(l,{WC_VERSION:()=>x,formatPrice:()=>b,getSetting:()=>h,registerExpressPaymentMethod:()=>y,registerPaymentMethod:()=>w}),e.exports=(t=l,((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of i(t))s.call(e,n)||undefined===n||o(e,n,{get:()=>t[n],enumerable:!(r=a(t,n))||r.enumerable});return e})(o({},"__esModule",{value:!0}),t));var c,d,u,f,p,m,g,v,b=(null==(r=null==(n=null==window?void 0:window.wc)?void 0:n.priceFormat)?void 0:r.formatPrice)||(e=>(console.error("formatPrice was not defined"),e)),h=(null==(d=null==(c=null==window?void 0:window.wc)?void 0:c.wcSettings)?void 0:d.getSetting)||(()=>(console.error("getSetting was not defined"),{})),y=(null==(f=null==(u=null==window?void 0:window.wc)?void 0:u.wcBlocksRegistry)?void 0:f.registerExpressPaymentMethod)||(()=>(console.error("registerExpressPaymentMethod was not defined"),null)),w=(null==(m=null==(p=null==window?void 0:window.wc)?void 0:p.wcBlocksRegistry)?void 0:m.registerPaymentMethod)||(()=>(console.error("registerPaymentMethod was not defined"),null)),x=(null==(v=null==(g=null==window?void 0:window.wc)?void 0:g.wcSettings)?void 0:v.WC_VERSION)||"0.0.0"},0:(e,t,n)=>{"use strict";var r=n(280),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,d=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:d,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},135:(e,t,n)=>{"use strict";e.exports=n(0)},280:e=>{"use strict";e.exports=window.React}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.m=r,e=[],a.O=(t,n,r,o)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,r,o]=e[d],s=!0,l=0;l<n.length;l++)(!1&o||i>=o)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(s=!1,o<i&&(i=o));if(s){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,r,o]},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,a.d(o,i),o},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={995:0,192:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,s,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)var d=l(a)}for(t&&t(n);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(d)},n=globalThis.webpackChunk_gdcorp_partners_woocommerce_gateway_godaddy_payments=globalThis.webpackChunk_gdcorp_partners_woocommerce_gateway_godaddy_payments||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var i=a.O(void 0,[192],(()=>a(980)));i=a.O(i)})();
  • godaddy-payments/trunk/godaddy-payments.php

    r3034791 r3035393  
    66 * Author: GoDaddy
    77 * Author URI: https://www.godaddy.com/
    8  * Version: 1.7.1
     8 * Version: 1.7.2
    99 * Text Domain: godaddy-payments
    1010 * Domain Path: /i18n/languages/
  • godaddy-payments/trunk/i18n/languages/godaddy-payments.pot

    r3034791 r3035393  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: GoDaddy Payments 1.7.1\n"
     5"Project-Id-Version: GoDaddy Payments 1.7.2\n"
    66"Report-Msgid-Bugs-To: https://woocommerce.com/my-account/marketplace-ticket-form/\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-02-12T19:39:03+00:00\n"
     12"POT-Creation-Date: 2024-02-14T06:08:56+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.10.0\n"
     14"X-Generator: WP-CLI 2.7.1\n"
    1515"X-Domain: godaddy-payments\n"
    1616
    1717#. Plugin Name of the plugin
    18 #: godaddy-payments.php
    1918#: src/Frontend/Admin/Notices.php:132
    2019#: src/Frontend/Admin/Notices.php:162
    21 #: src/Gateways/CreditCardGateway.php:88
     20#: src/Gateways/CreditCardGateway.php:89
    2221#: src/Plugin.php:233
    2322msgid "GoDaddy Payments"
     
    2524
    2625#. Plugin URI of the plugin
    27 #: godaddy-payments.php
    2826msgid "https://payments.godaddy.com/"
    2927msgstr ""
    3028
    3129#. Description of the plugin
    32 #: godaddy-payments.php
    3330msgid "Securely accept credit/debit cards in your checkout, and keep more of your money with the industry's lowest fees—just 2.3% + 30¢ per online transaction. Get paid fast with deposits as soon as the next day."
    3431msgstr ""
    3532
    3633#. Author of the plugin
    37 #: godaddy-payments.php
    3834msgid "GoDaddy"
    3935msgstr ""
    4036
    4137#. Author URI of the plugin
    42 #: godaddy-payments.php
    4338msgid "https://www.godaddy.com/"
    4439msgstr ""
     
    9085msgstr ""
    9186
    92 #: src/Gateways/CreditCardGateway.php:93
     87#: src/Gateways/CreditCardGateway.php:94
    9388msgctxt "Gateway environment"
    9489msgid "Production"
    9590msgstr ""
    9691
    97 #: src/Gateways/CreditCardGateway.php:94
     92#: src/Gateways/CreditCardGateway.php:95
    9893msgctxt "Gateway environment"
    9994msgid "Staging"
     
    10196
    10297#. translators: Context: pricing (e.g.: 2.7% + 0¢) formatted using HTML entities - only adjust formatting if necessary for the given locale
    103 #: src/Gateways/CreditCardGateway.php:127
    104 #: src/Plugin.php:750
     98#: src/Gateways/CreditCardGateway.php:128
     99#: src/Plugin.php:783
    105100msgid "2.7&#37; + 0&#162;"
    106101msgstr ""
    107102
    108103#. translators: Context: pricing (e.g.: 2.3% + 30¢) formatted using HTML entities - only adjust formatting if necessary for the given locale
    109 #: src/Gateways/CreditCardGateway.php:130
    110 #: src/Plugin.php:754
     104#: src/Gateways/CreditCardGateway.php:131
     105#: src/Plugin.php:787
    111106msgid "2.3&#37; + 30&#162;"
    112107msgstr ""
    113108
    114109#. translators: Placeholders: %1$s - pricing, %2$s - <a> tag, %3$s - </a> tag
    115 #: src/Gateways/CreditCardGateway.php:135
     110#: src/Gateways/CreditCardGateway.php:136
    116111msgid "Securely accept credit/debit cards in your checkout, and keep more of your money with the industry's lowest fees—just %1$s per online transaction. Get paid fast with deposits as soon as the next day. %2$sGoDaddy Payments Terms apply%3$s."
    117112msgstr ""
    118113
    119114#. translators: Placeholders: %1$s - payment gateway title, %2$s - a monetary amount. Void as in to void an order.
    120 #: src/Gateways/CreditCardGateway.php:158
     115#: src/Gateways/CreditCardGateway.php:159
    121116msgid "%1$s Void in the amount of %2$s approved."
    122117msgstr ""
    123118
    124 #: src/Gateways/CreditCardGateway.php:167
     119#: src/Gateways/CreditCardGateway.php:168
    125120msgid "(Transaction ID %s)"
    126121msgstr ""
    127122
    128 #: src/Gateways/CreditCardGateway.php:214
     123#: src/Gateways/CreditCardGateway.php:215
    129124msgid "invalid country code"
    130125msgstr ""
    131126
    132 #: src/Gateways/CreditCardGateway.php:313
     127#: src/Gateways/CreditCardGateway.php:314
    133128msgid "GoDaddy Payments payment in the amount of %s approved. "
    134129msgstr ""
    135130
    136 #: src/Gateways/CreditCardGateway.php:317
     131#: src/Gateways/CreditCardGateway.php:318
    137132msgid "Transaction ID: %s."
    138133msgstr ""
    139134
    140135#. translators: Placeholder: %1$s - last four digits of an account number (e.g. credit card)
    141 #: src/Gateways/CreditCardGateway.php:329
     136#: src/Gateways/CreditCardGateway.php:330
    142137msgid "ending in %1$s"
    143138msgstr ""
    144139
    145 #: src/Gateways/CreditCardGateway.php:335
     140#: src/Gateways/CreditCardGateway.php:336
    146141msgid "(expires %s)"
    147142msgstr ""
    148143
    149 #: src/Gateways/CreditCardGateway.php:339
     144#: src/Gateways/CreditCardGateway.php:340
    150145msgid "(Authorization only transaction)"
    151146msgstr ""
    152147
    153 #: src/Gateways/CreditCardGateway.php:952
     148#: src/Gateways/CreditCardGateway.php:953
    154149msgid "Enable / Disable"
    155150msgstr ""
    156151
    157 #: src/Gateways/CreditCardGateway.php:953
     152#: src/Gateways/CreditCardGateway.php:954
    158153msgid "Enable this gateway"
    159154msgstr ""
    160155
    161 #: src/Gateways/CreditCardGateway.php:954
     156#: src/Gateways/CreditCardGateway.php:955
    162157msgid "Enable to add the payment method to your checkout."
    163158msgstr ""
    164159
    165 #: src/Gateways/CreditCardGateway.php:959
     160#: src/Gateways/CreditCardGateway.php:960
    166161msgid "Title in Checkout"
    167162msgstr ""
    168163
    169 #: src/Gateways/CreditCardGateway.php:961
    170 #: src/Gateways/PayInPersonGateway.php:339
     164#: src/Gateways/CreditCardGateway.php:962
     165#: src/Gateways/PayInPersonGateway.php:340
    171166msgid "Payment method title that the customer will see during checkout."
    172167msgstr ""
    173168
    174 #: src/Gateways/CreditCardGateway.php:965
     169#: src/Gateways/CreditCardGateway.php:966
    175170msgid "Description in Checkout"
    176171msgstr ""
    177172
    178 #: src/Gateways/CreditCardGateway.php:967
     173#: src/Gateways/CreditCardGateway.php:968
    179174msgid "Payment method description that the customer will see during checkout."
    180175msgstr ""
    181176
    182 #: src/Gateways/CreditCardGateway.php:971
     177#: src/Gateways/CreditCardGateway.php:972
    183178msgid "Accepted Card Logos"
    184179msgstr ""
    185180
    186 #: src/Gateways/CreditCardGateway.php:973
     181#: src/Gateways/CreditCardGateway.php:974
    187182msgid "These are the card logos that are displayed to customers as accepted during checkout."
    188183msgstr ""
    189184
    190185#. translators: Placeholders: %1$s - <strong> tag, %2$s - </strong> tag
    191 #: src/Gateways/CreditCardGateway.php:976
     186#: src/Gateways/CreditCardGateway.php:977
    192187msgid "This setting %1$sdoes not%2$s change which card types the gateway will accept."
    193188msgstr ""
    194189
    195 #: src/Gateways/CreditCardGateway.php:986
     190#: src/Gateways/CreditCardGateway.php:987
    196191msgid "Saved Cards"
    197192msgstr ""
    198193
    199 #: src/Gateways/CreditCardGateway.php:987
     194#: src/Gateways/CreditCardGateway.php:988
    200195msgid "Allow customers to securely save their payment details for future checkout."
    201196msgstr ""
    202197
    203 #: src/Gateways/CreditCardGateway.php:993
    204 #: src/Gateways/CreditCardGateway.php:1004
     198#: src/Gateways/CreditCardGateway.php:994
     199#: src/Gateways/CreditCardGateway.php:1005
    205200msgid "Connection settings"
    206201msgstr ""
    207202
    208203#. translators: Placeholders: %1$s - opening <a> HTML link tag, %2$s - closing </a> HTML link tag, %3$s - opening <a> HTML link tag, %4$s - closing </a> HTML link tag
    209 #: src/Gateways/CreditCardGateway.php:996
    210 #: src/Gateways/CreditCardGateway.php:1007
     204#: src/Gateways/CreditCardGateway.php:997
     205#: src/Gateways/CreditCardGateway.php:1008
    211206msgid "To connect to GoDaddy Payments, %1$screate a GoDaddy Payments account%2$s. Then copy your Application ID and Private key from the Business Settings under Advanced Tools in your Payments dashboard and paste them in the fields below. %3$sLearn more%4$s"
    212207msgstr ""
    213208
    214 #: src/Gateways/CreditCardGateway.php:1014
     209#: src/Gateways/CreditCardGateway.php:1015
    215210msgid "Application ID"
    216211msgstr ""
    217212
    218 #: src/Gateways/CreditCardGateway.php:1016
     213#: src/Gateways/CreditCardGateway.php:1017
    219214msgid "Enter your Application ID"
    220215msgstr ""
    221216
    222 #: src/Gateways/CreditCardGateway.php:1020
     217#: src/Gateways/CreditCardGateway.php:1021
    223218msgid "Private Key"
    224219msgstr ""
    225220
    226 #: src/Gateways/CreditCardGateway.php:1022
     221#: src/Gateways/CreditCardGateway.php:1023
    227222msgid "Enter your Private Key"
    228223msgstr ""
    229224
    230 #: src/Gateways/CreditCardGateway.php:1026
     225#: src/Gateways/CreditCardGateway.php:1027
    231226msgid "Staging Application ID"
    232227msgstr ""
    233228
    234 #: src/Gateways/CreditCardGateway.php:1028
     229#: src/Gateways/CreditCardGateway.php:1029
    235230msgid "Enter your staging Application ID"
    236231msgstr ""
    237232
    238 #: src/Gateways/CreditCardGateway.php:1032
     233#: src/Gateways/CreditCardGateway.php:1033
    239234msgid "Staging Private Key"
    240235msgstr ""
    241236
    242 #: src/Gateways/CreditCardGateway.php:1034
     237#: src/Gateways/CreditCardGateway.php:1035
    243238msgid "Enter your staging Private Key"
    244239msgstr ""
    245240
    246 #: src/Gateways/CreditCardGateway.php:1270
     241#: src/Gateways/CreditCardGateway.php:1271
    247242msgctxt "Checkout error"
    248243msgid "An error occurred, please try again or try an alternate form of payment."
    249244msgstr ""
    250245
    251 #: src/Gateways/CreditCardGateway.php:1274
     246#: src/Gateways/CreditCardGateway.php:1275
    252247msgctxt "Credit or debit card"
    253248msgid "Missing card details."
    254249msgstr ""
    255250
    256 #: src/Gateways/CreditCardGateway.php:1278
     251#: src/Gateways/CreditCardGateway.php:1279
    257252msgctxt "Checkout error"
    258253msgid "Missing billing details."
    259254msgstr ""
    260255
    261 #: src/Gateways/PayInPersonGateway.php:78
     256#: src/Gateways/PayInPersonGateway.php:79
    262257msgid "GoDaddy Payments – Selling in Person"
    263258msgstr ""
    264259
    265 #: src/Gateways/PayInPersonGateway.php:79
     260#: src/Gateways/PayInPersonGateway.php:80
    266261msgid "Customers can buy online and pay in person with orders synced to your Smart Terminal."
    267262msgstr ""
    268263
    269 #: src/Gateways/PayInPersonGateway.php:241
     264#: src/Gateways/PayInPersonGateway.php:242
    270265msgid "Return to payments"
    271266msgstr ""
    272267
    273268#. translators: Placeholders: %1$s - opening HTML tag, %2$s - closing HTML tag
    274 #: src/Gateways/PayInPersonGateway.php:249
     269#: src/Gateways/PayInPersonGateway.php:250
    275270msgid "%1$sShop Smart Terminal%2$s"
    276271msgstr ""
    277272
    278273#. translators: Placeholders: %1$s - opening HTML tag, %2$s - closing HTML tag
    279 #: src/Gateways/PayInPersonGateway.php:256
     274#: src/Gateways/PayInPersonGateway.php:257
    280275msgid "%1$sDevices%2$s"
    281276msgstr ""
    282277
    283278#. translators: Placeholders: %1$s - opening HTML tag, %2$s - closing HTML tag
    284 #: src/Gateways/PayInPersonGateway.php:263
     279#: src/Gateways/PayInPersonGateway.php:264
    285280msgid "%1$sCatalogs%2$s"
    286281msgstr ""
    287282
    288283#. translators: Placeholders: %1$s - opening HTML tag, %2$s - closing HTML tag
    289 #: src/Gateways/PayInPersonGateway.php:270
     284#: src/Gateways/PayInPersonGateway.php:271
    290285msgid "%1$sCustomize Terminal%2$s"
    291286msgstr ""
    292287
    293 #: src/Gateways/PayInPersonGateway.php:283
     288#: src/Gateways/PayInPersonGateway.php:284
    294289msgid "Smart Terminal"
    295290msgstr ""
    296291
    297 #: src/Gateways/PayInPersonGateway.php:284
     292#: src/Gateways/PayInPersonGateway.php:285
    298293msgid "Dual screens for smoother selling."
    299294msgstr ""
    300295
    301 #: src/Gateways/PayInPersonGateway.php:285
     296#: src/Gateways/PayInPersonGateway.php:286
    302297msgid "Our dual screens make check out a breeze. Plus, our all-in-one terminal includes a built-in payment processor, scanner, printer, security and more."
    303298msgstr ""
    304299
    305 #: src/Gateways/PayInPersonGateway.php:294
     300#: src/Gateways/PayInPersonGateway.php:295
    306301msgid "Free"
    307302msgstr ""
    308303
    309 #: src/Gateways/PayInPersonGateway.php:295
     304#: src/Gateways/PayInPersonGateway.php:296
    310305msgid "2-day shipping."
    311306msgstr ""
    312307
    313 #: src/Gateways/PayInPersonGateway.php:298
     308#: src/Gateways/PayInPersonGateway.php:299
    314309msgid "Learn More"
    315310msgstr ""
    316311
    317 #: src/Gateways/PayInPersonGateway.php:337
     312#: src/Gateways/PayInPersonGateway.php:338
    318313msgid "Title"
    319314msgstr ""
    320315
    321 #: src/Gateways/PayInPersonGateway.php:343
    322 #: src/Shipping/LocalDelivery/LocalDelivery.php:173
     316#: src/Gateways/PayInPersonGateway.php:344
     317#: src/Shipping/LocalDelivery/LocalDelivery.php:174
    323318msgid "Order received instructions"
    324319msgstr ""
    325320
    326 #: src/Gateways/PayInPersonGateway.php:346
     321#: src/Gateways/PayInPersonGateway.php:347
    327322msgid "Message that the customer will see on the order received page and in the processing order email after checkout."
    328323msgstr ""
    329324
    330 #: src/Gateways/PayInPersonGateway.php:349
     325#: src/Gateways/PayInPersonGateway.php:350
    331326msgid "Enable for Shipping Methods"
    332327msgstr ""
    333328
    334 #: src/Gateways/PayInPersonGateway.php:355
     329#: src/Gateways/PayInPersonGateway.php:356
    335330msgid "Select the shipping methods that will show this payment method for the customer during checkout."
    336331msgstr ""
    337332
    338 #: src/Gateways/PayInPersonGateway.php:357
     333#: src/Gateways/PayInPersonGateway.php:358
    339334msgid "Select Shipping Methods"
    340335msgstr ""
    341336
    342 #: src/Gateways/PayInPersonGateway.php:426
     337#: src/Gateways/PayInPersonGateway.php:427
    343338msgid "At least one shipping method is required to enable Selling in Person."
    344339msgstr ""
    345340
    346341#. translators: Placeholders: %1$s - shipping zone name, %2$s - shipping method name
    347 #: src/Gateways/PayInPersonGateway.php:461
     342#: src/Gateways/PayInPersonGateway.php:462
    348343msgid "%1$s &ndash; %2$s"
    349344msgstr ""
    350345
    351 #: src/Gateways/PayInPersonGateway.php:462
     346#: src/Gateways/PayInPersonGateway.php:463
    352347msgid "Other locations"
    353348msgstr ""
    354349
    355350#. translators: Placeholders: %1$s - shipping method title, %2$s - shipping method id
    356 #: src/Gateways/PayInPersonGateway.php:464
     351#: src/Gateways/PayInPersonGateway.php:465
    357352msgid "%1$s (#%2$s)"
    358353msgstr ""
    359354
    360 #: src/Gateways/PayInPersonGateway.php:486
     355#: src/Gateways/PayInPersonGateway.php:487
    361356msgid "Local Pickup Plus method"
    362357msgstr ""
    363358
    364359#. translators: Placeholder: %s - Shipping method name
    365 #: src/Gateways/PayInPersonGateway.php:488
     360#: src/Gateways/PayInPersonGateway.php:489
    366361msgid "Any \"%s\" method"
    367362msgstr ""
    368363
    369 #: src/Gateways/PayInPersonGateway.php:657
     364#: src/Gateways/PayInPersonGateway.php:658
     365#: assets/js/blocks/wc-poynt-checkout-block.js:1
    370366msgid "Pay in Person"
    371367msgstr ""
    372368
    373 #: src/Gateways/PayInPersonGateway.php:669
     369#: src/Gateways/PayInPersonGateway.php:670
    374370msgid "Pay for your order in-person at pickup or delivery."
    375371msgstr ""
    376372
    377 #: src/Gateways/PayInPersonGateway.php:683
     373#: src/Gateways/PayInPersonGateway.php:684
    378374msgid "We accept major credit/debit cards and cash."
    379375msgstr ""
    380376
    381377#: src/Lifecycle.php:121
     378#: assets/js/blocks/wc-poynt-checkout-block.js:1
    382379msgid "Credit Card"
    383380msgstr ""
     
    419416msgstr ""
    420417
     418#: src/Plugin.php:321
     419#: src/Plugin.php:328
     420msgctxt "Payment gateway title"
     421msgid "Configure %s"
     422msgstr ""
     423
    421424#. translators: Placeholders: %1$s - opening <a> HTML link tag, %2$s - closing </a> HTML link tag
    422 #: src/Plugin.php:366
     425#: src/Plugin.php:399
    423426msgid "Migration successful! WooCommerce Poynt Collect Payment Gateway was deactivated, and Poynt &mdash; a GoDaddy Brand for WooCommerce has been %1$sconfigured with your previous settings%2$s."
    424427msgstr ""
    425428
    426429#. translators: Placeholders: %1$s - list of supported currencies, %2$s - store country, %3$s - opening <a> HTML link tag, %4$s - closing </a> HTML link tag, %5$s - currency code
    427 #: src/Plugin.php:607
     430#: src/Plugin.php:640
    428431msgid "GoDaddy Payments requires %1$s transactions for %2$s businesses. Please %3$schange your Currency%4$s to %5$s in order to use the payment method."
    429432msgstr ""
    430433
    431434#. translators: Placeholders: %1$s - list of supported currencies, %2$s - opening <a> HTML link tag, %3$s - closing </a> HTML link tag
    432 #: src/Plugin.php:649
     435#: src/Plugin.php:682
    433436msgid "GoDaddy Payments requires %1$s transactions. Please %2$schange your Currency%3$s in order to use the payment method."
    434437msgstr ""
    435438
    436439#. translators: Placeholders: %1$s - list of supported countries, %2$s - opening <a> HTML link tag, %3$s - closing </a> HTML link tag, %4$s - list of supported countries %
    437 #: src/Plugin.php:691
     440#: src/Plugin.php:724
    438441msgid "GoDaddy Payments is available for %1$s-based businesses. Please %2$supdate your Store Address%3$s if you are in the %4$s."
    439442msgstr ""
    440443
    441444#. translators: Placeholders: %1$s - Plugin name, %2$s - country based pricing, %3$s - opening <a> HTML link tag, %4$s - closing </a> HTML link tag
    442 #: src/Plugin.php:724
     445#: src/Plugin.php:757
    443446msgid "Set up %1$s for WooCommerce to securely accept credit and debit card payments in your checkout, and keep more of your money with the industry's lowest fees - just %2$s per online transaction. %3$sSet up now%4$s"
    444447msgstr ""
     
    472475msgstr ""
    473476
    474 #: src/Shipping/LocalDelivery/LocalDelivery.php:58
     477#: src/Shipping/LocalDelivery/LocalDelivery.php:59
     478#: src/Shipping/LocalDelivery/LocalDelivery.php:128
     479msgid "Local delivery"
     480msgstr ""
     481
     482#: src/Shipping/LocalDelivery/LocalDelivery.php:60
     483msgid "Allow customers to select local delivery service. Taxes will be applied using customer's shipping address."
     484msgstr ""
     485
     486#: src/Shipping/LocalDelivery/LocalDelivery.php:121
     487msgid "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>."
     488msgstr ""
     489
     490#: src/Shipping/LocalDelivery/LocalDelivery.php:121
     491msgid "Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees."
     492msgstr ""
     493
     494#: src/Shipping/LocalDelivery/LocalDelivery.php:125
     495msgid "Checkout Title"
     496msgstr ""
     497
    475498#: src/Shipping/LocalDelivery/LocalDelivery.php:127
    476 msgid "Local delivery"
    477 msgstr ""
    478 
    479 #: src/Shipping/LocalDelivery/LocalDelivery.php:59
    480 msgid "Allow customers to select local delivery service. Taxes will be applied using customer's shipping address."
    481 msgstr ""
    482 
    483 #: src/Shipping/LocalDelivery/LocalDelivery.php:120
    484 msgid "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>."
    485 msgstr ""
    486 
    487 #: src/Shipping/LocalDelivery/LocalDelivery.php:120
    488 msgid "Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees."
    489 msgstr ""
    490 
    491 #: src/Shipping/LocalDelivery/LocalDelivery.php:124
    492 msgid "Checkout Title"
    493 msgstr ""
    494 
    495 #: src/Shipping/LocalDelivery/LocalDelivery.php:126
    496499msgid "This controls the title which the user sees during checkout."
    497500msgstr ""
    498501
    499 #: src/Shipping/LocalDelivery/LocalDelivery.php:131
     502#: src/Shipping/LocalDelivery/LocalDelivery.php:132
    500503msgid "Tax status"
    501504msgstr ""
    502505
    503 #: src/Shipping/LocalDelivery/LocalDelivery.php:136
     506#: src/Shipping/LocalDelivery/LocalDelivery.php:137
    504507msgid "Taxable"
    505508msgstr ""
    506509
    507 #: src/Shipping/LocalDelivery/LocalDelivery.php:137
     510#: src/Shipping/LocalDelivery/LocalDelivery.php:138
    508511msgctxt "Tax status"
    509512msgid "None"
    510513msgstr ""
    511514
    512 #: src/Shipping/LocalDelivery/LocalDelivery.php:141
     515#: src/Shipping/LocalDelivery/LocalDelivery.php:142
    513516msgid "Cost"
    514517msgstr ""
    515518
    516 #: src/Shipping/LocalDelivery/LocalDelivery.php:149
     519#: src/Shipping/LocalDelivery/LocalDelivery.php:150
    517520msgid "Minimum order amount total when available"
    518521msgstr ""
    519522
    520 #: src/Shipping/LocalDelivery/LocalDelivery.php:152
     523#: src/Shipping/LocalDelivery/LocalDelivery.php:153
    521524msgid "The amount a customer’s order must be greater than or equal to in order to select the shipping method."
    522525msgstr ""
    523526
    524 #: src/Shipping/LocalDelivery/LocalDelivery.php:157
     527#: src/Shipping/LocalDelivery/LocalDelivery.php:158
    525528msgid "Minimum order total when free"
    526529msgstr ""
    527530
    528 #: src/Shipping/LocalDelivery/LocalDelivery.php:160
     531#: src/Shipping/LocalDelivery/LocalDelivery.php:161
    529532msgid "The amount a customer’s order must be greater than or equal to for the shipping method to be free."
    530533msgstr ""
    531534
    532 #: src/Shipping/LocalDelivery/LocalDelivery.php:165
    533 #: src/Shipping/LocalDelivery/LocalDelivery.php:167
    534 #: src/Shipping/LocalPickup/LocalPickup.php:67
     535#: src/Shipping/LocalDelivery/LocalDelivery.php:166
     536#: src/Shipping/LocalDelivery/LocalDelivery.php:168
     537#: src/Shipping/LocalPickup/LocalPickup.php:68
    535538msgid "Checkout description"
    536539msgstr ""
    537540
    538 #: src/Shipping/LocalDelivery/LocalDelivery.php:168
     541#: src/Shipping/LocalDelivery/LocalDelivery.php:169
    539542msgid "This description will be displayed underneath the Local Delivery shipping method name in the Cart and Checkout pages."
    540543msgstr ""
    541544
    542 #: src/Shipping/LocalDelivery/LocalDelivery.php:175
     545#: src/Shipping/LocalDelivery/LocalDelivery.php:176
    543546msgid "Delivery instructions"
    544547msgstr ""
    545548
    546 #: src/Shipping/LocalDelivery/LocalDelivery.php:176
     549#: src/Shipping/LocalDelivery/LocalDelivery.php:177
    547550msgid "Message that the customer will see on the order received page and the processing order email after checkout."
    548551msgstr ""
    549552
    550 #: src/Shipping/LocalPickup/LocalPickup.php:69
     553#: src/Shipping/LocalPickup/LocalPickup.php:70
    551554msgid "Shipping method description that the customer will see during checkout."
    552555msgstr ""
    553556
    554 #: src/Shipping/LocalPickup/LocalPickup.php:75
     557#: src/Shipping/LocalPickup/LocalPickup.php:76
    555558msgid "Pickup instructions"
    556559msgstr ""
    557560
    558 #: src/Shipping/LocalPickup/LocalPickup.php:77
     561#: src/Shipping/LocalPickup/LocalPickup.php:78
    559562msgid "Message that the customer will see on the order received page as well as in the processing order and ready for pickup emails."
    560563msgstr ""
    561564
    562 #: src/Shipping/LocalPickup/LocalPickup.php:184
    563 #: src/Shipping/LocalPickup/LocalPickup.php:193
    564 #: src/Shipping/LocalPickup/LocalPickup.php:219
     565#: src/Shipping/LocalPickup/LocalPickup.php:185
     566#: src/Shipping/LocalPickup/LocalPickup.php:194
     567#: src/Shipping/LocalPickup/LocalPickup.php:220
    565568msgid "Pickup Instructions"
    566569msgstr ""
     
    631634msgid "Your order is ready for pickup."
    632635msgstr ""
     636
     637#: assets/js/blocks/wc-poynt-checkout-block.js:1
     638msgid "An error occurred, please try again or try an alternate form of payment."
     639msgstr ""
     640
     641#: assets/js/blocks/wc-poynt-checkout-block.js:1
     642msgid "Place Order"
     643msgstr ""
  • godaddy-payments/trunk/readme.txt

    r3034791 r3035393  
    55Tested up to: 6.4.3
    66Requires PHP: 7.4
    7 Stable tag: 1.7.1
     7Stable tag: 1.7.2
    88License: GPL-2.0
    99License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    9696== Changelog ==
    9797
    98 = 2024.02.12 - version 1.7.1
     98= 2024.02.14 - version 1.7.2 =
     99 * Fix - Ensure the changes from the previous release are also included in the block checkout
     100 * Fix - Add sanity checks in the Pay in Person gateway to prevent errors at checkout
     101 * Fix - Display the correct titles in the plugins' page "Configure" links for the payment methods
     102
     103= 2024.02.12 - version 1.7.1 =
    99104 * Tweak - Pass available customer information to the payment form to improve AVS check accuracy
    100105
  • godaddy-payments/trunk/src/Gateways/CreditCardGateway.php

    r3034791 r3035393  
    3535 * @method PaymentForm|null get_payment_form_instance()
    3636 */
     37#[\AllowDynamicProperties]
    3738class CreditCardGateway extends Framework\SV_WC_Payment_Gateway_Direct
    3839{
  • godaddy-payments/trunk/src/Gateways/PayInPersonGateway.php

    r3025639 r3035393  
    3434 * @method Plugin get_plugin()
    3535 */
     36#[\AllowDynamicProperties]
    3637class PayInPersonGateway extends Framework\SV_WC_Payment_Gateway_Direct
    3738{
     
    178179    {
    179180        // only show if the user checkout using pay in person payment method
    180         if (Plugin::PAYINPERSON_GATEWAY_ID === $order->get_payment_method()) {
     181        if ($order instanceof WC_Order && Plugin::PAYINPERSON_GATEWAY_ID === $order->get_payment_method()) {
    181182            $text = $this->get_option('instructions', $this->getDefaultInstructions());
    182183        }
     
    448449        }
    449450
    450         foreach ($shipping->load_shipping_methods() as $shippingMethod) {
     451        foreach ($shipping->get_shipping_methods() as $shippingMethod) {
    451452            $options[$shippingMethod->get_method_title()][$shippingMethod->id] = $this->getShippingMethodOptionsText($shippingMethod);
    452453
  • godaddy-payments/trunk/src/Plugin.php

    r3034791 r3035393  
    4040{
    4141    /** the plugin's version number */
    42     const VERSION = '1.7.1';
     42    const VERSION = '1.7.2';
    4343
    4444    /** the plugin's gateway id */
     
    304304
    305305    /**
     306     * Gets the settings link used in the plugins page.
     307     *
     308     * @since 1.7.2
     309     * @internal
     310     *
     311     * @param $gateway_id
     312     * @return string
     313     */
     314    public function get_settings_link($gateway_id = '')
     315    {
     316        switch ($gateway_id) {
     317            case self::CREDIT_CARD_GATEWAY_ID:
     318                /** @var CreditCardGateway $gateway */
     319                $gateway = $this->get_gateway($gateway_id);
     320
     321                return sprintf('<a href="%s">%s</a>', $this->get_settings_url($gateway_id), sprintf(esc_html_x('Configure %s', 'Payment gateway title', 'godaddy-payments'), $gateway->get_method_title()));
     322            case self::PAYINPERSON_GATEWAY_ID:
     323                try {
     324                    /** @var PayInPersonGateway $gateway */
     325                    $gateway = $this->get_gateway($gateway_id);
     326
     327                    return $gateway && $gateway->is_configured()
     328                        ? sprintf('<a href="%s">%s</a>', $this->get_settings_url($gateway_id), sprintf(esc_html_x('Configure %s', 'Payment gateway title', 'godaddy-payments'), $gateway->get_method_title()))
     329                        : '';
     330                } catch (Exception $e) {
     331                    return '';
     332                }
     333            default:
     334                return parent::get_settings_link($gateway_id);
     335        }
     336    }
     337
     338    /**
    306339     * Gets the "My payment methods" handler instance.
    307340     *
  • godaddy-payments/trunk/src/Shipping/LocalDelivery/LocalDelivery.php

    r3025639 r3035393  
    1717 * Integration class for the Local Delivery shipping method.
    1818 */
     19#[\AllowDynamicProperties]
    1920class LocalDelivery extends WC_Shipping_Method
    2021{
  • godaddy-payments/trunk/src/Shipping/LocalPickup/LocalPickup.php

    r3025639 r3035393  
    2020 * @since 1.3.0
    2121 */
     22#[\AllowDynamicProperties]
    2223class LocalPickup
    2324{
  • godaddy-payments/trunk/vendor/autoload.php

    r3034791 r3035393  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit09d49448861655b46f564f4771fc0e6f::getLoader();
     25return ComposerAutoloaderInitab725f79205122da442a516587528937::getLoader();
  • godaddy-payments/trunk/vendor/composer/ClassLoader.php

    r3034791 r3035393  
    4646    private static $includeFile;
    4747
    48     /** @var string|null */
     48    /** @var ?string */
    4949    private $vendorDir;
    5050
    5151    // PSR-4
    5252    /**
    53      * @var array<string, array<string, int>>
     53     * @var array[]
     54     * @psalm-var array<string, array<string, int>>
    5455     */
    5556    private $prefixLengthsPsr4 = array();
    5657    /**
    57      * @var array<string, list<string>>
     58     * @var array[]
     59     * @psalm-var array<string, array<int, string>>
    5860     */
    5961    private $prefixDirsPsr4 = array();
    6062    /**
    61      * @var list<string>
     63     * @var array[]
     64     * @psalm-var array<string, string>
    6265     */
    6366    private $fallbackDirsPsr4 = array();
     
    6568    // PSR-0
    6669    /**
    67      * List of PSR-0 prefixes
    68      *
    69      * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
    70      *
    71      * @var array<string, array<string, list<string>>>
     70     * @var array[]
     71     * @psalm-var array<string, array<string, string[]>>
    7272     */
    7373    private $prefixesPsr0 = array();
    7474    /**
    75      * @var list<string>
     75     * @var array[]
     76     * @psalm-var array<string, string>
    7677     */
    7778    private $fallbackDirsPsr0 = array();
     
    8182
    8283    /**
    83      * @var array<string, string>
     84     * @var string[]
     85     * @psalm-var array<string, string>
    8486     */
    8587    private $classMap = array();
     
    8991
    9092    /**
    91      * @var array<string, bool>
     93     * @var bool[]
     94     * @psalm-var array<string, bool>
    9295     */
    9396    private $missingClasses = array();
    9497
    95     /** @var string|null */
     98    /** @var ?string */
    9699    private $apcuPrefix;
    97100
    98101    /**
    99      * @var array<string, self>
     102     * @var self[]
    100103     */
    101104    private static $registeredLoaders = array();
    102105
    103106    /**
    104      * @param string|null $vendorDir
     107     * @param ?string $vendorDir
    105108     */
    106109    public function __construct($vendorDir = null)
     
    111114
    112115    /**
    113      * @return array<string, list<string>>
     116     * @return string[]
    114117     */
    115118    public function getPrefixes()
     
    123126
    124127    /**
    125      * @return array<string, list<string>>
     128     * @return array[]
     129     * @psalm-return array<string, array<int, string>>
    126130     */
    127131    public function getPrefixesPsr4()
     
    131135
    132136    /**
    133      * @return list<string>
     137     * @return array[]
     138     * @psalm-return array<string, string>
    134139     */
    135140    public function getFallbackDirs()
     
    139144
    140145    /**
    141      * @return list<string>
     146     * @return array[]
     147     * @psalm-return array<string, string>
    142148     */
    143149    public function getFallbackDirsPsr4()
     
    147153
    148154    /**
    149      * @return array<string, string> Array of classname => path
     155     * @return string[] Array of classname => path
     156     * @psalm-return array<string, string>
    150157     */
    151158    public function getClassMap()
     
    155162
    156163    /**
    157      * @param array<string, string> $classMap Class to filename map
     164     * @param string[] $classMap Class to filename map
     165     * @psalm-param array<string, string> $classMap
    158166     *
    159167     * @return void
     
    172180     * appending or prepending to the ones previously set for this prefix.
    173181     *
    174      * @param string              $prefix  The prefix
    175      * @param list<string>|string $paths   The PSR-0 root directories
    176      * @param bool                $prepend Whether to prepend the directories
     182     * @param string          $prefix  The prefix
     183     * @param string[]|string $paths   The PSR-0 root directories
     184     * @param bool            $prepend Whether to prepend the directories
    177185     *
    178186     * @return void
     
    180188    public function add($prefix, $paths, $prepend = false)
    181189    {
    182         $paths = (array) $paths;
    183190        if (!$prefix) {
    184191            if ($prepend) {
    185192                $this->fallbackDirsPsr0 = array_merge(
    186                     $paths,
     193                    (array) $paths,
    187194                    $this->fallbackDirsPsr0
    188195                );
     
    190197                $this->fallbackDirsPsr0 = array_merge(
    191198                    $this->fallbackDirsPsr0,
    192                     $paths
     199                    (array) $paths
    193200                );
    194201            }
     
    199206        $first = $prefix[0];
    200207        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    201             $this->prefixesPsr0[$first][$prefix] = $paths;
     208            $this->prefixesPsr0[$first][$prefix] = (array) $paths;
    202209
    203210            return;
     
    205212        if ($prepend) {
    206213            $this->prefixesPsr0[$first][$prefix] = array_merge(
    207                 $paths,
     214                (array) $paths,
    208215                $this->prefixesPsr0[$first][$prefix]
    209216            );
     
    211218            $this->prefixesPsr0[$first][$prefix] = array_merge(
    212219                $this->prefixesPsr0[$first][$prefix],
    213                 $paths
     220                (array) $paths
    214221            );
    215222        }
     
    220227     * appending or prepending to the ones previously set for this namespace.
    221228     *
    222      * @param string              $prefix  The prefix/namespace, with trailing '\\'
    223      * @param list<string>|string $paths   The PSR-4 base directories
    224      * @param bool                $prepend Whether to prepend the directories
     229     * @param string          $prefix  The prefix/namespace, with trailing '\\'
     230     * @param string[]|string $paths   The PSR-4 base directories
     231     * @param bool            $prepend Whether to prepend the directories
    225232     *
    226233     * @throws \InvalidArgumentException
     
    230237    public function addPsr4($prefix, $paths, $prepend = false)
    231238    {
    232         $paths = (array) $paths;
    233239        if (!$prefix) {
    234240            // Register directories for the root namespace.
    235241            if ($prepend) {
    236242                $this->fallbackDirsPsr4 = array_merge(
    237                     $paths,
     243                    (array) $paths,
    238244                    $this->fallbackDirsPsr4
    239245                );
     
    241247                $this->fallbackDirsPsr4 = array_merge(
    242248                    $this->fallbackDirsPsr4,
    243                     $paths
     249                    (array) $paths
    244250                );
    245251            }
     
    251257            }
    252258            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    253             $this->prefixDirsPsr4[$prefix] = $paths;
     259            $this->prefixDirsPsr4[$prefix] = (array) $paths;
    254260        } elseif ($prepend) {
    255261            // Prepend directories for an already registered namespace.
    256262            $this->prefixDirsPsr4[$prefix] = array_merge(
    257                 $paths,
     263                (array) $paths,
    258264                $this->prefixDirsPsr4[$prefix]
    259265            );
     
    262268            $this->prefixDirsPsr4[$prefix] = array_merge(
    263269                $this->prefixDirsPsr4[$prefix],
    264                 $paths
     270                (array) $paths
    265271            );
    266272        }
     
    271277     * replacing any others previously set for this prefix.
    272278     *
    273      * @param string              $prefix The prefix
    274      * @param list<string>|string $paths  The PSR-0 base directories
     279     * @param string          $prefix The prefix
     280     * @param string[]|string $paths  The PSR-0 base directories
    275281     *
    276282     * @return void
     
    289295     * replacing any others previously set for this namespace.
    290296     *
    291      * @param string              $prefix The prefix/namespace, with trailing '\\'
    292      * @param list<string>|string $paths  The PSR-4 base directories
     297     * @param string          $prefix The prefix/namespace, with trailing '\\'
     298     * @param string[]|string $paths  The PSR-4 base directories
    293299     *
    294300     * @throws \InvalidArgumentException
     
    476482
    477483    /**
    478      * Returns the currently registered loaders keyed by their corresponding vendor directories.
    479      *
    480      * @return array<string, self>
     484     * Returns the currently registered loaders indexed by their corresponding vendor directories.
     485     *
     486     * @return self[]
    481487     */
    482488    public static function getRegisteredLoaders()
  • godaddy-payments/trunk/vendor/composer/autoload_real.php

    r3034791 r3035393  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit09d49448861655b46f564f4771fc0e6f
     5class ComposerAutoloaderInitab725f79205122da442a516587528937
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit09d49448861655b46f564f4771fc0e6f', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitab725f79205122da442a516587528937', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit09d49448861655b46f564f4771fc0e6f', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitab725f79205122da442a516587528937', 'loadClassLoader'));
    3030
    3131        require __DIR__ . '/autoload_static.php';
    32         call_user_func(\Composer\Autoload\ComposerStaticInit09d49448861655b46f564f4771fc0e6f::getInitializer($loader));
     32        call_user_func(\Composer\Autoload\ComposerStaticInitab725f79205122da442a516587528937::getInitializer($loader));
    3333
    3434        $loader->register(true);
  • godaddy-payments/trunk/vendor/composer/autoload_static.php

    r3034791 r3035393  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit09d49448861655b46f564f4771fc0e6f
     7class ComposerStaticInitab725f79205122da442a516587528937
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3636    {
    3737        return \Closure::bind(function () use ($loader) {
    38             $loader->prefixLengthsPsr4 = ComposerStaticInit09d49448861655b46f564f4771fc0e6f::$prefixLengthsPsr4;
    39             $loader->prefixDirsPsr4 = ComposerStaticInit09d49448861655b46f564f4771fc0e6f::$prefixDirsPsr4;
    40             $loader->classMap = ComposerStaticInit09d49448861655b46f564f4771fc0e6f::$classMap;
     38            $loader->prefixLengthsPsr4 = ComposerStaticInitab725f79205122da442a516587528937::$prefixLengthsPsr4;
     39            $loader->prefixDirsPsr4 = ComposerStaticInitab725f79205122da442a516587528937::$prefixDirsPsr4;
     40            $loader->classMap = ComposerStaticInitab725f79205122da442a516587528937::$classMap;
    4141
    4242        }, null, ClassLoader::class);
  • godaddy-payments/trunk/vendor/composer/installed.php

    r3034791 r3035393  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '245155a32968192c497499d8589d0e46c66ece5b',
     6        'reference' => '1fc8fdf2cd3f711e46fedda557ae7cfdc47ca677',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => '245155a32968192c497499d8589d0e46c66ece5b',
     25            'reference' => '1fc8fdf2cd3f711e46fedda557ae7cfdc47ca677',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • godaddy-payments/trunk/vendor/skyverge/wc-plugin-framework/woocommerce/payment-gateway/Blocks/Gateway_Blocks_Handler.php

    r3034791 r3035393  
    6767
    6868                    add_action('woocommerce_blocks_payment_method_type_registration', function ( PaymentMethodRegistry $payment_method_registry ) use ( $checkout_integration ) {
     69
    6970                            $payment_method_registry->register( $checkout_integration );
    7071                        }
Note: See TracChangeset for help on using the changeset viewer.