Plugin Directory

Changeset 3388878


Ignore:
Timestamp:
11/03/2025 12:58:11 PM (5 months ago)
Author:
wpify
Message:

Update to version 5.1.7

Location:
wpify-woo
Files:
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wpify-woo/tags/5.1.7/build/icdic-blocks.asset.php

    r3384014 r3388878  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => '962e3c1b9dec079192a9');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => '0826962713330357daba');
  • wpify-woo/tags/5.1.7/build/icdic-blocks.js

    r3384014 r3388878  
    1 !function(){"use strict";var e={745:function(e,t,i){var n=i(850);t.s=n.createRoot,n.hydrateRoot},850:function(e){e.exports=window.ReactDOM}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,i,n){return(i=function(t){var i=function(t){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,c,l=[],a=!0,s=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;a=!1}else for(;!(a=(n=o.call(i)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{if(!a&&null!=i.return&&(c=i.return(),Object(c)!==c))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=window.React,c=window.wp.data,l=i(745),a=i(850);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}var d=window.wc.wcBlocksData,u=d.CART_STORE_KEY,y=d.CHECKOUT_STORE_KEY,f=(d.COLLECTIONS_STORE_KEY,d.VALIDATION_STORE_KEY),p=function(){var e=window.wc.blocksCheckout.extensionCartUpdate,i=r((0,o.useState)(!1),2),n=i[0],l=i[1],d=r((0,o.useState)(),2),p=d[0],w=d[1],m=r((0,o.useState)(),2),v=m[0],g=m[1],b=r((0,o.useState)(),2),A=b[0],_=b[1],h=r((0,o.useState)(),2),S=h[0],E=h[1],D=r((0,o.useState)(),2),O=D[0],C=D[1],I=r((0,o.useState)(),2),T=I[0],j=I[1],x=((0,c.useSelect)((function(e){return e(u).getCartData()}),[]),(0,c.useSelect)((function(e){return e(u).getCustomerData()}),[])),P=(0,c.useSelect)((function(e){return e(y).getAdditionalFields()}),[]),W=(0,c.useDispatch)(y).setAdditionalFields,K=(0,c.useDispatch)(f),k=(K.showValidationError,K.setValidationErrors),q=(K.showAllValidationErrors,(0,c.useDispatch)(u)),V=q.setBillingAddress,R=q.setShippingAddress,L=(0,c.useSelect)((function(e){return e(f).getValidationError("contact-wpify-dic")}),[]);console.log(L);var Z=document.querySelector(".wc-block-components-address-form__wpify-company"),U=document.querySelector(".wc-block-components-address-form__wpify-ic"),Y=document.querySelector(".wc-block-components-address-form__wpify-dic"),z=document.querySelector(".wc-block-components-address-form__wpify-dic-dph"),F=document.querySelector(".wc-block-components-address-form__wpify-ic"),N=document.querySelector("#wpify-ares"),B=document.querySelector("#contact-wpify-company"),M=document.querySelector("#contact-wpify-ic"),H=document.querySelector("#contact-wpify-dic"),$=document.querySelector("#contact-wpify-dic-dph");function G(e){return(e=(e=e.replace(""," ")).replace(/[^a-zA-Z0-9]/g,"").toUpperCase()).match(/^[A-Z]{2}/)?e:x.billingAddress.country+e}function J(e){return(e=e.replace(""," ")).replace(/\D/g,"")}function Q(e,t){return new Promise((function(i,n){fetch(e,t).then((function(e){e.ok?e.json().then(i):e.json().then((function(e){return n(e.message)}))})).catch(n)}))}function X(t){E(null),j(null),window.wpifyWooIcDic.validateVies&&(!t||t.length<4||(C(!0),window.wpifyWooIcDic.restUrl&&Q(window.wpifyWooIcDic.restUrl+"/icdic-vies?in="+t).then((function(i){var n=i.validation||{},r=i.warning||null;"passed"!==n||r?r&&(E(r),j("error")):(E(null),j("success"));var o=t.match(/^[A-Z]{2}/)?t.substring(0,2):x.billingAddress.country;e({namespace:"wpify_ic_dic",data:{validation:n,country:o,dic:t}});var c=new CustomEvent("wpify_woo_ic_dic_vies_valid",{detail:{validation:n,warning:r}});window.dispatchEvent(c)})).catch((function(i){E(i),j("error"),e({namespace:"wpify_ic_dic",data:{validation:"failed",country:x.billingAddress.country,dic:t}})})).finally((function(){C(!1)}))))}(0,o.useEffect)((function(){if(Z)if(z&&(z.style.display="none"),null!=P&&P["wpify/ic_dic_toggle"]?(Z.style.removeProperty("display"),U.style.removeProperty("display"),Y.style.removeProperty("display"),x.billingAddress.company&&(P["wpify/company"]=x.billingAddress.company)):(Z.style.display="none",U.style.display="none",Y.style.display="none",P["wpify/company"]="",P["wpify/ic"]="",P["wpify/dic"]="",P["wpify/dic-dph"]="",W(P)),null!=P&&P["wpify/ic_dic_toggle"]&&"SK"===x.billingAddress.country&&z.style.removeProperty("display"),N&&null!=P&&P["wpify/ic_dic_toggle"]&&"CZ"===x.billingAddress.country){var e=window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered");N.style.display=e?"none":"block"}else N&&(N.style.display="none")}),[P,B,M,H,$,Z,U,Y,z,x]),(0,o.useEffect)((function(){P["wpify/ic"]&&""!==P["wpify/ic"].trim()||(_(null),w(null));var e="SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"];e&&""!==e.trim()||(j(null),E(null))}),[P,x.billingAddress.country]),(0,o.useEffect)((function(){e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}});var t="SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"];t&&""!==t.trim()&&setTimeout((function(){window.wpifyWooIcDic.validateVies?X(G(t)):e({namespace:"wpify_ic_dic",data:{validation:"passed",country:x.billingAddress.country,dic:t}})}),500)}),[]),(0,o.useEffect)((function(){console.log("Country changed to:",x.billingAddress.country),"CZ"!==x.billingAddress.country&&(w(null),_(null),console.log("Cleared ARES error for non-Czech country")),E(null),j(null),k({});var i=function(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?s(Object(n),!0).forEach((function(i){t(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},P);"SK"!==x.billingAddress.country&&i["wpify/dic-dph"]&&(i["wpify/dic-dph"]="",W(i));var n="SK"===x.billingAddress.country?i["wpify/dic-dph"]||"":i["wpify/dic"]||"";e({namespace:"wpify_ic_dic",data:{validation:"country_change",country:x.billingAddress.country,dic:n}}),n&&n.length>=4&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(n))}),300)}),[x.billingAddress.country]),(0,o.useEffect)((function(){if(F){var e=document.createElement("div");e.id="wpify-ares",F.appendChild(e),l(!0)}}),[F]),(0,o.useEffect)((function(){if(M){var e,t=function(t){clearTimeout(e),e=setTimeout((function(){var e=J(t.target.value);t.target.value=e,P["wpify/ic"]=e,W(P),console.log("IC field change:",{country:x.billingAddress.country,value:e,willCallAres:"CZ"===x.billingAddress.country}),"CZ"===x.billingAddress.country?window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered")&&ee():w(null)}),2e3)};return M.addEventListener("input",t),function(){clearTimeout(e),M.removeEventListener("input",t)}}}),[M,x.billingAddress.country]),(0,o.useEffect)((function(){if(H||$){var t,i="SK"===x.billingAddress.country?$:H,n="SK"===x.billingAddress.country?"wpify/dic-dph":"wpify/dic",r=function(i){clearTimeout(t),t=setTimeout((function(){var t=G(i.target.value);i.target.value=t,P[n]=t,W(P),t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return null==i||i.addEventListener("input",r),function(){clearTimeout(t),null==i||i.removeEventListener("input",r)}}}),[H,$,x.billingAddress.country]);var ee=function(){if("CZ"===x.billingAddress.country){w(null),_(null),g(!0);var e=J(P["wpify/ic"]);Q(window.wpifyWooIcDic.restUrl+"/icdic?in="+e).then((function(e){var t=e.details,i=void 0===t?{}:t;P["wpify/company"]=i.billing_company,P["wpify/ic"]=i.billing_ic,P["wpify/dic"]=i.billing_dic,W(P),i.billing_dic&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(i.billing_dic))}),100);var n={company:i.billing_company,address_1:i.billing_address_1,city:i.billing_city,postcode:i.billing_postcode};V(n),R(n);var r=new CustomEvent("wpify_woo_ic_dic_ares_autofilled",{detail:{details:i}});window.dispatchEvent(r),_("success")})).catch((function(e){w(e),_("error")})).finally((function(){g(!1)}))}},te=function(e){var t=e.isLoading,i=e.status,n=e.error,r=e.fieldValue;return r&&""!==r.trim()?t?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translateY(-50%)",color:"#0073aa"}},(0,o.createElement)("span",{style:{display:"inline-block",width:"16px",height:"16px",border:"2px solid #f3f3f3",borderTop:"2px solid #0073aa",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,o.createElement)("style",null,"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t")):"success"===i?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#46b450"}},(0,o.createElement)("span",null,"✓")):"error"===i||n?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#dc3232"}},(0,o.createElement)("span",null,"!")):null:null};return n?(0,o.createElement)("div",null,U&&(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:v,status:A,error:p,fieldValue:P["wpify/ic"]}),p&&P["wpify/ic"]&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},p)),U),U&&(null==P?void 0:P["wpify/ic_dic_toggle"])&&"CZ"===x.billingAddress.country&&function(){if(!(window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered"))){var e=document.querySelector(".wpify-ares-button-wrapper");return e||((e=document.createElement("div")).className="wpify-ares-button-wrapper",U.insertAdjacentElement("afterend",e)),(0,a.createPortal)((0,o.createElement)("div",{style:{marginTop:"8px"}},(0,o.createElement)("input",{type:"button",className:"button wp-element-button",onClick:function(){return ee()},value:window.wpifyWooIcDic.searchAresText})),e)}return null}(),(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:O,status:T,error:S,fieldValue:"SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"]}),S&&("SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},S)),"SK"===x.billingAddress.country?z:Y)):null};document.querySelectorAll('[data-app="wpify-ic-dic"]').forEach((function(e){(0,l.s)(e).render((0,o.createElement)(p,null))}))}()}();
     1!function(){"use strict";var e={745:function(e,t,i){var n=i(850);t.s=n.createRoot,n.hydrateRoot},850:function(e){e.exports=window.ReactDOM}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,i,n){return(i=function(t){var i=function(t){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,c,l=[],a=!0,s=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;a=!1}else for(;!(a=(n=o.call(i)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{if(!a&&null!=i.return&&(c=i.return(),Object(c)!==c))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=window.React,c=window.wp.data,l=i(745),a=i(850);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?s(Object(n),!0).forEach((function(i){t(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=window.wc.wcBlocksData,f=d.CART_STORE_KEY,y=d.CHECKOUT_STORE_KEY,p=(d.COLLECTIONS_STORE_KEY,d.VALIDATION_STORE_KEY),w=function(){var e=window.wc.blocksCheckout.extensionCartUpdate,t=r((0,o.useState)(!1),2),i=t[0],n=t[1],l=r((0,o.useState)(),2),s=l[0],d=l[1],w=r((0,o.useState)(),2),m=w[0],v=w[1],g=r((0,o.useState)(),2),b=g[0],_=g[1],h=r((0,o.useState)(),2),A=h[0],E=h[1],S=r((0,o.useState)(),2),D=S[0],O=S[1],T=r((0,o.useState)(),2),C=T[0],I=T[1],P=((0,c.useSelect)((function(e){return e(f).getCartData()}),[]),(0,c.useSelect)((function(e){return e(f).getCustomerData()}),[])),j=(0,c.useSelect)((function(e){return e(y).getAdditionalFields()}),[]),x=(0,c.useDispatch)(y).setAdditionalFields,W=(0,c.useDispatch)(p),k=(W.showValidationError,W.setValidationErrors),K=(W.showAllValidationErrors,(0,c.useDispatch)(f)),R=K.setBillingAddress,q=K.setShippingAddress,L=(0,o.useRef)(j),V=(0,o.useRef)(null==j?void 0:j["wpify/ic_dic_toggle"]);(0,o.useEffect)((function(){L.current=j}),[j]),(0,c.useSelect)((function(e){return e(p).getValidationError("contact-wpify-dic")}),[]);var Z=document.querySelector(".wc-block-components-address-form__wpify-company"),U=document.querySelector(".wc-block-components-address-form__wpify-ic"),Y=document.querySelector(".wc-block-components-address-form__wpify-dic"),z=document.querySelector(".wc-block-components-address-form__wpify-dic-dph"),F=document.querySelector(".wc-block-components-address-form__wpify-ic"),N=document.querySelector("#wpify-ares"),B=document.querySelector("#contact-wpify-company"),M=document.querySelector("#contact-wpify-ic"),H=document.querySelector("#contact-wpify-dic"),$=document.querySelector("#contact-wpify-dic-dph");function G(e){return(e=(e=e.replace(""," ")).replace(/[^a-zA-Z0-9]/g,"").toUpperCase()).match(/^[A-Z]{2}/)?e:P.billingAddress.country+e}function J(e){return(e=e.replace(""," ")).replace(/\D/g,"")}function Q(e,t){return new Promise((function(i,n){fetch(e,t).then((function(e){e.ok?e.json().then(i):e.json().then((function(e){return n(e.message)}))})).catch(n)}))}function X(t){E(null),I(null),window.wpifyWooIcDic.validateVies&&(!t||t.length<4||(O(!0),window.wpifyWooIcDic.restUrl&&Q(window.wpifyWooIcDic.restUrl+"/icdic-vies?in="+t).then((function(i){var n=i.validation||{},r=i.warning||null;"passed"!==n||r?r&&(E(r),I("error")):(E(null),I("success"));var o=t.match(/^[A-Z]{2}/)?t.substring(0,2):P.billingAddress.country;e({namespace:"wpify_ic_dic",data:{validation:n,country:o,dic:t}});var c=new CustomEvent("wpify_woo_ic_dic_vies_valid",{detail:{validation:n,warning:r}});window.dispatchEvent(c)})).catch((function(i){E(i),I("error"),e({namespace:"wpify_ic_dic",data:{validation:"failed",country:P.billingAddress.country,dic:t}})})).finally((function(){O(!1)}))))}(0,o.useEffect)((function(){if(Z){z&&(z.style.display="none");var e=null==j?void 0:j["wpify/ic_dic_toggle"];if(e!==V.current){if(e){if(Z.style.removeProperty("display"),U.style.removeProperty("display"),Y.style.removeProperty("display"),P.billingAddress.company){var t=L.current;x(u(u({},t),{},{"wpify/company":P.billingAddress.company}))}}else{Z.style.display="none",U.style.display="none",Y.style.display="none";var i=L.current;x(u(u({},i),{},{"wpify/company":"","wpify/ic":"","wpify/dic":"","wpify/dic-dph":""}))}V.current=e}else e?(Z.style.removeProperty("display"),U.style.removeProperty("display"),Y.style.removeProperty("display")):(Z.style.display="none",U.style.display="none",Y.style.display="none");if(null!=j&&j["wpify/ic_dic_toggle"]&&"SK"===P.billingAddress.country&&z.style.removeProperty("display"),N&&null!=j&&j["wpify/ic_dic_toggle"]&&"CZ"===P.billingAddress.country){var n=window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered");N.style.display=n?"none":"block"}else N&&(N.style.display="none")}}),[j,B,M,H,$,Z,U,Y,z,P]),(0,o.useEffect)((function(){j["wpify/ic"]&&""!==j["wpify/ic"].trim()||(_(null),d(null));var e="SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"];e&&""!==e.trim()||(I(null),E(null))}),[j,P.billingAddress.country]),(0,o.useEffect)((function(){e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}});var t="SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"];t&&""!==t.trim()&&setTimeout((function(){window.wpifyWooIcDic.validateVies?X(G(t)):e({namespace:"wpify_ic_dic",data:{validation:"passed",country:P.billingAddress.country,dic:t}})}),500)}),[]),(0,o.useEffect)((function(){console.log("Country changed to:",P.billingAddress.country),"CZ"!==P.billingAddress.country&&(d(null),_(null),console.log("Cleared ARES error for non-Czech country")),E(null),I(null),k({});var t=u({},j);"SK"!==P.billingAddress.country&&t["wpify/dic-dph"]&&(t["wpify/dic-dph"]="",x(t));var i="SK"===P.billingAddress.country?t["wpify/dic-dph"]||"":t["wpify/dic"]||"";e({namespace:"wpify_ic_dic",data:{validation:"country_change",country:P.billingAddress.country,dic:i}}),i&&i.length>=4&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(i))}),300)}),[P.billingAddress.country]),(0,o.useEffect)((function(){if(F){var e=document.createElement("div");e.id="wpify-ares",F.appendChild(e),n(!0)}}),[F]),(0,o.useEffect)((function(){if(M){var e,t=function(t){clearTimeout(e);var i=t.target.value,n=t.target;e=setTimeout((function(){var e=J(i);n.value=e;var t=u(u({},L.current),{},{"wpify/ic":e});x(t),"CZ"===P.billingAddress.country?window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered")&&ee():d(null)}),2e3)};return M.addEventListener("input",t),function(){clearTimeout(e),M.removeEventListener("input",t)}}}),[M,P.billingAddress.country]),(0,o.useEffect)((function(){if(H){var t,i=function(i){clearTimeout(t);var n=i.target.value,r=i.target;t=setTimeout((function(){var t="SK"===P.billingAddress.country,i=t?J(n):G(n);r.value=i;var o=u(u({},L.current),{},{"wpify/dic":i});x(o),!t&&i&&i.length>=4?X(i):(!i||i.length<4)&&e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return H.addEventListener("input",i),function(){clearTimeout(t),H.removeEventListener("input",i)}}}),[H,P.billingAddress.country]),(0,o.useEffect)((function(){if($){var t,i=function(i){clearTimeout(t);var n=i.target.value,r=i.target;t=setTimeout((function(){var t=G(n);r.value=t;var i=u(u({},L.current),{},{"wpify/dic-dph":t});x(i),t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return $.addEventListener("input",i),function(){clearTimeout(t),$.removeEventListener("input",i)}}}),[$]);var ee=function(){if("CZ"===P.billingAddress.country){d(null),_(null),v(!0);var e=J(L.current["wpify/ic"]);Q(window.wpifyWooIcDic.restUrl+"/icdic?in="+e).then((function(e){var t=e.details,i=void 0===t?{}:t,n=u(u({},L.current),{},{"wpify/company":i.billing_company,"wpify/ic":i.billing_ic,"wpify/dic":i.billing_dic});x(n),i.billing_dic&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(i.billing_dic))}),100);var r={company:i.billing_company,address_1:i.billing_address_1,city:i.billing_city,postcode:i.billing_postcode};R(r),q(r);var o=new CustomEvent("wpify_woo_ic_dic_ares_autofilled",{detail:{details:i}});window.dispatchEvent(o),_("success")})).catch((function(e){d(e),_("error")})).finally((function(){v(!1)}))}},te=function(e){var t=e.isLoading,i=e.status,n=e.error,r=e.fieldValue;return r&&""!==r.trim()?t?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translateY(-50%)",color:"#0073aa"}},(0,o.createElement)("span",{style:{display:"inline-block",width:"16px",height:"16px",border:"2px solid #f3f3f3",borderTop:"2px solid #0073aa",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,o.createElement)("style",null,"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t")):"success"===i?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#46b450"}},(0,o.createElement)("span",null,"✓")):"error"===i||n?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#dc3232"}},(0,o.createElement)("span",null,"!")):null:null};return i?(0,o.createElement)("div",null,U&&(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:m,status:b,error:s,fieldValue:j["wpify/ic"]}),s&&j["wpify/ic"]&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},s)),U),U&&(null==j?void 0:j["wpify/ic_dic_toggle"])&&"CZ"===P.billingAddress.country&&function(){if(!(window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered"))){var e=document.querySelector(".wpify-ares-button-wrapper");return e||((e=document.createElement("div")).className="wpify-ares-button-wrapper",U.insertAdjacentElement("afterend",e)),(0,a.createPortal)((0,o.createElement)("div",{style:{marginTop:"8px"}},(0,o.createElement)("input",{type:"button",className:"button wp-element-button",onClick:function(){return ee()},value:window.wpifyWooIcDic.searchAresText})),e)}return null}(),(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:D,status:C,error:A,fieldValue:"SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"]}),A&&("SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},A)),"SK"===P.billingAddress.country?z:Y)):null};document.querySelectorAll('[data-app="wpify-ic-dic"]').forEach((function(e){(0,l.s)(e).render((0,o.createElement)(w,null))}))}()}();
  • wpify-woo/tags/5.1.7/readme.txt

    r3388746 r3388878  
    55Tested up to: 6.8
    66Requires PHP: 8.1
    7 Stable tag: 5.1.6
     7Stable tag: 5.1.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    219219
    220220== Changelog ==
     221= 5.1.7 =
     222* Fixed a bug that deleted the VAT number when invalid check was performed on block checkout
     223* Fix SK VAT numbers normalizations on block checkout
     224
    221225= 5.1.6 =
    222226* Add `wpify_woo_heureka_overeno_data` filter to edit sending data for Heureka ověřeno zákazníky
  • wpify-woo/tags/5.1.7/src/Modules/IcDic/assets/icdic-blocks.js

    r3384014 r3388878  
    11import {useDispatch, useSelect} from '@wordpress/data';
    22import {createRoot} from 'react-dom/client';
    3 import {useEffect, useState} from "react";
     3import {useEffect, useState, useRef} from "react";
    44import {createPortal} from 'react-dom';
    55
     
    5555    const {setBillingAddress, setShippingAddress} = useDispatch(CART_STORE_KEY);
    5656
     57    // Use ref to always have fresh additionalFields values in event handlers
     58    const additionalFieldsRef = useRef(additionalFields);
     59    const previousToggleRef = useRef(additionalFields?.['wpify/ic_dic_toggle']);
     60
     61    useEffect(() => {
     62        additionalFieldsRef.current = additionalFields;
     63    }, [additionalFields]);
     64
    5765    const dicError = useValidationError('contact-wpify-dic');
    58     console.log(dicError);
    5966    const companyFieldWrap = document.querySelector('.wc-block-components-address-form__wpify-company');
    6067    const icFieldWrap = document.querySelector('.wc-block-components-address-form__wpify-ic');
     
    7885        }
    7986
    80         if (!additionalFields?.['wpify/ic_dic_toggle']) {
    81             companyFieldWrap.style.display = 'none';
    82             icFieldWrap.style.display = 'none';
    83             dicFieldWrap.style.display = 'none';
    84 
    85             additionalFields['wpify/company'] = '';
    86             additionalFields['wpify/ic'] = '';
    87             additionalFields['wpify/dic'] = '';
    88             additionalFields['wpify/dic-dph'] = '';
    89 
    90             setAdditionalFields(additionalFields);
    91 
     87        const currentToggle = additionalFields?.['wpify/ic_dic_toggle'];
     88        const previousToggle = previousToggleRef.current;
     89
     90        // Handle toggle change
     91        if (currentToggle !== previousToggle) {
     92            if (!currentToggle) {
     93                // Toggle turned OFF - hide and clear all fields
     94                companyFieldWrap.style.display = 'none';
     95                icFieldWrap.style.display = 'none';
     96                dicFieldWrap.style.display = 'none';
     97
     98                const currentFields = additionalFieldsRef.current;
     99                setAdditionalFields({
     100                    ...currentFields,
     101                    'wpify/company': '',
     102                    'wpify/ic': '',
     103                    'wpify/dic': '',
     104                    'wpify/dic-dph': ''
     105                });
     106            } else {
     107                // Toggle turned ON - show fields and prefill company if available
     108                companyFieldWrap.style.removeProperty('display');
     109                icFieldWrap.style.removeProperty('display');
     110                dicFieldWrap.style.removeProperty('display');
     111
     112                if (customer.billingAddress.company) {
     113                    const currentFields = additionalFieldsRef.current;
     114                    setAdditionalFields({
     115                        ...currentFields,
     116                        'wpify/company': customer.billingAddress.company
     117                    });
     118                }
     119            }
     120
     121            previousToggleRef.current = currentToggle;
    92122        } else {
    93             companyFieldWrap.style.removeProperty('display');
    94             icFieldWrap.style.removeProperty('display');
    95             dicFieldWrap.style.removeProperty('display');
    96 
    97             if (customer.billingAddress.company) {
    98                 additionalFields['wpify/company'] = customer.billingAddress.company;
     123            // Toggle didn't change, just update visibility
     124            if (!currentToggle) {
     125                companyFieldWrap.style.display = 'none';
     126                icFieldWrap.style.display = 'none';
     127                dicFieldWrap.style.display = 'none';
     128            } else {
     129                companyFieldWrap.style.removeProperty('display');
     130                icFieldWrap.style.removeProperty('display');
     131                dicFieldWrap.style.removeProperty('display');
    99132            }
    100133        }
     
    145178            data: {validation: 'dic_cleared'}
    146179        });
    147        
     180
    148181        // Then check if there are any DIC values on page load
    149182        const currentDic = customer.billingAddress.country === 'SK'
    150183            ? additionalFields['wpify/dic-dph']
    151184            : additionalFields['wpify/dic'];
    152            
     185
    153186        if (currentDic && currentDic.trim() !== '') {
    154187            // DIC exists on page load - validate it after a short delay
     
    200233            ? (updatedFields['wpify/dic-dph'] || '')
    201234            : (updatedFields['wpify/dic'] || '');
    202        
     235
    203236        // Reset VAT exempt on country change with current DIC state
    204237        extensionCartUpdate({
     
    261294        const handleIcInputChange = (e) => {
    262295            clearTimeout(typingTimeout);
     296            const inputValue = e.target.value; // Store value before setTimeout
     297            const targetElement = e.target; // Store target element
     298
    263299            typingTimeout = setTimeout(() => {
    264                 const normalizedValue = normalizeIc(e.target.value);
    265                 e.target.value = normalizedValue;
    266                 additionalFields['wpify/ic'] = normalizedValue;
    267                 setAdditionalFields(additionalFields);
    268 
    269                 console.log('IC field change:', {
    270                     country: customer.billingAddress.country,
    271                     value: normalizedValue,
    272                     willCallAres: customer.billingAddress.country === 'CZ'
    273                 });
     300                const normalizedValue = normalizeIc(inputValue);
     301
     302                // Update DOM to make normalization visible
     303                targetElement.value = normalizedValue;
     304
     305                // Read fresh values from ref and update only IC field
     306                const currentFields = additionalFieldsRef.current;
     307                const newFields = {...currentFields, 'wpify/ic': normalizedValue};
     308                setAdditionalFields(newFields);
    274309
    275310                // Only call ARES autofill for Czech companies and if ic_entered validation is enabled
     
    297332    }, [icField, customer.billingAddress.country]);
    298333
    299     useEffect(() => {
    300         if (!dicField && !dicDphField) {
    301             return;
    302         }
    303 
    304         const activeField = customer.billingAddress.country === 'SK' ? dicDphField : dicField;
    305         const activeFieldKey = customer.billingAddress.country === 'SK' ? 'wpify/dic-dph' : 'wpify/dic';
    306         let typingTimeout;
    307 
    308         const handleDicInputChange = (e) => {
    309             clearTimeout(typingTimeout);
    310 
    311             typingTimeout = setTimeout(() => {
    312                 const normalizedValue = normalizeDic(e.target.value);
    313 
    314                 // Update the field value in the DOM and additionalFields
    315                 e.target.value = normalizedValue;
    316                 additionalFields[activeFieldKey] = normalizedValue;
    317                 setAdditionalFields(additionalFields);
    318 
    319                 // Only validate if there's actually a meaningful value (at least country + some digits)
     334    // Separate useEffect for DIC field - only updates 'wpify/dic'
     335    useEffect(() => {
     336        if (!dicField) {
     337            return;
     338        }
     339
     340        let timeout;
     341
     342        const handleInput = (e) => {
     343            clearTimeout(timeout);
     344            const inputValue = e.target.value; // Store value before setTimeout
     345            const targetElement = e.target; // Store target element
     346
     347            timeout = setTimeout(() => {
     348                // For Slovakia: DIC is just a number, for others: has country prefix
     349                const isSlovakia = customer.billingAddress.country === 'SK';
     350                const normalizedValue = isSlovakia ? normalizeIc(inputValue) : normalizeDic(inputValue);
     351
     352                // Update DOM to make normalization visible
     353                targetElement.value = normalizedValue;
     354
     355                // Read fresh values from ref and update only DIC field
     356                const currentFields = additionalFieldsRef.current;
     357                const newFields = {...currentFields, 'wpify/dic': normalizedValue};
     358                setAdditionalFields(newFields);
     359
     360                // Only validate for non-Slovakia countries
     361                if (!isSlovakia && normalizedValue && normalizedValue.length >= 4) {
     362                    validateDic(normalizedValue);
     363                } else if (!normalizedValue || normalizedValue.length < 4) {
     364                    extensionCartUpdate({namespace: 'wpify_ic_dic', data: {validation: 'dic_cleared'}});
     365                }
     366            }, 1500);
     367        };
     368
     369        dicField.addEventListener('input', handleInput);
     370        return () => {
     371            clearTimeout(timeout);
     372            dicField.removeEventListener('input', handleInput);
     373        };
     374    }, [dicField, customer.billingAddress.country]);
     375
     376    // Separate useEffect for DIC DPH field - only updates 'wpify/dic-dph'
     377    useEffect(() => {
     378        if (!dicDphField) {
     379            return;
     380        }
     381
     382        let timeout;
     383
     384        const handleInput = (e) => {
     385            clearTimeout(timeout);
     386            const inputValue = e.target.value; // Store value before setTimeout
     387            const targetElement = e.target; // Store target element
     388
     389            timeout = setTimeout(() => {
     390                const normalizedValue = normalizeDic(inputValue);
     391
     392                // Update DOM to make normalization visible
     393                targetElement.value = normalizedValue;
     394
     395                // Read fresh values from ref and update only DIC DPH field
     396                const currentFields = additionalFieldsRef.current;
     397                const newFields = {...currentFields, 'wpify/dic-dph': normalizedValue};
     398                setAdditionalFields(newFields);
     399
    320400                if (normalizedValue && normalizedValue.length >= 4) {
    321401                    validateDic(normalizedValue);
    322402                } else {
    323                     // DIC field is empty or too short - reset VAT exempt
    324                     extensionCartUpdate({
    325                         namespace: 'wpify_ic_dic',
    326                         data: {validation: 'dic_cleared'}
    327                     });
     403                    extensionCartUpdate({namespace: 'wpify_ic_dic', data: {validation: 'dic_cleared'}});
    328404                }
    329             }, 1500); // Reduced from 2000ms to 1500ms
     405            }, 1500);
    330406        };
    331407
    332         activeField?.addEventListener('input', handleDicInputChange);
    333 
     408        dicDphField.addEventListener('input', handleInput);
    334409        return () => {
    335             clearTimeout(typingTimeout);
    336             activeField?.removeEventListener('input', handleDicInputChange);
     410            clearTimeout(timeout);
     411            dicDphField.removeEventListener('input', handleInput);
    337412        };
    338     }, [dicField, dicDphField, customer.billingAddress.country]);
     413    }, [dicDphField]);
    339414
    340415
     
    413488                    setViesError(error);
    414489                    setViesStatus('error');
    415                    
     490
    416491                    // Reset VAT exempt when VIES validation fails
    417492                    extensionCartUpdate({
     
    439514        setAresStatus(null);
    440515        setIsAresLoading(true);
    441         const ic = normalizeIc(additionalFields['wpify/ic']);
     516        const ic = normalizeIc(additionalFieldsRef.current['wpify/ic']);
    442517        fetchJson(window.wpifyWooIcDic.restUrl + '/icdic?in=' + ic)
    443518            .then(({details = {}}) => {
    444                 additionalFields['wpify/company'] = details.billing_company;
    445                 additionalFields['wpify/ic'] = details.billing_ic;
    446                 additionalFields['wpify/dic'] = details.billing_dic;
    447 
    448                 setAdditionalFields(additionalFields);
     519                // Read fresh values from ref and only update ARES fields
     520                const currentFields = additionalFieldsRef.current;
     521                const newFields = {
     522                    ...currentFields,
     523                    'wpify/company': details.billing_company,
     524                    'wpify/ic': details.billing_ic,
     525                    'wpify/dic': details.billing_dic
     526                };
     527
     528                setAdditionalFields(newFields);
    449529
    450530                // Only validate DIC if we have one and VIES validation is enabled
     
    577657                        icFieldWrap.insertAdjacentElement('afterend', aresButtonWrapper);
    578658                    }
    579                    
     659
    580660                    return createPortal(
    581661                        <div style={{marginTop: '8px'}}>
  • wpify-woo/tags/5.1.7/src/Plugin.php

    r3388746 r3388878  
    2323
    2424    /** Plugin version */
    25     public const VERSION = '5.1.6';
     25    public const VERSION = '5.1.7';
    2626
    2727    /** Plugin slug name */
  • wpify-woo/tags/5.1.7/vendor/composer/installed.php

    r3388746 r3388878  
    22    'root' => array(
    33        'name' => 'wpify/woo',
    4         'pretty_version' => '5.1.6',
    5         'version' => '5.1.6.0',
    6         'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377',
     4        'pretty_version' => '5.1.7',
     5        'version' => '5.1.7.0',
     6        'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'wpify/woo' => array(
    14             'pretty_version' => '5.1.6',
    15             'version' => '5.1.6.0',
    16             'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377',
     14            'pretty_version' => '5.1.7',
     15            'version' => '5.1.7.0',
     16            'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d',
    1717            'type' => 'project',
    1818            'install_path' => __DIR__ . '/../../',
  • wpify-woo/tags/5.1.7/vendor/wpify-woo/composer/installed.php

    r3388746 r3388878  
    33namespace WpifyWooDeps;
    44
    5 return array('root' => array('name' => '__root__', 'pretty_version' => '5.1.6', 'version' => '5.1.6.0', 'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.1.6', 'version' => '5.1.6.0', 'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'bacon/bacon-qr-code' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => '8674e51bb65af933a5ffaf1c308a660387c35c22', 'type' => 'library', 'install_path' => __DIR__ . '/../bacon/bacon-qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'dasprid/enum' => array('pretty_version' => '1.0.7', 'version' => '1.0.7.0', 'reference' => 'b5874fa9ed0043116c72162ec7f4fb50e02e7cce', 'type' => 'library', 'install_path' => __DIR__ . '/../dasprid/enum', 'aliases' => array(), 'dev_requirement' => \false), 'dragonbe/vies' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => 'd9193cbaba7e2faefbdc228fb1bf5670f20acf30', 'type' => 'tool', 'install_path' => __DIR__ . '/../dragonbe/vies', 'aliases' => array(), 'dev_requirement' => \false), 'endroid/qr-code' => array('pretty_version' => '4.5.0', 'version' => '4.5.0.0', 'reference' => '36681470bd10352b53bcb9731bdf2270e0d79b22', 'type' => 'library', 'install_path' => __DIR__ . '/../endroid/qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.10.0', 'version' => '7.10.0.0', 'reference' => 'b51ac707cfa420b7bfd4e4d5e510ba8008e822b4', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.3.0', 'version' => '2.3.0.0', 'reference' => '481557b130ef3790cf82b713667b43030dc9c957', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.8.0', 'version' => '2.8.0.0', 'reference' => '21dc724a0583619cd1652f673303492272778051', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'h4kuna/ares' => array('pretty_version' => 'v3.0.13', 'version' => '3.0.13.0', 'reference' => 'd695e8b57b0410738d8eb9d7157bb8c7ec340d72', 'type' => 'library', 'install_path' => __DIR__ . '/../h4kuna/ares', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/inflection' => array('pretty_version' => 'v3.0.4', 'version' => '3.0.4.0', 'reference' => '684ca578eee3ede920d5d3ca8d568fb70e7d9076', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/inflection', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/overeno-zakazniky' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'aa52add431bac32c67b1c00b1969a98709cd611b', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/overeno-zakazniky', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.3.7', 'version' => '1.3.7.0', 'reference' => '4f48ade902b94323ca3be7646db16209ec76be3d', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.8', 'version' => '4.0.8.0', 'reference' => 'c930ca4e3cf4f17dcfb03037703679d2396d2ede', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.7', 'version' => '2.3.7.0', 'reference' => '3c1ddfdef181431fbc4be83378f6d036d59e81e1', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/log' => array('pretty_version' => '3.0.2', 'version' => '3.0.2.0', 'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/czqrpayment' => array('pretty_version' => 'v5.3.1', 'version' => '5.3.1.0', 'reference' => 'f8e0ecbbdb6d30bafb50a833cc7cfe4f575b82a4', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/czqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/iban' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '7fe69bf9274792c37d5a8d9d38ef5cb000f8377a', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/iban', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-interface' => array('pretty_version' => 'v1.1.0', 'version' => '1.1.0.0', 'reference' => '752f7a6bf1190c7d65ead90b5989f61927436c89', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-interface', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-qr-code-provider' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd233c4bedeecf2ff7cd7e7d4ec7f4ad4a5eb4b64', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-qr-code-provider', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/skqrpayment' => array('pretty_version' => 'v4.2.3', 'version' => '4.2.3.0', 'reference' => '857ab3707dd7effc2050c7ef152c61aef7c33d92', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/skqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'spatie/array-to-xml' => array('pretty_version' => '2.17.1', 'version' => '2.17.1.0', 'reference' => '5cbec9c6ab17e320c58a259f0cebe88bde4a7c46', 'type' => 'library', 'install_path' => __DIR__ . '/../spatie/array-to-xml', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v3.6.0', 'version' => '3.6.0.0', 'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'woocommerce/action-scheduler' => array('pretty_version' => '3.9.3', 'version' => '3.9.3.0', 'reference' => 'c58cdbab17651303d406cd3b22cf9d75c71c986c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../woocommerce/action-scheduler', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/asset' => array('pretty_version' => '1.3.0', 'version' => '1.3.0.0', 'reference' => 'faf957af650b441b49f03cb7ffa42abfe157b43b', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '4.0.72', 'version' => '4.0.72.0', 'reference' => '38b9b070dfac830a082d4bc7819ae787bdc28cfd', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/license' => array('pretty_version' => '2.0.7', 'version' => '2.0.7.0', 'reference' => '7f8e7fe16a1bb77cdfcd29c694c5a489fc8db1b1', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/license', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/log' => array('pretty_version' => '1.2.1', 'version' => '1.2.1.0', 'reference' => 'acd58dc5a8fb38e58c167adc2f9b2c588a7a2d87', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.27', 'version' => '4.1.27.0', 'reference' => 'e6c6a6421ade5498be4f5fd1580770bd8dbd2fd6', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/woo-core' => array('pretty_version' => '5.1.20', 'version' => '5.1.20.0', 'reference' => '2d2032c6da6b538079d8e152618b1e5493319409', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/woo-core', 'aliases' => array(), 'dev_requirement' => \false)));
     5return array('root' => array('name' => '__root__', 'pretty_version' => '5.1.7', 'version' => '5.1.7.0', 'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.1.7', 'version' => '5.1.7.0', 'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'bacon/bacon-qr-code' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => '8674e51bb65af933a5ffaf1c308a660387c35c22', 'type' => 'library', 'install_path' => __DIR__ . '/../bacon/bacon-qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'dasprid/enum' => array('pretty_version' => '1.0.7', 'version' => '1.0.7.0', 'reference' => 'b5874fa9ed0043116c72162ec7f4fb50e02e7cce', 'type' => 'library', 'install_path' => __DIR__ . '/../dasprid/enum', 'aliases' => array(), 'dev_requirement' => \false), 'dragonbe/vies' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => 'd9193cbaba7e2faefbdc228fb1bf5670f20acf30', 'type' => 'tool', 'install_path' => __DIR__ . '/../dragonbe/vies', 'aliases' => array(), 'dev_requirement' => \false), 'endroid/qr-code' => array('pretty_version' => '4.5.0', 'version' => '4.5.0.0', 'reference' => '36681470bd10352b53bcb9731bdf2270e0d79b22', 'type' => 'library', 'install_path' => __DIR__ . '/../endroid/qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.10.0', 'version' => '7.10.0.0', 'reference' => 'b51ac707cfa420b7bfd4e4d5e510ba8008e822b4', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.3.0', 'version' => '2.3.0.0', 'reference' => '481557b130ef3790cf82b713667b43030dc9c957', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.8.0', 'version' => '2.8.0.0', 'reference' => '21dc724a0583619cd1652f673303492272778051', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'h4kuna/ares' => array('pretty_version' => 'v3.0.13', 'version' => '3.0.13.0', 'reference' => 'd695e8b57b0410738d8eb9d7157bb8c7ec340d72', 'type' => 'library', 'install_path' => __DIR__ . '/../h4kuna/ares', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/inflection' => array('pretty_version' => 'v3.0.4', 'version' => '3.0.4.0', 'reference' => '684ca578eee3ede920d5d3ca8d568fb70e7d9076', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/inflection', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/overeno-zakazniky' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'aa52add431bac32c67b1c00b1969a98709cd611b', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/overeno-zakazniky', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.3.7', 'version' => '1.3.7.0', 'reference' => '4f48ade902b94323ca3be7646db16209ec76be3d', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.8', 'version' => '4.0.8.0', 'reference' => 'c930ca4e3cf4f17dcfb03037703679d2396d2ede', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.7', 'version' => '2.3.7.0', 'reference' => '3c1ddfdef181431fbc4be83378f6d036d59e81e1', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/log' => array('pretty_version' => '3.0.2', 'version' => '3.0.2.0', 'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/czqrpayment' => array('pretty_version' => 'v5.3.1', 'version' => '5.3.1.0', 'reference' => 'f8e0ecbbdb6d30bafb50a833cc7cfe4f575b82a4', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/czqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/iban' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '7fe69bf9274792c37d5a8d9d38ef5cb000f8377a', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/iban', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-interface' => array('pretty_version' => 'v1.1.0', 'version' => '1.1.0.0', 'reference' => '752f7a6bf1190c7d65ead90b5989f61927436c89', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-interface', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-qr-code-provider' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd233c4bedeecf2ff7cd7e7d4ec7f4ad4a5eb4b64', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-qr-code-provider', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/skqrpayment' => array('pretty_version' => 'v4.2.3', 'version' => '4.2.3.0', 'reference' => '857ab3707dd7effc2050c7ef152c61aef7c33d92', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/skqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'spatie/array-to-xml' => array('pretty_version' => '2.17.1', 'version' => '2.17.1.0', 'reference' => '5cbec9c6ab17e320c58a259f0cebe88bde4a7c46', 'type' => 'library', 'install_path' => __DIR__ . '/../spatie/array-to-xml', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v3.6.0', 'version' => '3.6.0.0', 'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'woocommerce/action-scheduler' => array('pretty_version' => '3.9.3', 'version' => '3.9.3.0', 'reference' => 'c58cdbab17651303d406cd3b22cf9d75c71c986c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../woocommerce/action-scheduler', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/asset' => array('pretty_version' => '1.3.0', 'version' => '1.3.0.0', 'reference' => 'faf957af650b441b49f03cb7ffa42abfe157b43b', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '4.0.72', 'version' => '4.0.72.0', 'reference' => '38b9b070dfac830a082d4bc7819ae787bdc28cfd', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/license' => array('pretty_version' => '2.0.7', 'version' => '2.0.7.0', 'reference' => '7f8e7fe16a1bb77cdfcd29c694c5a489fc8db1b1', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/license', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/log' => array('pretty_version' => '1.2.1', 'version' => '1.2.1.0', 'reference' => 'acd58dc5a8fb38e58c167adc2f9b2c588a7a2d87', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.27', 'version' => '4.1.27.0', 'reference' => 'e6c6a6421ade5498be4f5fd1580770bd8dbd2fd6', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/woo-core' => array('pretty_version' => '5.1.20', 'version' => '5.1.20.0', 'reference' => '2d2032c6da6b538079d8e152618b1e5493319409', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/woo-core', 'aliases' => array(), 'dev_requirement' => \false)));
  • wpify-woo/tags/5.1.7/wpify-woo.php

    r3388746 r3388878  
    44 * Plugin Name:          WPify Woo
    55 * Description:          Custom functionality for WooCommerce
    6  * Version:              5.1.6
     6 * Version:              5.1.7
    77 * Requires PHP:         8.1.0
    88 * Requires at least:    6.2
  • wpify-woo/trunk/build/icdic-blocks.asset.php

    r3384014 r3388878  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => '962e3c1b9dec079192a9');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => '0826962713330357daba');
  • wpify-woo/trunk/build/icdic-blocks.js

    r3384014 r3388878  
    1 !function(){"use strict";var e={745:function(e,t,i){var n=i(850);t.s=n.createRoot,n.hydrateRoot},850:function(e){e.exports=window.ReactDOM}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,i,n){return(i=function(t){var i=function(t){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,c,l=[],a=!0,s=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;a=!1}else for(;!(a=(n=o.call(i)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{if(!a&&null!=i.return&&(c=i.return(),Object(c)!==c))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=window.React,c=window.wp.data,l=i(745),a=i(850);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}var d=window.wc.wcBlocksData,u=d.CART_STORE_KEY,y=d.CHECKOUT_STORE_KEY,f=(d.COLLECTIONS_STORE_KEY,d.VALIDATION_STORE_KEY),p=function(){var e=window.wc.blocksCheckout.extensionCartUpdate,i=r((0,o.useState)(!1),2),n=i[0],l=i[1],d=r((0,o.useState)(),2),p=d[0],w=d[1],m=r((0,o.useState)(),2),v=m[0],g=m[1],b=r((0,o.useState)(),2),A=b[0],_=b[1],h=r((0,o.useState)(),2),S=h[0],E=h[1],D=r((0,o.useState)(),2),O=D[0],C=D[1],I=r((0,o.useState)(),2),T=I[0],j=I[1],x=((0,c.useSelect)((function(e){return e(u).getCartData()}),[]),(0,c.useSelect)((function(e){return e(u).getCustomerData()}),[])),P=(0,c.useSelect)((function(e){return e(y).getAdditionalFields()}),[]),W=(0,c.useDispatch)(y).setAdditionalFields,K=(0,c.useDispatch)(f),k=(K.showValidationError,K.setValidationErrors),q=(K.showAllValidationErrors,(0,c.useDispatch)(u)),V=q.setBillingAddress,R=q.setShippingAddress,L=(0,c.useSelect)((function(e){return e(f).getValidationError("contact-wpify-dic")}),[]);console.log(L);var Z=document.querySelector(".wc-block-components-address-form__wpify-company"),U=document.querySelector(".wc-block-components-address-form__wpify-ic"),Y=document.querySelector(".wc-block-components-address-form__wpify-dic"),z=document.querySelector(".wc-block-components-address-form__wpify-dic-dph"),F=document.querySelector(".wc-block-components-address-form__wpify-ic"),N=document.querySelector("#wpify-ares"),B=document.querySelector("#contact-wpify-company"),M=document.querySelector("#contact-wpify-ic"),H=document.querySelector("#contact-wpify-dic"),$=document.querySelector("#contact-wpify-dic-dph");function G(e){return(e=(e=e.replace(""," ")).replace(/[^a-zA-Z0-9]/g,"").toUpperCase()).match(/^[A-Z]{2}/)?e:x.billingAddress.country+e}function J(e){return(e=e.replace(""," ")).replace(/\D/g,"")}function Q(e,t){return new Promise((function(i,n){fetch(e,t).then((function(e){e.ok?e.json().then(i):e.json().then((function(e){return n(e.message)}))})).catch(n)}))}function X(t){E(null),j(null),window.wpifyWooIcDic.validateVies&&(!t||t.length<4||(C(!0),window.wpifyWooIcDic.restUrl&&Q(window.wpifyWooIcDic.restUrl+"/icdic-vies?in="+t).then((function(i){var n=i.validation||{},r=i.warning||null;"passed"!==n||r?r&&(E(r),j("error")):(E(null),j("success"));var o=t.match(/^[A-Z]{2}/)?t.substring(0,2):x.billingAddress.country;e({namespace:"wpify_ic_dic",data:{validation:n,country:o,dic:t}});var c=new CustomEvent("wpify_woo_ic_dic_vies_valid",{detail:{validation:n,warning:r}});window.dispatchEvent(c)})).catch((function(i){E(i),j("error"),e({namespace:"wpify_ic_dic",data:{validation:"failed",country:x.billingAddress.country,dic:t}})})).finally((function(){C(!1)}))))}(0,o.useEffect)((function(){if(Z)if(z&&(z.style.display="none"),null!=P&&P["wpify/ic_dic_toggle"]?(Z.style.removeProperty("display"),U.style.removeProperty("display"),Y.style.removeProperty("display"),x.billingAddress.company&&(P["wpify/company"]=x.billingAddress.company)):(Z.style.display="none",U.style.display="none",Y.style.display="none",P["wpify/company"]="",P["wpify/ic"]="",P["wpify/dic"]="",P["wpify/dic-dph"]="",W(P)),null!=P&&P["wpify/ic_dic_toggle"]&&"SK"===x.billingAddress.country&&z.style.removeProperty("display"),N&&null!=P&&P["wpify/ic_dic_toggle"]&&"CZ"===x.billingAddress.country){var e=window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered");N.style.display=e?"none":"block"}else N&&(N.style.display="none")}),[P,B,M,H,$,Z,U,Y,z,x]),(0,o.useEffect)((function(){P["wpify/ic"]&&""!==P["wpify/ic"].trim()||(_(null),w(null));var e="SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"];e&&""!==e.trim()||(j(null),E(null))}),[P,x.billingAddress.country]),(0,o.useEffect)((function(){e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}});var t="SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"];t&&""!==t.trim()&&setTimeout((function(){window.wpifyWooIcDic.validateVies?X(G(t)):e({namespace:"wpify_ic_dic",data:{validation:"passed",country:x.billingAddress.country,dic:t}})}),500)}),[]),(0,o.useEffect)((function(){console.log("Country changed to:",x.billingAddress.country),"CZ"!==x.billingAddress.country&&(w(null),_(null),console.log("Cleared ARES error for non-Czech country")),E(null),j(null),k({});var i=function(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?s(Object(n),!0).forEach((function(i){t(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},P);"SK"!==x.billingAddress.country&&i["wpify/dic-dph"]&&(i["wpify/dic-dph"]="",W(i));var n="SK"===x.billingAddress.country?i["wpify/dic-dph"]||"":i["wpify/dic"]||"";e({namespace:"wpify_ic_dic",data:{validation:"country_change",country:x.billingAddress.country,dic:n}}),n&&n.length>=4&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(n))}),300)}),[x.billingAddress.country]),(0,o.useEffect)((function(){if(F){var e=document.createElement("div");e.id="wpify-ares",F.appendChild(e),l(!0)}}),[F]),(0,o.useEffect)((function(){if(M){var e,t=function(t){clearTimeout(e),e=setTimeout((function(){var e=J(t.target.value);t.target.value=e,P["wpify/ic"]=e,W(P),console.log("IC field change:",{country:x.billingAddress.country,value:e,willCallAres:"CZ"===x.billingAddress.country}),"CZ"===x.billingAddress.country?window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered")&&ee():w(null)}),2e3)};return M.addEventListener("input",t),function(){clearTimeout(e),M.removeEventListener("input",t)}}}),[M,x.billingAddress.country]),(0,o.useEffect)((function(){if(H||$){var t,i="SK"===x.billingAddress.country?$:H,n="SK"===x.billingAddress.country?"wpify/dic-dph":"wpify/dic",r=function(i){clearTimeout(t),t=setTimeout((function(){var t=G(i.target.value);i.target.value=t,P[n]=t,W(P),t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return null==i||i.addEventListener("input",r),function(){clearTimeout(t),null==i||i.removeEventListener("input",r)}}}),[H,$,x.billingAddress.country]);var ee=function(){if("CZ"===x.billingAddress.country){w(null),_(null),g(!0);var e=J(P["wpify/ic"]);Q(window.wpifyWooIcDic.restUrl+"/icdic?in="+e).then((function(e){var t=e.details,i=void 0===t?{}:t;P["wpify/company"]=i.billing_company,P["wpify/ic"]=i.billing_ic,P["wpify/dic"]=i.billing_dic,W(P),i.billing_dic&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(i.billing_dic))}),100);var n={company:i.billing_company,address_1:i.billing_address_1,city:i.billing_city,postcode:i.billing_postcode};V(n),R(n);var r=new CustomEvent("wpify_woo_ic_dic_ares_autofilled",{detail:{details:i}});window.dispatchEvent(r),_("success")})).catch((function(e){w(e),_("error")})).finally((function(){g(!1)}))}},te=function(e){var t=e.isLoading,i=e.status,n=e.error,r=e.fieldValue;return r&&""!==r.trim()?t?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translateY(-50%)",color:"#0073aa"}},(0,o.createElement)("span",{style:{display:"inline-block",width:"16px",height:"16px",border:"2px solid #f3f3f3",borderTop:"2px solid #0073aa",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,o.createElement)("style",null,"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t")):"success"===i?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#46b450"}},(0,o.createElement)("span",null,"✓")):"error"===i||n?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#dc3232"}},(0,o.createElement)("span",null,"!")):null:null};return n?(0,o.createElement)("div",null,U&&(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:v,status:A,error:p,fieldValue:P["wpify/ic"]}),p&&P["wpify/ic"]&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},p)),U),U&&(null==P?void 0:P["wpify/ic_dic_toggle"])&&"CZ"===x.billingAddress.country&&function(){if(!(window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered"))){var e=document.querySelector(".wpify-ares-button-wrapper");return e||((e=document.createElement("div")).className="wpify-ares-button-wrapper",U.insertAdjacentElement("afterend",e)),(0,a.createPortal)((0,o.createElement)("div",{style:{marginTop:"8px"}},(0,o.createElement)("input",{type:"button",className:"button wp-element-button",onClick:function(){return ee()},value:window.wpifyWooIcDic.searchAresText})),e)}return null}(),(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:O,status:T,error:S,fieldValue:"SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"]}),S&&("SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},S)),"SK"===x.billingAddress.country?z:Y)):null};document.querySelectorAll('[data-app="wpify-ic-dic"]').forEach((function(e){(0,l.s)(e).render((0,o.createElement)(p,null))}))}()}();
     1!function(){"use strict";var e={745:function(e,t,i){var n=i(850);t.s=n.createRoot,n.hydrateRoot},850:function(e){e.exports=window.ReactDOM}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,i,n){return(i=function(t){var i=function(t){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(i)?i:i+""}(i))in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,c,l=[],a=!0,s=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;a=!1}else for(;!(a=(n=o.call(i)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{if(!a&&null!=i.return&&(c=i.return(),Object(c)!==c))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=window.React,c=window.wp.data,l=i(745),a=i(850);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function u(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?s(Object(n),!0).forEach((function(i){t(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=window.wc.wcBlocksData,f=d.CART_STORE_KEY,y=d.CHECKOUT_STORE_KEY,p=(d.COLLECTIONS_STORE_KEY,d.VALIDATION_STORE_KEY),w=function(){var e=window.wc.blocksCheckout.extensionCartUpdate,t=r((0,o.useState)(!1),2),i=t[0],n=t[1],l=r((0,o.useState)(),2),s=l[0],d=l[1],w=r((0,o.useState)(),2),m=w[0],v=w[1],g=r((0,o.useState)(),2),b=g[0],_=g[1],h=r((0,o.useState)(),2),A=h[0],E=h[1],S=r((0,o.useState)(),2),D=S[0],O=S[1],T=r((0,o.useState)(),2),C=T[0],I=T[1],P=((0,c.useSelect)((function(e){return e(f).getCartData()}),[]),(0,c.useSelect)((function(e){return e(f).getCustomerData()}),[])),j=(0,c.useSelect)((function(e){return e(y).getAdditionalFields()}),[]),x=(0,c.useDispatch)(y).setAdditionalFields,W=(0,c.useDispatch)(p),k=(W.showValidationError,W.setValidationErrors),K=(W.showAllValidationErrors,(0,c.useDispatch)(f)),R=K.setBillingAddress,q=K.setShippingAddress,L=(0,o.useRef)(j),V=(0,o.useRef)(null==j?void 0:j["wpify/ic_dic_toggle"]);(0,o.useEffect)((function(){L.current=j}),[j]),(0,c.useSelect)((function(e){return e(p).getValidationError("contact-wpify-dic")}),[]);var Z=document.querySelector(".wc-block-components-address-form__wpify-company"),U=document.querySelector(".wc-block-components-address-form__wpify-ic"),Y=document.querySelector(".wc-block-components-address-form__wpify-dic"),z=document.querySelector(".wc-block-components-address-form__wpify-dic-dph"),F=document.querySelector(".wc-block-components-address-form__wpify-ic"),N=document.querySelector("#wpify-ares"),B=document.querySelector("#contact-wpify-company"),M=document.querySelector("#contact-wpify-ic"),H=document.querySelector("#contact-wpify-dic"),$=document.querySelector("#contact-wpify-dic-dph");function G(e){return(e=(e=e.replace(""," ")).replace(/[^a-zA-Z0-9]/g,"").toUpperCase()).match(/^[A-Z]{2}/)?e:P.billingAddress.country+e}function J(e){return(e=e.replace(""," ")).replace(/\D/g,"")}function Q(e,t){return new Promise((function(i,n){fetch(e,t).then((function(e){e.ok?e.json().then(i):e.json().then((function(e){return n(e.message)}))})).catch(n)}))}function X(t){E(null),I(null),window.wpifyWooIcDic.validateVies&&(!t||t.length<4||(O(!0),window.wpifyWooIcDic.restUrl&&Q(window.wpifyWooIcDic.restUrl+"/icdic-vies?in="+t).then((function(i){var n=i.validation||{},r=i.warning||null;"passed"!==n||r?r&&(E(r),I("error")):(E(null),I("success"));var o=t.match(/^[A-Z]{2}/)?t.substring(0,2):P.billingAddress.country;e({namespace:"wpify_ic_dic",data:{validation:n,country:o,dic:t}});var c=new CustomEvent("wpify_woo_ic_dic_vies_valid",{detail:{validation:n,warning:r}});window.dispatchEvent(c)})).catch((function(i){E(i),I("error"),e({namespace:"wpify_ic_dic",data:{validation:"failed",country:P.billingAddress.country,dic:t}})})).finally((function(){O(!1)}))))}(0,o.useEffect)((function(){if(Z){z&&(z.style.display="none");var e=null==j?void 0:j["wpify/ic_dic_toggle"];if(e!==V.current){if(e){if(Z.style.removeProperty("display"),U.style.removeProperty("display"),Y.style.removeProperty("display"),P.billingAddress.company){var t=L.current;x(u(u({},t),{},{"wpify/company":P.billingAddress.company}))}}else{Z.style.display="none",U.style.display="none",Y.style.display="none";var i=L.current;x(u(u({},i),{},{"wpify/company":"","wpify/ic":"","wpify/dic":"","wpify/dic-dph":""}))}V.current=e}else e?(Z.style.removeProperty("display"),U.style.removeProperty("display"),Y.style.removeProperty("display")):(Z.style.display="none",U.style.display="none",Y.style.display="none");if(null!=j&&j["wpify/ic_dic_toggle"]&&"SK"===P.billingAddress.country&&z.style.removeProperty("display"),N&&null!=j&&j["wpify/ic_dic_toggle"]&&"CZ"===P.billingAddress.country){var n=window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered");N.style.display=n?"none":"block"}else N&&(N.style.display="none")}}),[j,B,M,H,$,Z,U,Y,z,P]),(0,o.useEffect)((function(){j["wpify/ic"]&&""!==j["wpify/ic"].trim()||(_(null),d(null));var e="SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"];e&&""!==e.trim()||(I(null),E(null))}),[j,P.billingAddress.country]),(0,o.useEffect)((function(){e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}});var t="SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"];t&&""!==t.trim()&&setTimeout((function(){window.wpifyWooIcDic.validateVies?X(G(t)):e({namespace:"wpify_ic_dic",data:{validation:"passed",country:P.billingAddress.country,dic:t}})}),500)}),[]),(0,o.useEffect)((function(){console.log("Country changed to:",P.billingAddress.country),"CZ"!==P.billingAddress.country&&(d(null),_(null),console.log("Cleared ARES error for non-Czech country")),E(null),I(null),k({});var t=u({},j);"SK"!==P.billingAddress.country&&t["wpify/dic-dph"]&&(t["wpify/dic-dph"]="",x(t));var i="SK"===P.billingAddress.country?t["wpify/dic-dph"]||"":t["wpify/dic"]||"";e({namespace:"wpify_ic_dic",data:{validation:"country_change",country:P.billingAddress.country,dic:i}}),i&&i.length>=4&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(i))}),300)}),[P.billingAddress.country]),(0,o.useEffect)((function(){if(F){var e=document.createElement("div");e.id="wpify-ares",F.appendChild(e),n(!0)}}),[F]),(0,o.useEffect)((function(){if(M){var e,t=function(t){clearTimeout(e);var i=t.target.value,n=t.target;e=setTimeout((function(){var e=J(i);n.value=e;var t=u(u({},L.current),{},{"wpify/ic":e});x(t),"CZ"===P.billingAddress.country?window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered")&&ee():d(null)}),2e3)};return M.addEventListener("input",t),function(){clearTimeout(e),M.removeEventListener("input",t)}}}),[M,P.billingAddress.country]),(0,o.useEffect)((function(){if(H){var t,i=function(i){clearTimeout(t);var n=i.target.value,r=i.target;t=setTimeout((function(){var t="SK"===P.billingAddress.country,i=t?J(n):G(n);r.value=i;var o=u(u({},L.current),{},{"wpify/dic":i});x(o),!t&&i&&i.length>=4?X(i):(!i||i.length<4)&&e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return H.addEventListener("input",i),function(){clearTimeout(t),H.removeEventListener("input",i)}}}),[H,P.billingAddress.country]),(0,o.useEffect)((function(){if($){var t,i=function(i){clearTimeout(t);var n=i.target.value,r=i.target;t=setTimeout((function(){var t=G(n);r.value=t;var i=u(u({},L.current),{},{"wpify/dic-dph":t});x(i),t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return $.addEventListener("input",i),function(){clearTimeout(t),$.removeEventListener("input",i)}}}),[$]);var ee=function(){if("CZ"===P.billingAddress.country){d(null),_(null),v(!0);var e=J(L.current["wpify/ic"]);Q(window.wpifyWooIcDic.restUrl+"/icdic?in="+e).then((function(e){var t=e.details,i=void 0===t?{}:t,n=u(u({},L.current),{},{"wpify/company":i.billing_company,"wpify/ic":i.billing_ic,"wpify/dic":i.billing_dic});x(n),i.billing_dic&&window.wpifyWooIcDic.validateVies&&setTimeout((function(){X(G(i.billing_dic))}),100);var r={company:i.billing_company,address_1:i.billing_address_1,city:i.billing_city,postcode:i.billing_postcode};R(r),q(r);var o=new CustomEvent("wpify_woo_ic_dic_ares_autofilled",{detail:{details:i}});window.dispatchEvent(o),_("success")})).catch((function(e){d(e),_("error")})).finally((function(){v(!1)}))}},te=function(e){var t=e.isLoading,i=e.status,n=e.error,r=e.fieldValue;return r&&""!==r.trim()?t?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translateY(-50%)",color:"#0073aa"}},(0,o.createElement)("span",{style:{display:"inline-block",width:"16px",height:"16px",border:"2px solid #f3f3f3",borderTop:"2px solid #0073aa",borderRadius:"50%",animation:"spin 1s linear infinite"}}),(0,o.createElement)("style",null,"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t")):"success"===i?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#46b450"}},(0,o.createElement)("span",null,"✓")):"error"===i||n?(0,o.createElement)("div",{style:{position:"absolute",top:"50%",right:"14px",transform:"translatey(-50%)",color:"#dc3232"}},(0,o.createElement)("span",null,"!")):null:null};return i?(0,o.createElement)("div",null,U&&(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:m,status:b,error:s,fieldValue:j["wpify/ic"]}),s&&j["wpify/ic"]&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},s)),U),U&&(null==j?void 0:j["wpify/ic_dic_toggle"])&&"CZ"===P.billingAddress.country&&function(){if(!(window.wpifyWooIcDic.validateAres&&Array.isArray(window.wpifyWooIcDic.validateAres)&&window.wpifyWooIcDic.validateAres.includes("ic_entered"))){var e=document.querySelector(".wpify-ares-button-wrapper");return e||((e=document.createElement("div")).className="wpify-ares-button-wrapper",U.insertAdjacentElement("afterend",e)),(0,a.createPortal)((0,o.createElement)("div",{style:{marginTop:"8px"}},(0,o.createElement)("input",{type:"button",className:"button wp-element-button",onClick:function(){return ee()},value:window.wpifyWooIcDic.searchAresText})),e)}return null}(),(0,a.createPortal)((0,o.createElement)(o.Fragment,null,(0,o.createElement)(te,{isLoading:D,status:C,error:A,fieldValue:"SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"]}),A&&("SK"===P.billingAddress.country?j["wpify/dic-dph"]:j["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},A)),"SK"===P.billingAddress.country?z:Y)):null};document.querySelectorAll('[data-app="wpify-ic-dic"]').forEach((function(e){(0,l.s)(e).render((0,o.createElement)(w,null))}))}()}();
  • wpify-woo/trunk/readme.txt

    r3388746 r3388878  
    55Tested up to: 6.8
    66Requires PHP: 8.1
    7 Stable tag: 5.1.6
     7Stable tag: 5.1.7
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    219219
    220220== Changelog ==
     221= 5.1.7 =
     222* Fixed a bug that deleted the VAT number when invalid check was performed on block checkout
     223* Fix SK VAT numbers normalizations on block checkout
     224
    221225= 5.1.6 =
    222226* Add `wpify_woo_heureka_overeno_data` filter to edit sending data for Heureka ověřeno zákazníky
  • wpify-woo/trunk/src/Modules/IcDic/assets/icdic-blocks.js

    r3384014 r3388878  
    11import {useDispatch, useSelect} from '@wordpress/data';
    22import {createRoot} from 'react-dom/client';
    3 import {useEffect, useState} from "react";
     3import {useEffect, useState, useRef} from "react";
    44import {createPortal} from 'react-dom';
    55
     
    5555    const {setBillingAddress, setShippingAddress} = useDispatch(CART_STORE_KEY);
    5656
     57    // Use ref to always have fresh additionalFields values in event handlers
     58    const additionalFieldsRef = useRef(additionalFields);
     59    const previousToggleRef = useRef(additionalFields?.['wpify/ic_dic_toggle']);
     60
     61    useEffect(() => {
     62        additionalFieldsRef.current = additionalFields;
     63    }, [additionalFields]);
     64
    5765    const dicError = useValidationError('contact-wpify-dic');
    58     console.log(dicError);
    5966    const companyFieldWrap = document.querySelector('.wc-block-components-address-form__wpify-company');
    6067    const icFieldWrap = document.querySelector('.wc-block-components-address-form__wpify-ic');
     
    7885        }
    7986
    80         if (!additionalFields?.['wpify/ic_dic_toggle']) {
    81             companyFieldWrap.style.display = 'none';
    82             icFieldWrap.style.display = 'none';
    83             dicFieldWrap.style.display = 'none';
    84 
    85             additionalFields['wpify/company'] = '';
    86             additionalFields['wpify/ic'] = '';
    87             additionalFields['wpify/dic'] = '';
    88             additionalFields['wpify/dic-dph'] = '';
    89 
    90             setAdditionalFields(additionalFields);
    91 
     87        const currentToggle = additionalFields?.['wpify/ic_dic_toggle'];
     88        const previousToggle = previousToggleRef.current;
     89
     90        // Handle toggle change
     91        if (currentToggle !== previousToggle) {
     92            if (!currentToggle) {
     93                // Toggle turned OFF - hide and clear all fields
     94                companyFieldWrap.style.display = 'none';
     95                icFieldWrap.style.display = 'none';
     96                dicFieldWrap.style.display = 'none';
     97
     98                const currentFields = additionalFieldsRef.current;
     99                setAdditionalFields({
     100                    ...currentFields,
     101                    'wpify/company': '',
     102                    'wpify/ic': '',
     103                    'wpify/dic': '',
     104                    'wpify/dic-dph': ''
     105                });
     106            } else {
     107                // Toggle turned ON - show fields and prefill company if available
     108                companyFieldWrap.style.removeProperty('display');
     109                icFieldWrap.style.removeProperty('display');
     110                dicFieldWrap.style.removeProperty('display');
     111
     112                if (customer.billingAddress.company) {
     113                    const currentFields = additionalFieldsRef.current;
     114                    setAdditionalFields({
     115                        ...currentFields,
     116                        'wpify/company': customer.billingAddress.company
     117                    });
     118                }
     119            }
     120
     121            previousToggleRef.current = currentToggle;
    92122        } else {
    93             companyFieldWrap.style.removeProperty('display');
    94             icFieldWrap.style.removeProperty('display');
    95             dicFieldWrap.style.removeProperty('display');
    96 
    97             if (customer.billingAddress.company) {
    98                 additionalFields['wpify/company'] = customer.billingAddress.company;
     123            // Toggle didn't change, just update visibility
     124            if (!currentToggle) {
     125                companyFieldWrap.style.display = 'none';
     126                icFieldWrap.style.display = 'none';
     127                dicFieldWrap.style.display = 'none';
     128            } else {
     129                companyFieldWrap.style.removeProperty('display');
     130                icFieldWrap.style.removeProperty('display');
     131                dicFieldWrap.style.removeProperty('display');
    99132            }
    100133        }
     
    145178            data: {validation: 'dic_cleared'}
    146179        });
    147        
     180
    148181        // Then check if there are any DIC values on page load
    149182        const currentDic = customer.billingAddress.country === 'SK'
    150183            ? additionalFields['wpify/dic-dph']
    151184            : additionalFields['wpify/dic'];
    152            
     185
    153186        if (currentDic && currentDic.trim() !== '') {
    154187            // DIC exists on page load - validate it after a short delay
     
    200233            ? (updatedFields['wpify/dic-dph'] || '')
    201234            : (updatedFields['wpify/dic'] || '');
    202        
     235
    203236        // Reset VAT exempt on country change with current DIC state
    204237        extensionCartUpdate({
     
    261294        const handleIcInputChange = (e) => {
    262295            clearTimeout(typingTimeout);
     296            const inputValue = e.target.value; // Store value before setTimeout
     297            const targetElement = e.target; // Store target element
     298
    263299            typingTimeout = setTimeout(() => {
    264                 const normalizedValue = normalizeIc(e.target.value);
    265                 e.target.value = normalizedValue;
    266                 additionalFields['wpify/ic'] = normalizedValue;
    267                 setAdditionalFields(additionalFields);
    268 
    269                 console.log('IC field change:', {
    270                     country: customer.billingAddress.country,
    271                     value: normalizedValue,
    272                     willCallAres: customer.billingAddress.country === 'CZ'
    273                 });
     300                const normalizedValue = normalizeIc(inputValue);
     301
     302                // Update DOM to make normalization visible
     303                targetElement.value = normalizedValue;
     304
     305                // Read fresh values from ref and update only IC field
     306                const currentFields = additionalFieldsRef.current;
     307                const newFields = {...currentFields, 'wpify/ic': normalizedValue};
     308                setAdditionalFields(newFields);
    274309
    275310                // Only call ARES autofill for Czech companies and if ic_entered validation is enabled
     
    297332    }, [icField, customer.billingAddress.country]);
    298333
    299     useEffect(() => {
    300         if (!dicField && !dicDphField) {
    301             return;
    302         }
    303 
    304         const activeField = customer.billingAddress.country === 'SK' ? dicDphField : dicField;
    305         const activeFieldKey = customer.billingAddress.country === 'SK' ? 'wpify/dic-dph' : 'wpify/dic';
    306         let typingTimeout;
    307 
    308         const handleDicInputChange = (e) => {
    309             clearTimeout(typingTimeout);
    310 
    311             typingTimeout = setTimeout(() => {
    312                 const normalizedValue = normalizeDic(e.target.value);
    313 
    314                 // Update the field value in the DOM and additionalFields
    315                 e.target.value = normalizedValue;
    316                 additionalFields[activeFieldKey] = normalizedValue;
    317                 setAdditionalFields(additionalFields);
    318 
    319                 // Only validate if there's actually a meaningful value (at least country + some digits)
     334    // Separate useEffect for DIC field - only updates 'wpify/dic'
     335    useEffect(() => {
     336        if (!dicField) {
     337            return;
     338        }
     339
     340        let timeout;
     341
     342        const handleInput = (e) => {
     343            clearTimeout(timeout);
     344            const inputValue = e.target.value; // Store value before setTimeout
     345            const targetElement = e.target; // Store target element
     346
     347            timeout = setTimeout(() => {
     348                // For Slovakia: DIC is just a number, for others: has country prefix
     349                const isSlovakia = customer.billingAddress.country === 'SK';
     350                const normalizedValue = isSlovakia ? normalizeIc(inputValue) : normalizeDic(inputValue);
     351
     352                // Update DOM to make normalization visible
     353                targetElement.value = normalizedValue;
     354
     355                // Read fresh values from ref and update only DIC field
     356                const currentFields = additionalFieldsRef.current;
     357                const newFields = {...currentFields, 'wpify/dic': normalizedValue};
     358                setAdditionalFields(newFields);
     359
     360                // Only validate for non-Slovakia countries
     361                if (!isSlovakia && normalizedValue && normalizedValue.length >= 4) {
     362                    validateDic(normalizedValue);
     363                } else if (!normalizedValue || normalizedValue.length < 4) {
     364                    extensionCartUpdate({namespace: 'wpify_ic_dic', data: {validation: 'dic_cleared'}});
     365                }
     366            }, 1500);
     367        };
     368
     369        dicField.addEventListener('input', handleInput);
     370        return () => {
     371            clearTimeout(timeout);
     372            dicField.removeEventListener('input', handleInput);
     373        };
     374    }, [dicField, customer.billingAddress.country]);
     375
     376    // Separate useEffect for DIC DPH field - only updates 'wpify/dic-dph'
     377    useEffect(() => {
     378        if (!dicDphField) {
     379            return;
     380        }
     381
     382        let timeout;
     383
     384        const handleInput = (e) => {
     385            clearTimeout(timeout);
     386            const inputValue = e.target.value; // Store value before setTimeout
     387            const targetElement = e.target; // Store target element
     388
     389            timeout = setTimeout(() => {
     390                const normalizedValue = normalizeDic(inputValue);
     391
     392                // Update DOM to make normalization visible
     393                targetElement.value = normalizedValue;
     394
     395                // Read fresh values from ref and update only DIC DPH field
     396                const currentFields = additionalFieldsRef.current;
     397                const newFields = {...currentFields, 'wpify/dic-dph': normalizedValue};
     398                setAdditionalFields(newFields);
     399
    320400                if (normalizedValue && normalizedValue.length >= 4) {
    321401                    validateDic(normalizedValue);
    322402                } else {
    323                     // DIC field is empty or too short - reset VAT exempt
    324                     extensionCartUpdate({
    325                         namespace: 'wpify_ic_dic',
    326                         data: {validation: 'dic_cleared'}
    327                     });
     403                    extensionCartUpdate({namespace: 'wpify_ic_dic', data: {validation: 'dic_cleared'}});
    328404                }
    329             }, 1500); // Reduced from 2000ms to 1500ms
     405            }, 1500);
    330406        };
    331407
    332         activeField?.addEventListener('input', handleDicInputChange);
    333 
     408        dicDphField.addEventListener('input', handleInput);
    334409        return () => {
    335             clearTimeout(typingTimeout);
    336             activeField?.removeEventListener('input', handleDicInputChange);
     410            clearTimeout(timeout);
     411            dicDphField.removeEventListener('input', handleInput);
    337412        };
    338     }, [dicField, dicDphField, customer.billingAddress.country]);
     413    }, [dicDphField]);
    339414
    340415
     
    413488                    setViesError(error);
    414489                    setViesStatus('error');
    415                    
     490
    416491                    // Reset VAT exempt when VIES validation fails
    417492                    extensionCartUpdate({
     
    439514        setAresStatus(null);
    440515        setIsAresLoading(true);
    441         const ic = normalizeIc(additionalFields['wpify/ic']);
     516        const ic = normalizeIc(additionalFieldsRef.current['wpify/ic']);
    442517        fetchJson(window.wpifyWooIcDic.restUrl + '/icdic?in=' + ic)
    443518            .then(({details = {}}) => {
    444                 additionalFields['wpify/company'] = details.billing_company;
    445                 additionalFields['wpify/ic'] = details.billing_ic;
    446                 additionalFields['wpify/dic'] = details.billing_dic;
    447 
    448                 setAdditionalFields(additionalFields);
     519                // Read fresh values from ref and only update ARES fields
     520                const currentFields = additionalFieldsRef.current;
     521                const newFields = {
     522                    ...currentFields,
     523                    'wpify/company': details.billing_company,
     524                    'wpify/ic': details.billing_ic,
     525                    'wpify/dic': details.billing_dic
     526                };
     527
     528                setAdditionalFields(newFields);
    449529
    450530                // Only validate DIC if we have one and VIES validation is enabled
     
    577657                        icFieldWrap.insertAdjacentElement('afterend', aresButtonWrapper);
    578658                    }
    579                    
     659
    580660                    return createPortal(
    581661                        <div style={{marginTop: '8px'}}>
  • wpify-woo/trunk/src/Plugin.php

    r3388746 r3388878  
    2323
    2424    /** Plugin version */
    25     public const VERSION = '5.1.6';
     25    public const VERSION = '5.1.7';
    2626
    2727    /** Plugin slug name */
  • wpify-woo/trunk/vendor/composer/installed.php

    r3388746 r3388878  
    22    'root' => array(
    33        'name' => 'wpify/woo',
    4         'pretty_version' => '5.1.6',
    5         'version' => '5.1.6.0',
    6         'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377',
     4        'pretty_version' => '5.1.7',
     5        'version' => '5.1.7.0',
     6        'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d',
    77        'type' => 'project',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'wpify/woo' => array(
    14             'pretty_version' => '5.1.6',
    15             'version' => '5.1.6.0',
    16             'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377',
     14            'pretty_version' => '5.1.7',
     15            'version' => '5.1.7.0',
     16            'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d',
    1717            'type' => 'project',
    1818            'install_path' => __DIR__ . '/../../',
  • wpify-woo/trunk/vendor/wpify-woo/composer/installed.php

    r3388746 r3388878  
    33namespace WpifyWooDeps;
    44
    5 return array('root' => array('name' => '__root__', 'pretty_version' => '5.1.6', 'version' => '5.1.6.0', 'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.1.6', 'version' => '5.1.6.0', 'reference' => 'd6ca84af2cf0e5a03ecc29f21f755a26a13bd377', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'bacon/bacon-qr-code' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => '8674e51bb65af933a5ffaf1c308a660387c35c22', 'type' => 'library', 'install_path' => __DIR__ . '/../bacon/bacon-qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'dasprid/enum' => array('pretty_version' => '1.0.7', 'version' => '1.0.7.0', 'reference' => 'b5874fa9ed0043116c72162ec7f4fb50e02e7cce', 'type' => 'library', 'install_path' => __DIR__ . '/../dasprid/enum', 'aliases' => array(), 'dev_requirement' => \false), 'dragonbe/vies' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => 'd9193cbaba7e2faefbdc228fb1bf5670f20acf30', 'type' => 'tool', 'install_path' => __DIR__ . '/../dragonbe/vies', 'aliases' => array(), 'dev_requirement' => \false), 'endroid/qr-code' => array('pretty_version' => '4.5.0', 'version' => '4.5.0.0', 'reference' => '36681470bd10352b53bcb9731bdf2270e0d79b22', 'type' => 'library', 'install_path' => __DIR__ . '/../endroid/qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.10.0', 'version' => '7.10.0.0', 'reference' => 'b51ac707cfa420b7bfd4e4d5e510ba8008e822b4', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.3.0', 'version' => '2.3.0.0', 'reference' => '481557b130ef3790cf82b713667b43030dc9c957', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.8.0', 'version' => '2.8.0.0', 'reference' => '21dc724a0583619cd1652f673303492272778051', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'h4kuna/ares' => array('pretty_version' => 'v3.0.13', 'version' => '3.0.13.0', 'reference' => 'd695e8b57b0410738d8eb9d7157bb8c7ec340d72', 'type' => 'library', 'install_path' => __DIR__ . '/../h4kuna/ares', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/inflection' => array('pretty_version' => 'v3.0.4', 'version' => '3.0.4.0', 'reference' => '684ca578eee3ede920d5d3ca8d568fb70e7d9076', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/inflection', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/overeno-zakazniky' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'aa52add431bac32c67b1c00b1969a98709cd611b', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/overeno-zakazniky', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.3.7', 'version' => '1.3.7.0', 'reference' => '4f48ade902b94323ca3be7646db16209ec76be3d', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.8', 'version' => '4.0.8.0', 'reference' => 'c930ca4e3cf4f17dcfb03037703679d2396d2ede', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.7', 'version' => '2.3.7.0', 'reference' => '3c1ddfdef181431fbc4be83378f6d036d59e81e1', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/log' => array('pretty_version' => '3.0.2', 'version' => '3.0.2.0', 'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/czqrpayment' => array('pretty_version' => 'v5.3.1', 'version' => '5.3.1.0', 'reference' => 'f8e0ecbbdb6d30bafb50a833cc7cfe4f575b82a4', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/czqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/iban' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '7fe69bf9274792c37d5a8d9d38ef5cb000f8377a', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/iban', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-interface' => array('pretty_version' => 'v1.1.0', 'version' => '1.1.0.0', 'reference' => '752f7a6bf1190c7d65ead90b5989f61927436c89', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-interface', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-qr-code-provider' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd233c4bedeecf2ff7cd7e7d4ec7f4ad4a5eb4b64', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-qr-code-provider', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/skqrpayment' => array('pretty_version' => 'v4.2.3', 'version' => '4.2.3.0', 'reference' => '857ab3707dd7effc2050c7ef152c61aef7c33d92', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/skqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'spatie/array-to-xml' => array('pretty_version' => '2.17.1', 'version' => '2.17.1.0', 'reference' => '5cbec9c6ab17e320c58a259f0cebe88bde4a7c46', 'type' => 'library', 'install_path' => __DIR__ . '/../spatie/array-to-xml', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v3.6.0', 'version' => '3.6.0.0', 'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'woocommerce/action-scheduler' => array('pretty_version' => '3.9.3', 'version' => '3.9.3.0', 'reference' => 'c58cdbab17651303d406cd3b22cf9d75c71c986c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../woocommerce/action-scheduler', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/asset' => array('pretty_version' => '1.3.0', 'version' => '1.3.0.0', 'reference' => 'faf957af650b441b49f03cb7ffa42abfe157b43b', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '4.0.72', 'version' => '4.0.72.0', 'reference' => '38b9b070dfac830a082d4bc7819ae787bdc28cfd', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/license' => array('pretty_version' => '2.0.7', 'version' => '2.0.7.0', 'reference' => '7f8e7fe16a1bb77cdfcd29c694c5a489fc8db1b1', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/license', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/log' => array('pretty_version' => '1.2.1', 'version' => '1.2.1.0', 'reference' => 'acd58dc5a8fb38e58c167adc2f9b2c588a7a2d87', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.27', 'version' => '4.1.27.0', 'reference' => 'e6c6a6421ade5498be4f5fd1580770bd8dbd2fd6', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/woo-core' => array('pretty_version' => '5.1.20', 'version' => '5.1.20.0', 'reference' => '2d2032c6da6b538079d8e152618b1e5493319409', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/woo-core', 'aliases' => array(), 'dev_requirement' => \false)));
     5return array('root' => array('name' => '__root__', 'pretty_version' => '5.1.7', 'version' => '5.1.7.0', 'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.1.7', 'version' => '5.1.7.0', 'reference' => 'fcd38277d3922220be956665d78a4102a0120e7d', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'bacon/bacon-qr-code' => array('pretty_version' => '2.0.8', 'version' => '2.0.8.0', 'reference' => '8674e51bb65af933a5ffaf1c308a660387c35c22', 'type' => 'library', 'install_path' => __DIR__ . '/../bacon/bacon-qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'dasprid/enum' => array('pretty_version' => '1.0.7', 'version' => '1.0.7.0', 'reference' => 'b5874fa9ed0043116c72162ec7f4fb50e02e7cce', 'type' => 'library', 'install_path' => __DIR__ . '/../dasprid/enum', 'aliases' => array(), 'dev_requirement' => \false), 'dragonbe/vies' => array('pretty_version' => '2.3.2', 'version' => '2.3.2.0', 'reference' => 'd9193cbaba7e2faefbdc228fb1bf5670f20acf30', 'type' => 'tool', 'install_path' => __DIR__ . '/../dragonbe/vies', 'aliases' => array(), 'dev_requirement' => \false), 'endroid/qr-code' => array('pretty_version' => '4.5.0', 'version' => '4.5.0.0', 'reference' => '36681470bd10352b53bcb9731bdf2270e0d79b22', 'type' => 'library', 'install_path' => __DIR__ . '/../endroid/qr-code', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/guzzle' => array('pretty_version' => '7.10.0', 'version' => '7.10.0.0', 'reference' => 'b51ac707cfa420b7bfd4e4d5e510ba8008e822b4', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.3.0', 'version' => '2.3.0.0', 'reference' => '481557b130ef3790cf82b713667b43030dc9c957', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.8.0', 'version' => '2.8.0.0', 'reference' => '21dc724a0583619cd1652f673303492272778051', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/psr7', 'aliases' => array(), 'dev_requirement' => \false), 'h4kuna/ares' => array('pretty_version' => 'v3.0.13', 'version' => '3.0.13.0', 'reference' => 'd695e8b57b0410738d8eb9d7157bb8c7ec340d72', 'type' => 'library', 'install_path' => __DIR__ . '/../h4kuna/ares', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/inflection' => array('pretty_version' => 'v3.0.4', 'version' => '3.0.4.0', 'reference' => '684ca578eee3ede920d5d3ca8d568fb70e7d9076', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/inflection', 'aliases' => array(), 'dev_requirement' => \false), 'heureka/overeno-zakazniky' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => 'aa52add431bac32c67b1c00b1969a98709cd611b', 'type' => 'library', 'install_path' => __DIR__ . '/../heureka/overeno-zakazniky', 'aliases' => array(), 'dev_requirement' => \false), 'laravel/serializable-closure' => array('pretty_version' => 'v1.3.7', 'version' => '1.3.7.0', 'reference' => '4f48ade902b94323ca3be7646db16209ec76be3d', 'type' => 'library', 'install_path' => __DIR__ . '/../laravel/serializable-closure', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.8', 'version' => '4.0.8.0', 'reference' => 'c930ca4e3cf4f17dcfb03037703679d2396d2ede', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.7', 'version' => '2.3.7.0', 'reference' => '3c1ddfdef181431fbc4be83378f6d036d59e81e1', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/invoker', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/php-di' => array('pretty_version' => '6.4.0', 'version' => '6.4.0.0', 'reference' => 'ae0f1b3b03d8b29dff81747063cbfd6276246cc4', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/php-di', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/phpdoc-reader' => array('pretty_version' => '2.2.1', 'version' => '2.2.1.0', 'reference' => '66daff34cbd2627740ffec9469ffbac9f8c8185c', 'type' => 'library', 'install_path' => __DIR__ . '/../php-di/phpdoc-reader', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container' => array('pretty_version' => '1.1.2', 'version' => '1.1.2.0', 'reference' => '513e0666f7216c7459170d56df27dfcefe1689ea', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/container', 'aliases' => array(), 'dev_requirement' => \false), 'psr/container-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '^1.0')), 'psr/http-client' => array('pretty_version' => '1.0.3', 'version' => '1.0.3.0', 'reference' => 'bb5906edc1c324c9a05aa0873d40117941e5fa90', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-client', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-client-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-factory' => array('pretty_version' => '1.1.0', 'version' => '1.1.0.0', 'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-factory', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-factory-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/http-message' => array('pretty_version' => '2.0', 'version' => '2.0.0.0', 'reference' => '402d35bcb92c70c026d1a6a9883f06b2ead23d71', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/http-message-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0')), 'psr/log' => array('pretty_version' => '3.0.2', 'version' => '3.0.2.0', 'reference' => 'f16e1d5863e37f8d8c2a01719f5b34baa2b714d3', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'ralouphie/getallheaders' => array('pretty_version' => '3.0.3', 'version' => '3.0.3.0', 'reference' => '120b605dfeb996808c31b6477290a714d356e822', 'type' => 'library', 'install_path' => __DIR__ . '/../ralouphie/getallheaders', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/czqrpayment' => array('pretty_version' => 'v5.3.1', 'version' => '5.3.1.0', 'reference' => 'f8e0ecbbdb6d30bafb50a833cc7cfe4f575b82a4', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/czqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/iban' => array('pretty_version' => 'v1.3.0', 'version' => '1.3.0.0', 'reference' => '7fe69bf9274792c37d5a8d9d38ef5cb000f8377a', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/iban', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-interface' => array('pretty_version' => 'v1.1.0', 'version' => '1.1.0.0', 'reference' => '752f7a6bf1190c7d65ead90b5989f61927436c89', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-interface', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/qr-payment-qr-code-provider' => array('pretty_version' => 'v1.2.0', 'version' => '1.2.0.0', 'reference' => 'd233c4bedeecf2ff7cd7e7d4ec7f4ad4a5eb4b64', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/qr-payment-qr-code-provider', 'aliases' => array(), 'dev_requirement' => \false), 'rikudou/skqrpayment' => array('pretty_version' => 'v4.2.3', 'version' => '4.2.3.0', 'reference' => '857ab3707dd7effc2050c7ef152c61aef7c33d92', 'type' => 'library', 'install_path' => __DIR__ . '/../rikudou/skqrpayment', 'aliases' => array(), 'dev_requirement' => \false), 'spatie/array-to-xml' => array('pretty_version' => '2.17.1', 'version' => '2.17.1.0', 'reference' => '5cbec9c6ab17e320c58a259f0cebe88bde4a7c46', 'type' => 'library', 'install_path' => __DIR__ . '/../spatie/array-to-xml', 'aliases' => array(), 'dev_requirement' => \false), 'symfony/deprecation-contracts' => array('pretty_version' => 'v3.6.0', 'version' => '3.6.0.0', 'reference' => '63afe740e99a13ba87ec199bb07bbdee937a5b62', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', 'aliases' => array(), 'dev_requirement' => \false), 'woocommerce/action-scheduler' => array('pretty_version' => '3.9.3', 'version' => '3.9.3.0', 'reference' => 'c58cdbab17651303d406cd3b22cf9d75c71c986c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../woocommerce/action-scheduler', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/asset' => array('pretty_version' => '1.3.0', 'version' => '1.3.0.0', 'reference' => 'faf957af650b441b49f03cb7ffa42abfe157b43b', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/asset', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/custom-fields' => array('pretty_version' => '4.0.72', 'version' => '4.0.72.0', 'reference' => '38b9b070dfac830a082d4bc7819ae787bdc28cfd', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/custom-fields', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/license' => array('pretty_version' => '2.0.7', 'version' => '2.0.7.0', 'reference' => '7f8e7fe16a1bb77cdfcd29c694c5a489fc8db1b1', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/license', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/log' => array('pretty_version' => '1.2.1', 'version' => '1.2.1.0', 'reference' => 'acd58dc5a8fb38e58c167adc2f9b2c588a7a2d87', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.27', 'version' => '4.1.27.0', 'reference' => 'e6c6a6421ade5498be4f5fd1580770bd8dbd2fd6', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/model', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/plugin-utils' => array('pretty_version' => '1.0.1', 'version' => '1.0.1.0', 'reference' => '0ace7f3a23bdfe3e2b2b05c72af79fa034c7e77a', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/plugin-utils', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/woo-core' => array('pretty_version' => '5.1.20', 'version' => '5.1.20.0', 'reference' => '2d2032c6da6b538079d8e152618b1e5493319409', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/woo-core', 'aliases' => array(), 'dev_requirement' => \false)));
  • wpify-woo/trunk/wpify-woo.php

    r3388746 r3388878  
    44 * Plugin Name:          WPify Woo
    55 * Description:          Custom functionality for WooCommerce
    6  * Version:              5.1.6
     6 * Version:              5.1.7
    77 * Requires PHP:         8.1.0
    88 * Requires at least:    6.2
Note: See TracChangeset for help on using the changeset viewer.