Changeset 3337829
- Timestamp:
- 08/01/2025 12:54:52 PM (8 months ago)
- Location:
- wpify-woo
- Files:
-
- 18 edited
- 1 copied
-
tags/5.0.17 (copied) (copied from wpify-woo/trunk)
-
tags/5.0.17/build/icdic-blocks.asset.php (modified) (1 diff)
-
tags/5.0.17/build/icdic-blocks.js (modified) (1 diff)
-
tags/5.0.17/readme.txt (modified) (2 diffs)
-
tags/5.0.17/src/Modules/IcDic/IcDicModule.php (modified) (11 diffs)
-
tags/5.0.17/src/Modules/IcDic/assets/icdic-blocks.js (modified) (2 diffs)
-
tags/5.0.17/src/Plugin.php (modified) (1 diff)
-
tags/5.0.17/vendor/composer/installed.php (modified) (2 diffs)
-
tags/5.0.17/vendor/wpify-woo/composer/installed.php (modified) (1 diff)
-
tags/5.0.17/wpify-woo.php (modified) (1 diff)
-
trunk/build/icdic-blocks.asset.php (modified) (1 diff)
-
trunk/build/icdic-blocks.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Modules/IcDic/IcDicModule.php (modified) (11 diffs)
-
trunk/src/Modules/IcDic/assets/icdic-blocks.js (modified) (2 diffs)
-
trunk/src/Plugin.php (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vendor/wpify-woo/composer/installed.php (modified) (1 diff)
-
trunk/wpify-woo.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wpify-woo/tags/5.0.17/build/icdic-blocks.asset.php
r3319787 r3337829 1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => ' ef4718833722d4d04a35');1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => '8b0580a6efd9f2ce4078'); -
wpify-woo/tags/5.0.17/build/icdic-blocks.js
r3319787 r3337829 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, f=d.CHECKOUT_STORE_KEY,y=(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),b=m[0],g=m[1],v=r((0,o.useState)(),2),A=v[0],_=v[1],h=r((0,o.useState)(),2),E=h[0],S=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()}),[])),k=(0,c.useSelect)((function(e){return e(f).getAdditionalFields()}),[]),W=(0,c.useDispatch)(f).setAdditionalFields,P=(0,c.useDispatch)(y),K=(P.showValidationError,P.setValidationErrors),q=(P.showAllValidationErrors,(0,c.useDispatch)(u)),V=q.setBillingAddress,R=q.setShippingAddress,L=(0,c.useSelect)((function(e){return e(y).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){S(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&&(S(r),j("error")):(S(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){S(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!=k&&k["wpify/ic_dic_toggle"]?(Z.style.display="block",U.style.display="block",Y.style.display="block",x.billingAddress.company&&(k["wpify/company"]=x.billingAddress.company)):(Z.style.display="none",U.style.display="none",Y.style.display="none",k["wpify/company"]="",k["wpify/ic"]="",k["wpify/dic"]="",k["wpify/dic-dph"]="",W(k)),null!=k&&k["wpify/ic_dic_toggle"]&&"SK"===x.billingAddress.country&&(z.style.display="block"),N&&null!=k&&k["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")}),[k,B,M,H,$,Z,U,Y,z,x]),(0,o.useEffect)((function(){k["wpify/ic"]&&""!==k["wpify/ic"].trim()||(_(null),w(null));var e="SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["wpify/dic"];e&&""!==e.trim()||(j(null),S(null))}),[k,x.billingAddress.country]),(0,o.useEffect)((function(){e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}});var t="SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["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")),S(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}({},k);"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,k["wpify/ic"]=e,W(k),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=function(i){clearTimeout(t),t=setTimeout((function(){var t=G(i.target.value);t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return null==i||i.addEventListener("input",n),function(){clearTimeout(t),null==i||i.removeEventListener("input",n)}}}),[H,$,x.billingAddress.country]);var ee=function(){if("CZ"===x.billingAddress.country){w(null),_(null),g(!0);var e=J(k["wpify/ic"]);Q(window.wpifyWooIcDic.restUrl+"/icdic?in="+e).then((function(e){var t=e.details,i=void 0===t?{}:t;k["wpify/company"]=i.billing_company,k["wpify/ic"]=i.billing_ic,k["wpify/dic"]=i.billing_dic,W(k),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:b,status:A,error:p,fieldValue:k["wpify/ic"]}),p&&k["wpify/ic"]&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},p)),U),U&&(null==k?void 0:k["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:E,fieldValue:"SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["wpify/dic"]}),E&&("SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},E)),"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}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),E=h[0],S=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){S(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&&(S(r),j("error")):(S(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){S(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),S(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")),S(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=function(i){clearTimeout(t),t=setTimeout((function(){var t=G(i.target.value);t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return null==i||i.addEventListener("input",n),function(){clearTimeout(t),null==i||i.removeEventListener("input",n)}}}),[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:E,fieldValue:"SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"]}),E&&("SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},E)),"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))}))}()}(); -
wpify-woo/tags/5.0.17/readme.txt
r3321181 r3337829 5 5 Tested up to: 6.8 6 6 Requires PHP: 8.1 7 Stable tag: 5.0.1 67 Stable tag: 5.0.17 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 219 219 220 220 == Changelog == 221 222 = 5.0.17 = 223 * Add VIES error logging 224 * Fix display styling IČ DIČ fields on block checkout 225 221 226 = 5.0.16 = 222 227 * Fix sanitization company field in IČ DIČ module on block checkout -
wpify-woo/tags/5.0.17/src/Modules/IcDic/IcDicModule.php
r3320683 r3337829 585 585 $address_formats[ $key ] = $format . "\n{billing_ic}\n{billing_dic}\n{billing_dic_dph}"; 586 586 } 587 587 588 return $address_formats; 588 589 } … … 795 796 } 796 797 } catch ( Exception $e ) { 798 $this->log->error( 'VIES ERROR', array( 799 'code' => $e->getCode(), 800 'message' => $e->getMessage(), 801 ) ); 802 797 803 return false; 798 804 } … … 831 837 832 838 $billing_country = WC()->customer->get_billing_country(); 833 $dic = $billing_country === 'SK'839 $dic = $billing_country === 'SK' 834 840 ? WC()->customer->get_meta( 'billing_dic_dph' ) 835 841 : WC()->customer->get_meta( 'billing_dic' ); … … 840 846 // Check if we already calculated this recently (cache for current session) 841 847 $cached_result = WC()->session->get( $cache_key ); 842 $cache_time = WC()->session->get( $cache_key . '_time' );848 $cache_time = WC()->session->get( $cache_key . '_time' ); 843 849 844 850 // Use cache if it's less than 5 minutes old 845 851 if ( $cached_result !== null && $cache_time && ( time() - $cache_time ) < 300 ) { 846 852 WC()->customer->set_is_vat_exempt( $cached_result ); 853 847 854 return; 848 855 } … … 857 864 } else { 858 865 $shipping_country = WC()->customer->get_shipping_country() ?: $billing_country; 859 $is_vat_extempt = $this->is_vat_extempt( $dic, $shipping_country );866 $is_vat_extempt = $this->is_vat_extempt( $dic, $shipping_country ); 860 867 } 861 868 } … … 872 879 // Only log if DIC was provided 873 880 $billing_country = $order->get_billing_country(); 874 $dic = $billing_country === 'SK'875 ? $order->get_meta( '_billing_dic_dph')876 : $order->get_meta( '_billing_dic');881 $dic = $billing_country === 'SK' 882 ? $order->get_meta( '_billing_dic_dph' ) 883 : $order->get_meta( '_billing_dic' ); 877 884 878 885 if ( empty( $dic ) ) { … … 881 888 882 889 // Detect VAT exempt from order - if tax_total is 0 but order has taxable items, likely VAT exempt 883 $customer_vat_exempt = ($order->get_total_tax() == 0 && $order->get_total() > 0);890 $customer_vat_exempt = ( $order->get_total_tax() == 0 && $order->get_total() > 0 ); 884 891 $vat_exempt_countries = $this->get_setting( 'zero_tax_for_vat_countries' ); 885 $shop_country = wc_get_base_location()['country'];886 $shipping_country = $order->get_shipping_country();892 $shop_country = wc_get_base_location()['country']; 893 $shipping_country = $order->get_shipping_country(); 887 894 888 895 // Determine if VAT should be exempt based on current logic … … 892 899 } 893 900 894 $this->log->info( 'Order VAT Exempt Decision', [895 'order_id' => $order->get_id(),896 'order_number' => $order->get_order_number(),897 'billing_country' => $billing_country,898 'shipping_country' => $shipping_country,899 'shop_country' => $shop_country,900 'submitted_dic' => $dic,901 'customer_vat_exempt' => $customer_vat_exempt,901 $this->log->info( 'Order VAT Exempt Decision', [ 902 'order_id' => $order->get_id(), 903 'order_number' => $order->get_order_number(), 904 'billing_country' => $billing_country, 905 'shipping_country' => $shipping_country, 906 'shop_country' => $shop_country, 907 'submitted_dic' => $dic, 908 'customer_vat_exempt' => $customer_vat_exempt, 902 909 'should_be_vat_exempt' => $should_be_vat_exempt, 903 910 'vat_exempt_countries' => $vat_exempt_countries, 904 'order_total' => $order->get_total(),905 'tax_total' => $order->get_total_tax(),906 'context' => 'Order created - Classic checkout'907 ] );911 'order_total' => $order->get_total(), 912 'tax_total' => $order->get_total_tax(), 913 'context' => 'Order created - Classic checkout' 914 ] ); 908 915 } 909 916 … … 926 933 } 927 934 928 $current_vat_no = substr( $dic, 2 );929 $vies = new Vies();930 $is_valid = false;935 $current_vat_no = substr( $dic, 2 ); 936 $vies = new Vies(); 937 $is_valid = false; 931 938 932 939 try { … … 971 978 $country = $data['billing_country'] ?? ''; 972 979 $dic_dph = $country === 'SK' 973 ? ( $data['billing_dic_dph'] ?? '')974 : ( $data['billing_dic'] ?? '');980 ? ( $data['billing_dic_dph'] ?? '' ) 981 : ( $data['billing_dic'] ?? '' ); 975 982 976 983 if ( ! empty( $vies_fails ) && $vies_fails === true && ! empty( $dic_dph ) && ! $this->is_valid_dic( $dic_dph ) ) { 977 984 WC()->customer->set_is_vat_exempt( false ); 985 978 986 return; 979 987 } … … 1079 1087 1080 1088 1081 1082 1089 } -
wpify-woo/tags/5.0.17/src/Modules/IcDic/assets/icdic-blocks.js
r3319787 r3337829 91 91 92 92 } else { 93 companyFieldWrap.style. display = 'block';94 icFieldWrap.style. display = 'block';95 dicFieldWrap.style. display = 'block';93 companyFieldWrap.style.removeProperty('display'); 94 icFieldWrap.style.removeProperty('display'); 95 dicFieldWrap.style.removeProperty('display'); 96 96 97 97 if (customer.billingAddress.company) { … … 101 101 102 102 if (additionalFields?.['wpify/ic_dic_toggle'] && customer.billingAddress.country === 'SK') { 103 dicDphFieldWrap.style. display = 'block';103 dicDphFieldWrap.style.removeProperty('display'); 104 104 } 105 105 -
wpify-woo/tags/5.0.17/src/Plugin.php
r3321181 r3337829 23 23 24 24 /** Plugin version */ 25 public const VERSION = '5.0.1 6';25 public const VERSION = '5.0.17'; 26 26 27 27 /** Plugin slug name */ -
wpify-woo/tags/5.0.17/vendor/composer/installed.php
r3321181 r3337829 2 2 'root' => array( 3 3 'name' => 'wpify/woo', 4 'pretty_version' => '5.0.1 6',5 'version' => '5.0.1 6.0',6 'reference' => ' 59d6f470dcfc8d2776816302e46af66eccb62098',4 'pretty_version' => '5.0.17', 5 'version' => '5.0.17.0', 6 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wpify/woo' => array( 14 'pretty_version' => '5.0.1 6',15 'version' => '5.0.1 6.0',16 'reference' => ' 59d6f470dcfc8d2776816302e46af66eccb62098',14 'pretty_version' => '5.0.17', 15 'version' => '5.0.17.0', 16 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../', -
wpify-woo/tags/5.0.17/vendor/wpify-woo/composer/installed.php
r3321181 r3337829 3 3 namespace WpifyWooDeps; 4 4 5 return array('root' => array('name' => '__root__', 'pretty_version' => '5.0.1 6', 'version' => '5.0.16.0', 'reference' => '59d6f470dcfc8d2776816302e46af66eccb62098', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.0.16', 'version' => '5.0.16.0', 'reference' => '59d6f470dcfc8d2776816302e46af66eccb62098', '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.6', 'version' => '1.0.6.0', 'reference' => '8dfd07c6d2cf31c8da90c53b83c026c7696dda90', '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.9.3', 'version' => '7.9.3.0', 'reference' => '7b2f29fe81dc4da0ca0ea7d42107a0845946ea77', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.2.0', 'version' => '2.2.0.0', 'reference' => '7c69f28996b0a6920945dd20b3857e499d9ca96c', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.7.1', 'version' => '2.7.1.0', 'reference' => 'c2270caaabe631b3b44c85f99e5a04bbb8060d16', '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), 'monolog/monolog' => array('pretty_version' => '2.10.0', 'version' => '2.10.0.0', 'reference' => '5cf826f2991858b54d5c3809bee745560a1042a7', 'type' => 'library', 'install_path' => __DIR__ . '/../monolog/monolog', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.7', 'version' => '4.0.7.0', 'reference' => 'e67c4061eb40b9c113b218214e42cb5a0dda28f2', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.6', 'version' => '2.3.6.0', 'reference' => '59f15608528d8a8838d69b422a919fd6b16aa576', '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' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0.0 || 2.0.0 || 3.0.0')), '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.2', 'version' => '4.2.2.0', 'reference' => '777fa98caaff3f10fb43f3cf67a8464c547e0550', '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.2', 'version' => '3.9.2.0', 'reference' => 'efbb7953f72a433086335b249292f280dd43ddfe', '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.65', 'version' => '4.0.65.0', 'reference' => '2d3de7bbce4c14a524a7babe034a797461a7737c', '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.1.1', 'version' => '1.1.1.0', 'reference' => '5b856a623a574d3ba4f2138d5f4d94c0625329ff', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.24', 'version' => '4.1.24.0', 'reference' => 'ebcac0038014dd0a8d7af5b31e3ee1efa542e9ec', '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)));5 return array('root' => array('name' => '__root__', 'pretty_version' => '5.0.17', 'version' => '5.0.17.0', 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.0.17', 'version' => '5.0.17.0', 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', '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.6', 'version' => '1.0.6.0', 'reference' => '8dfd07c6d2cf31c8da90c53b83c026c7696dda90', '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.9.3', 'version' => '7.9.3.0', 'reference' => '7b2f29fe81dc4da0ca0ea7d42107a0845946ea77', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.2.0', 'version' => '2.2.0.0', 'reference' => '7c69f28996b0a6920945dd20b3857e499d9ca96c', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.7.1', 'version' => '2.7.1.0', 'reference' => 'c2270caaabe631b3b44c85f99e5a04bbb8060d16', '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), 'monolog/monolog' => array('pretty_version' => '2.10.0', 'version' => '2.10.0.0', 'reference' => '5cf826f2991858b54d5c3809bee745560a1042a7', 'type' => 'library', 'install_path' => __DIR__ . '/../monolog/monolog', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.7', 'version' => '4.0.7.0', 'reference' => 'e67c4061eb40b9c113b218214e42cb5a0dda28f2', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.6', 'version' => '2.3.6.0', 'reference' => '59f15608528d8a8838d69b422a919fd6b16aa576', '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' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0.0 || 2.0.0 || 3.0.0')), '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.2', 'version' => '4.2.2.0', 'reference' => '777fa98caaff3f10fb43f3cf67a8464c547e0550', '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.2', 'version' => '3.9.2.0', 'reference' => 'efbb7953f72a433086335b249292f280dd43ddfe', '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.65', 'version' => '4.0.65.0', 'reference' => '2d3de7bbce4c14a524a7babe034a797461a7737c', '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.1.1', 'version' => '1.1.1.0', 'reference' => '5b856a623a574d3ba4f2138d5f4d94c0625329ff', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.24', 'version' => '4.1.24.0', 'reference' => 'ebcac0038014dd0a8d7af5b31e3ee1efa542e9ec', '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.0.17/wpify-woo.php
r3321181 r3337829 4 4 * Plugin Name: WPify Woo 5 5 * Description: Custom functionality for WooCommerce 6 * Version: 5.0.1 66 * Version: 5.0.17 7 7 * Requires PHP: 8.1.0 8 8 * Requires at least: 6.2 -
wpify-woo/trunk/build/icdic-blocks.asset.php
r3319787 r3337829 1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => ' ef4718833722d4d04a35');1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-data'), 'version' => '8b0580a6efd9f2ce4078'); -
wpify-woo/trunk/build/icdic-blocks.js
r3319787 r3337829 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, f=d.CHECKOUT_STORE_KEY,y=(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),b=m[0],g=m[1],v=r((0,o.useState)(),2),A=v[0],_=v[1],h=r((0,o.useState)(),2),E=h[0],S=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()}),[])),k=(0,c.useSelect)((function(e){return e(f).getAdditionalFields()}),[]),W=(0,c.useDispatch)(f).setAdditionalFields,P=(0,c.useDispatch)(y),K=(P.showValidationError,P.setValidationErrors),q=(P.showAllValidationErrors,(0,c.useDispatch)(u)),V=q.setBillingAddress,R=q.setShippingAddress,L=(0,c.useSelect)((function(e){return e(y).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){S(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&&(S(r),j("error")):(S(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){S(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!=k&&k["wpify/ic_dic_toggle"]?(Z.style.display="block",U.style.display="block",Y.style.display="block",x.billingAddress.company&&(k["wpify/company"]=x.billingAddress.company)):(Z.style.display="none",U.style.display="none",Y.style.display="none",k["wpify/company"]="",k["wpify/ic"]="",k["wpify/dic"]="",k["wpify/dic-dph"]="",W(k)),null!=k&&k["wpify/ic_dic_toggle"]&&"SK"===x.billingAddress.country&&(z.style.display="block"),N&&null!=k&&k["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")}),[k,B,M,H,$,Z,U,Y,z,x]),(0,o.useEffect)((function(){k["wpify/ic"]&&""!==k["wpify/ic"].trim()||(_(null),w(null));var e="SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["wpify/dic"];e&&""!==e.trim()||(j(null),S(null))}),[k,x.billingAddress.country]),(0,o.useEffect)((function(){e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}});var t="SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["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")),S(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}({},k);"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,k["wpify/ic"]=e,W(k),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=function(i){clearTimeout(t),t=setTimeout((function(){var t=G(i.target.value);t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return null==i||i.addEventListener("input",n),function(){clearTimeout(t),null==i||i.removeEventListener("input",n)}}}),[H,$,x.billingAddress.country]);var ee=function(){if("CZ"===x.billingAddress.country){w(null),_(null),g(!0);var e=J(k["wpify/ic"]);Q(window.wpifyWooIcDic.restUrl+"/icdic?in="+e).then((function(e){var t=e.details,i=void 0===t?{}:t;k["wpify/company"]=i.billing_company,k["wpify/ic"]=i.billing_ic,k["wpify/dic"]=i.billing_dic,W(k),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:b,status:A,error:p,fieldValue:k["wpify/ic"]}),p&&k["wpify/ic"]&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},p)),U),U&&(null==k?void 0:k["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:E,fieldValue:"SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["wpify/dic"]}),E&&("SK"===x.billingAddress.country?k["wpify/dic-dph"]:k["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},E)),"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}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),E=h[0],S=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){S(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&&(S(r),j("error")):(S(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){S(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),S(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")),S(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=function(i){clearTimeout(t),t=setTimeout((function(){var t=G(i.target.value);t&&t.length>=4?X(t):e({namespace:"wpify_ic_dic",data:{validation:"dic_cleared"}})}),1500)};return null==i||i.addEventListener("input",n),function(){clearTimeout(t),null==i||i.removeEventListener("input",n)}}}),[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:E,fieldValue:"SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"]}),E&&("SK"===x.billingAddress.country?P["wpify/dic-dph"]:P["wpify/dic"])&&(0,o.createElement)("p",{style:{color:"#dc3232",fontSize:"14px",marginTop:"4px"}},E)),"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))}))}()}(); -
wpify-woo/trunk/readme.txt
r3321181 r3337829 5 5 Tested up to: 6.8 6 6 Requires PHP: 8.1 7 Stable tag: 5.0.1 67 Stable tag: 5.0.17 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 219 219 220 220 == Changelog == 221 222 = 5.0.17 = 223 * Add VIES error logging 224 * Fix display styling IČ DIČ fields on block checkout 225 221 226 = 5.0.16 = 222 227 * Fix sanitization company field in IČ DIČ module on block checkout -
wpify-woo/trunk/src/Modules/IcDic/IcDicModule.php
r3320683 r3337829 585 585 $address_formats[ $key ] = $format . "\n{billing_ic}\n{billing_dic}\n{billing_dic_dph}"; 586 586 } 587 587 588 return $address_formats; 588 589 } … … 795 796 } 796 797 } catch ( Exception $e ) { 798 $this->log->error( 'VIES ERROR', array( 799 'code' => $e->getCode(), 800 'message' => $e->getMessage(), 801 ) ); 802 797 803 return false; 798 804 } … … 831 837 832 838 $billing_country = WC()->customer->get_billing_country(); 833 $dic = $billing_country === 'SK'839 $dic = $billing_country === 'SK' 834 840 ? WC()->customer->get_meta( 'billing_dic_dph' ) 835 841 : WC()->customer->get_meta( 'billing_dic' ); … … 840 846 // Check if we already calculated this recently (cache for current session) 841 847 $cached_result = WC()->session->get( $cache_key ); 842 $cache_time = WC()->session->get( $cache_key . '_time' );848 $cache_time = WC()->session->get( $cache_key . '_time' ); 843 849 844 850 // Use cache if it's less than 5 minutes old 845 851 if ( $cached_result !== null && $cache_time && ( time() - $cache_time ) < 300 ) { 846 852 WC()->customer->set_is_vat_exempt( $cached_result ); 853 847 854 return; 848 855 } … … 857 864 } else { 858 865 $shipping_country = WC()->customer->get_shipping_country() ?: $billing_country; 859 $is_vat_extempt = $this->is_vat_extempt( $dic, $shipping_country );866 $is_vat_extempt = $this->is_vat_extempt( $dic, $shipping_country ); 860 867 } 861 868 } … … 872 879 // Only log if DIC was provided 873 880 $billing_country = $order->get_billing_country(); 874 $dic = $billing_country === 'SK'875 ? $order->get_meta( '_billing_dic_dph')876 : $order->get_meta( '_billing_dic');881 $dic = $billing_country === 'SK' 882 ? $order->get_meta( '_billing_dic_dph' ) 883 : $order->get_meta( '_billing_dic' ); 877 884 878 885 if ( empty( $dic ) ) { … … 881 888 882 889 // Detect VAT exempt from order - if tax_total is 0 but order has taxable items, likely VAT exempt 883 $customer_vat_exempt = ($order->get_total_tax() == 0 && $order->get_total() > 0);890 $customer_vat_exempt = ( $order->get_total_tax() == 0 && $order->get_total() > 0 ); 884 891 $vat_exempt_countries = $this->get_setting( 'zero_tax_for_vat_countries' ); 885 $shop_country = wc_get_base_location()['country'];886 $shipping_country = $order->get_shipping_country();892 $shop_country = wc_get_base_location()['country']; 893 $shipping_country = $order->get_shipping_country(); 887 894 888 895 // Determine if VAT should be exempt based on current logic … … 892 899 } 893 900 894 $this->log->info( 'Order VAT Exempt Decision', [895 'order_id' => $order->get_id(),896 'order_number' => $order->get_order_number(),897 'billing_country' => $billing_country,898 'shipping_country' => $shipping_country,899 'shop_country' => $shop_country,900 'submitted_dic' => $dic,901 'customer_vat_exempt' => $customer_vat_exempt,901 $this->log->info( 'Order VAT Exempt Decision', [ 902 'order_id' => $order->get_id(), 903 'order_number' => $order->get_order_number(), 904 'billing_country' => $billing_country, 905 'shipping_country' => $shipping_country, 906 'shop_country' => $shop_country, 907 'submitted_dic' => $dic, 908 'customer_vat_exempt' => $customer_vat_exempt, 902 909 'should_be_vat_exempt' => $should_be_vat_exempt, 903 910 'vat_exempt_countries' => $vat_exempt_countries, 904 'order_total' => $order->get_total(),905 'tax_total' => $order->get_total_tax(),906 'context' => 'Order created - Classic checkout'907 ] );911 'order_total' => $order->get_total(), 912 'tax_total' => $order->get_total_tax(), 913 'context' => 'Order created - Classic checkout' 914 ] ); 908 915 } 909 916 … … 926 933 } 927 934 928 $current_vat_no = substr( $dic, 2 );929 $vies = new Vies();930 $is_valid = false;935 $current_vat_no = substr( $dic, 2 ); 936 $vies = new Vies(); 937 $is_valid = false; 931 938 932 939 try { … … 971 978 $country = $data['billing_country'] ?? ''; 972 979 $dic_dph = $country === 'SK' 973 ? ( $data['billing_dic_dph'] ?? '')974 : ( $data['billing_dic'] ?? '');980 ? ( $data['billing_dic_dph'] ?? '' ) 981 : ( $data['billing_dic'] ?? '' ); 975 982 976 983 if ( ! empty( $vies_fails ) && $vies_fails === true && ! empty( $dic_dph ) && ! $this->is_valid_dic( $dic_dph ) ) { 977 984 WC()->customer->set_is_vat_exempt( false ); 985 978 986 return; 979 987 } … … 1079 1087 1080 1088 1081 1082 1089 } -
wpify-woo/trunk/src/Modules/IcDic/assets/icdic-blocks.js
r3319787 r3337829 91 91 92 92 } else { 93 companyFieldWrap.style. display = 'block';94 icFieldWrap.style. display = 'block';95 dicFieldWrap.style. display = 'block';93 companyFieldWrap.style.removeProperty('display'); 94 icFieldWrap.style.removeProperty('display'); 95 dicFieldWrap.style.removeProperty('display'); 96 96 97 97 if (customer.billingAddress.company) { … … 101 101 102 102 if (additionalFields?.['wpify/ic_dic_toggle'] && customer.billingAddress.country === 'SK') { 103 dicDphFieldWrap.style. display = 'block';103 dicDphFieldWrap.style.removeProperty('display'); 104 104 } 105 105 -
wpify-woo/trunk/src/Plugin.php
r3321181 r3337829 23 23 24 24 /** Plugin version */ 25 public const VERSION = '5.0.1 6';25 public const VERSION = '5.0.17'; 26 26 27 27 /** Plugin slug name */ -
wpify-woo/trunk/vendor/composer/installed.php
r3321181 r3337829 2 2 'root' => array( 3 3 'name' => 'wpify/woo', 4 'pretty_version' => '5.0.1 6',5 'version' => '5.0.1 6.0',6 'reference' => ' 59d6f470dcfc8d2776816302e46af66eccb62098',4 'pretty_version' => '5.0.17', 5 'version' => '5.0.17.0', 6 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', 7 7 'type' => 'project', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wpify/woo' => array( 14 'pretty_version' => '5.0.1 6',15 'version' => '5.0.1 6.0',16 'reference' => ' 59d6f470dcfc8d2776816302e46af66eccb62098',14 'pretty_version' => '5.0.17', 15 'version' => '5.0.17.0', 16 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', 17 17 'type' => 'project', 18 18 'install_path' => __DIR__ . '/../../', -
wpify-woo/trunk/vendor/wpify-woo/composer/installed.php
r3321181 r3337829 3 3 namespace WpifyWooDeps; 4 4 5 return array('root' => array('name' => '__root__', 'pretty_version' => '5.0.1 6', 'version' => '5.0.16.0', 'reference' => '59d6f470dcfc8d2776816302e46af66eccb62098', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.0.16', 'version' => '5.0.16.0', 'reference' => '59d6f470dcfc8d2776816302e46af66eccb62098', '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.6', 'version' => '1.0.6.0', 'reference' => '8dfd07c6d2cf31c8da90c53b83c026c7696dda90', '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.9.3', 'version' => '7.9.3.0', 'reference' => '7b2f29fe81dc4da0ca0ea7d42107a0845946ea77', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.2.0', 'version' => '2.2.0.0', 'reference' => '7c69f28996b0a6920945dd20b3857e499d9ca96c', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.7.1', 'version' => '2.7.1.0', 'reference' => 'c2270caaabe631b3b44c85f99e5a04bbb8060d16', '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), 'monolog/monolog' => array('pretty_version' => '2.10.0', 'version' => '2.10.0.0', 'reference' => '5cf826f2991858b54d5c3809bee745560a1042a7', 'type' => 'library', 'install_path' => __DIR__ . '/../monolog/monolog', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.7', 'version' => '4.0.7.0', 'reference' => 'e67c4061eb40b9c113b218214e42cb5a0dda28f2', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.6', 'version' => '2.3.6.0', 'reference' => '59f15608528d8a8838d69b422a919fd6b16aa576', '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' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0.0 || 2.0.0 || 3.0.0')), '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.2', 'version' => '4.2.2.0', 'reference' => '777fa98caaff3f10fb43f3cf67a8464c547e0550', '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.2', 'version' => '3.9.2.0', 'reference' => 'efbb7953f72a433086335b249292f280dd43ddfe', '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.65', 'version' => '4.0.65.0', 'reference' => '2d3de7bbce4c14a524a7babe034a797461a7737c', '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.1.1', 'version' => '1.1.1.0', 'reference' => '5b856a623a574d3ba4f2138d5f4d94c0625329ff', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.24', 'version' => '4.1.24.0', 'reference' => 'ebcac0038014dd0a8d7af5b31e3ee1efa542e9ec', '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)));5 return array('root' => array('name' => '__root__', 'pretty_version' => '5.0.17', 'version' => '5.0.17.0', 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \true), 'versions' => array('__root__' => array('pretty_version' => '5.0.17', 'version' => '5.0.17.0', 'reference' => '6eee4a8510959aef4660f217e8ead78a4e2fa73b', '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.6', 'version' => '1.0.6.0', 'reference' => '8dfd07c6d2cf31c8da90c53b83c026c7696dda90', '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.9.3', 'version' => '7.9.3.0', 'reference' => '7b2f29fe81dc4da0ca0ea7d42107a0845946ea77', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/guzzle', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/promises' => array('pretty_version' => '2.2.0', 'version' => '2.2.0.0', 'reference' => '7c69f28996b0a6920945dd20b3857e499d9ca96c', 'type' => 'library', 'install_path' => __DIR__ . '/../guzzlehttp/promises', 'aliases' => array(), 'dev_requirement' => \false), 'guzzlehttp/psr7' => array('pretty_version' => '2.7.1', 'version' => '2.7.1.0', 'reference' => 'c2270caaabe631b3b44c85f99e5a04bbb8060d16', '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), 'monolog/monolog' => array('pretty_version' => '2.10.0', 'version' => '2.10.0.0', 'reference' => '5cf826f2991858b54d5c3809bee745560a1042a7', 'type' => 'library', 'install_path' => __DIR__ . '/../monolog/monolog', 'aliases' => array(), 'dev_requirement' => \false), 'nette/utils' => array('pretty_version' => 'v4.0.7', 'version' => '4.0.7.0', 'reference' => 'e67c4061eb40b9c113b218214e42cb5a0dda28f2', 'type' => 'library', 'install_path' => __DIR__ . '/../nette/utils', 'aliases' => array(), 'dev_requirement' => \false), 'php-di/invoker' => array('pretty_version' => '2.3.6', 'version' => '2.3.6.0', 'reference' => '59f15608528d8a8838d69b422a919fd6b16aa576', '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' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log-implementation' => array('dev_requirement' => \false, 'provided' => array(0 => '1.0.0 || 2.0.0 || 3.0.0')), '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.2', 'version' => '4.2.2.0', 'reference' => '777fa98caaff3f10fb43f3cf67a8464c547e0550', '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.2', 'version' => '3.9.2.0', 'reference' => 'efbb7953f72a433086335b249292f280dd43ddfe', '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.65', 'version' => '4.0.65.0', 'reference' => '2d3de7bbce4c14a524a7babe034a797461a7737c', '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.1.1', 'version' => '1.1.1.0', 'reference' => '5b856a623a574d3ba4f2138d5f4d94c0625329ff', 'type' => 'library', 'install_path' => __DIR__ . '/../wpify/log', 'aliases' => array(), 'dev_requirement' => \false), 'wpify/model' => array('pretty_version' => '4.1.24', 'version' => '4.1.24.0', 'reference' => 'ebcac0038014dd0a8d7af5b31e3ee1efa542e9ec', '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
r3321181 r3337829 4 4 * Plugin Name: WPify Woo 5 5 * Description: Custom functionality for WooCommerce 6 * Version: 5.0.1 66 * Version: 5.0.17 7 7 * Requires PHP: 8.1.0 8 8 * Requires at least: 6.2
Note: See TracChangeset
for help on using the changeset viewer.