�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`�
Warning: session_start(): Session cannot be started after headers have already been sent in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 132

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 134

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 135
0x0x
PHP 8.2.31
Preview: checkout.js Size: 207.13 KB
/home/m/c/i/mciraet/www/wp-content/plugins/woocommerce/assets/client/blocks/checkout.js
(()=>{var e,t,s,o={6794:(e,t,s)=>{"use strict";var o=s(4921),r=s(5573),c=s(790);const n=(0,c.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M5 3.75h14c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,c.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.4 10.75c0-.47.38-.85.85-.85h9.5c.47 0 .85.38.85.85v1.5c0 .47-.38.85-.85.85h-9.5a.85.85 0 01-.85-.85v-1.5zm1.2.35v.8h8.8v-.8H7.6zM12.4 15.25c0-.47.38-.85.85-.85h3.5c.47 0 .85.38.85.85v1.5c0 .47-.38.85-.85.85h-3.5a.85.85 0 01-.85-.85v-1.5zm1.2.35v.8h2.8v-.8h-2.8zM6.5 15.9a.6.6 0 01.6-.6h2.8a.6.6 0 010 1.2H7.1a.6.6 0 01-.6-.6zM6.5 7.9a.6.6 0 01.6-.6h9.8a.6.6 0 110 1.2H7.1a.6.6 0 01-.6-.6z",clipRule:"evenodd"})]});var i=s(3450);const a=window.wp.blocks,l=window.wp.blockEditor;var d=s(6087),p=s(9491);const m=(0,d.createContext)({hasContainerWidth:!1,containerClassName:"",isMobile:!1,isSmall:!1,isMedium:!1,isLarge:!1}),u=()=>(0,d.useContext)(m),h=({children:e,className:t=""})=>{const[s,r]=(()=>{const[e,{width:t}]=(0,p.useResizeObserver)();let s="";return t>700?s="is-large":t>520?s="is-medium":t>400?s="is-small":t&&(s="is-mobile"),[e,s]})(),n={hasContainerWidth:""!==r,containerClassName:r,isMobile:"is-mobile"===r,isSmall:"is-small"===r,isMedium:"is-medium"===r,isLarge:"is-large"===r};return(0,c.jsx)(m.Provider,{value:n,children:(0,c.jsxs)("div",{className:(0,o.A)(t,r),children:[s,e]})})};s(9163);const g=({children:e,className:t})=>(0,c.jsx)(h,{className:(0,o.A)("wc-block-components-sidebar-layout",t),children:e}),_=window.wp.data,k=(0,d.createContext)({isEditor:!1,currentPostId:0,currentView:"",previewData:{},getPreviewData:()=>({})}),b=()=>(0,d.useContext)(k),w=({children:e,currentPostId:t=0,previewData:s={},currentView:o=""})=>{const r=(0,_.useSelect)(e=>{const{getSettings:t}=e(l.store);return Boolean(t()?.isPreviewMode??!1)},[]),n=(0,_.useSelect)(e=>t||e("core/editor").getCurrentPostId(),[t]),i=(0,d.useCallback)((e,t={})=>s&&e in s?s[e]:t,[s]),a={isEditor:!0,currentPostId:n,currentView:o,previewData:s,getPreviewData:i,isPreview:r};return(0,c.jsx)(k.Provider,{value:a,children:e})},y=window.wp.plugins,x=window.wc.wcSettings;var f=s(7723);const v=(0,x.getSetting)("wcBlocksConfig",{pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),S=v.pluginUrl+"assets/images/",j=(v.pluginUrl,x.STORE_PAGES.shop,x.STORE_PAGES.checkout?.id),C=(x.STORE_PAGES.checkout,x.STORE_PAGES.privacy?.permalink),P=(x.STORE_PAGES.privacy,x.STORE_PAGES.terms?.permalink),E=(x.STORE_PAGES.terms,x.STORE_PAGES.cart?.id),N=x.STORE_PAGES.cart?.permalink,A=(x.STORE_PAGES.myaccount?.permalink?x.STORE_PAGES.myaccount.permalink:(0,x.getSetting)("wpLoginUrl","/wp-login.php"),(0,x.getSetting)("localPickupEnabled",!1)),I=((0,x.getSetting)("shippingMethodsExist",!1),(0,x.getSetting)("shippingEnabled",!0)),R=(0,x.getSetting)("countries",{}),T=(0,x.getSetting)("countryData",{}),M=Object.fromEntries(Object.keys(T).filter(e=>!0===T[e].allowBilling).map(e=>[e,R[e]||""])),B=Object.fromEntries(Object.keys(T).filter(e=>!0===T[e].allowShipping).map(e=>[e,R[e]||""])),D={...M,...B},O=Object.fromEntries(Object.keys(D).map(e=>[e,T[e].states||{}])),L=Object.fromEntries(Object.keys(D).map(e=>[e,T[e].locale||{}])),F={address:["first_name","last_name","company","address_1","address_2","city","postcode","country","state","phone"],contact:["email"],order:[]},V=(0,x.getSetting)("addressFieldsLocations",F).address,H=(0,x.getSetting)("addressFieldsLocations",F).contact,$=(0,x.getSetting)("addressFieldsLocations",F).order,z=((0,x.getSetting)("additionalOrderFields",{}),(0,x.getSetting)("additionalContactFields",{}),(0,x.getSetting)("additionalAddressFields",{}),()=>{const{experimentalBlocksEnabled:e}=(0,x.getSetting)("wcBlocksConfig",{experimentalBlocksEnabled:!1});return e}),U=({imageUrl:e=`${S}/block-error.svg`,header:t=(0,f.__)("Oops!","woocommerce"),text:s=(0,f.__)("There was an error loading the content.","woocommerce"),errorMessage:o,errorMessagePrefix:r=(0,f.__)("Error:","woocommerce"),button:n,showErrorBlock:i=!0})=>i?(0,c.jsxs)("div",{className:"wc-block-error wc-block-components-error",children:[e&&(0,c.jsx)("img",{className:"wc-block-error__image wc-block-components-error__image",src:e,alt:""}),(0,c.jsxs)("div",{className:"wc-block-error__content wc-block-components-error__content",children:[t&&(0,c.jsx)("p",{className:"wc-block-error__header wc-block-components-error__header",children:t}),s&&(0,c.jsx)("p",{className:"wc-block-error__text wc-block-components-error__text",children:s}),o&&(0,c.jsxs)("p",{className:"wc-block-error__message wc-block-components-error__message",children:[r?r+" ":"",o]}),n&&(0,c.jsx)("p",{className:"wc-block-error__button wc-block-components-error__button",children:n})]})]}):null;s(5893);class q extends d.Component{state={errorMessage:"",hasError:!1};static getDerivedStateFromError(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("strong",{children:e.status}),": ",e.statusText]}),hasError:!0}:{errorMessage:e.message,hasError:!0}}render(){const{header:e,imageUrl:t,showErrorMessage:s=!0,showErrorBlock:o=!0,text:r,errorMessagePrefix:n,renderError:i,button:a}=this.props,{errorMessage:l,hasError:d}=this.state;return d?"function"==typeof i?i({errorMessage:l}):(0,c.jsx)(U,{showErrorBlock:o,errorMessage:s?l:null,header:e,imageUrl:t,text:r,errorMessagePrefix:n,button:a}):this.props.children}}const W=q,X=window.wc.wcBlocksData;var Y=s(4040),G=s.n(Y);let J=function(e){return e.ADD_EVENT_CALLBACK="add_event_callback",e.REMOVE_EVENT_CALLBACK="remove_event_callback",e}({});const K={},Z=(e=K,{type:t,eventType:s,id:o,callback:r,priority:c})=>{const n=e.hasOwnProperty(s)?new Map(e[s]):new Map;switch(t){case J.ADD_EVENT_CALLBACK:return n.set(o,{priority:c,callback:r}),{...e,[s]:n};case J.REMOVE_EVENT_CALLBACK:return n.delete(o),{...e,[s]:n}}},Q=(e,t)=>(s,o=10)=>{const r=((e,t,s=10)=>({id:Math.floor(Math.random()*Date.now()).toString(),type:J.ADD_EVENT_CALLBACK,eventType:e,callback:t,priority:s}))(e,s,o);return t(r),()=>{var s;t((s=e,{id:r.id,type:J.REMOVE_EVENT_CALLBACK,eventType:s}))}},ee=(0,d.createContext)({onPaymentProcessing:()=>()=>()=>{},onPaymentSetup:()=>()=>()=>{}}),te=({children:e})=>{const{isProcessing:t,isIdle:s,isCalculating:o,hasError:r}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore);return{isProcessing:t.isProcessing(),isIdle:t.isIdle(),hasError:t.hasError(),isCalculating:t.isCalculating()}}),{isPaymentReady:n}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{isPaymentProcessing:t.isPaymentProcessing(),isPaymentReady:t.isPaymentReady()}}),{setValidationErrors:i}=(0,_.useDispatch)(X.validationStore),[a,l]=(0,d.useReducer)(Z,{}),{onPaymentSetup:p}=(e=>(0,d.useMemo)(()=>({onPaymentSetup:Q("payment_setup",e)}),[e]))(l),m=(0,d.useRef)(a);(0,d.useEffect)(()=>{m.current=a},[a]);const{__internalSetPaymentProcessing:u,__internalSetPaymentIdle:h,__internalEmitPaymentProcessingEvent:g}=(0,_.useDispatch)(X.paymentStore);(0,d.useEffect)(()=>{!t||r||o||(u(),g(m.current,i))},[t,r,o,u,g,i]),(0,d.useEffect)(()=>{s&&!n&&h()},[s,n,h]),(0,d.useEffect)(()=>{r&&n&&h()},[r,n,h]);const k={onPaymentProcessing:(0,d.useMemo)(()=>function(...e){return G()("onPaymentProcessing",{alternative:"onPaymentSetup",plugin:"WooCommerce Blocks"}),p(...e)},[p]),onPaymentSetup:p};return(0,c.jsx)(ee.Provider,{value:k,children:e})},se={NONE:"none",INVALID_ADDRESS:"invalid_address",UNKNOWN:"unknown_error"},oe={INVALID_COUNTRY:"woocommerce_rest_cart_shipping_rates_invalid_country",MISSING_COUNTRY:"woocommerce_rest_cart_shipping_rates_missing_country",INVALID_STATE:"woocommerce_rest_cart_shipping_rates_invalid_state"},re={shippingErrorStatus:{isPristine:!0,isValid:!1,hasInvalidAddress:!1,hasError:!1},dispatchErrorStatus:e=>e,shippingErrorTypes:se,onShippingRateSuccess:()=>()=>{},onShippingRateFail:()=>()=>{},onShippingRateSelectSuccess:()=>()=>{},onShippingRateSelectFail:()=>()=>{}},ce=(e,{type:t})=>Object.values(se).includes(t)?t:e,ne="shipping_rates_success",ie="shipping_rates_fail",ae="shipping_rate_select_success",le="shipping_rate_select_fail",de=e=>({onSuccess:Q(ne,e),onFail:Q(ie,e),onSelectSuccess:Q(ae,e),onSelectFail:Q(le,e)}),pe=window.wc.wcTypes;let me=function(e){return e.CART="wc/cart",e.CHECKOUT="wc/checkout",e.PAYMENTS="wc/checkout/payments",e.EXPRESS_PAYMENTS="wc/checkout/express-payments",e.CONTACT_INFORMATION="wc/checkout/contact-information",e.SHIPPING_ADDRESS="wc/checkout/shipping-address",e.BILLING_ADDRESS="wc/checkout/billing-address",e.SHIPPING_METHODS="wc/checkout/shipping-methods",e.CHECKOUT_ACTIONS="wc/checkout/checkout-actions",e.ORDER_INFORMATION="wc/checkout/order-information",e}({});const ue=async(e,t,s)=>{const o=((e,t)=>e[t]?Array.from(e[t].values()).sort((e,t)=>e.priority-t.priority):[])(e,t),r=[];for(const e of o)try{const t=await Promise.resolve(e.callback(s));"object"==typeof t&&r.push(t)}catch(e){console.error(e)}return!r.length||r};var he=s(1824),ge=s.n(he);const _e=window.wp.htmlEntities,ke=Object.entries(L).reduce((e,[t,s])=>(e[t]=Object.entries(s).reduce((e,[t,s])=>(e[t]=(e=>{const t={};return void 0!==e.label&&(t.label=e.label),void 0!==e.required&&(t.required=e.required),void 0!==e.hidden&&(t.hidden=e.hidden),void 0===e.label||e.optionalLabel||(t.optionalLabel=(0,f.sprintf)(/* translators: %s Field label. */ /* translators: %s Field label. */
(0,f.__)("%s (optional)","woocommerce"),e.label)),void 0!==e.optionalLabel&&(t.optionalLabel=e.optionalLabel),e.index&&((0,pe.isNumber)(e.index)&&(t.index=e.index),(0,pe.isString)(e.index)&&(t.index=parseInt(e.index,10))),e.hidden&&(t.required=!1),t})(s),e),{}),e),{}),be=(e,t,s="")=>{const o=s&&void 0!==ke[s]?ke[s]:{};return e.map(e=>({key:e,...t&&e in t?t[e]:{},...o&&e in o?o[e]:{}})).sort((e,t)=>e.index-t.index)},we=["state","country","postcode","city"],ye=(e,t)=>e in t,xe=e=>{const t=be(V,x.defaultFields,e.country),s=Object.assign({},e);return t.forEach(({key:t,hidden:o})=>{!0===o&&ye(t,e)&&(s[t]="")}),s},fe=e=>!!e.country&&be(V,x.defaultFields,e.country).filter(({key:e})=>we.includes(e)).every(({key:t,hidden:s,required:o})=>!0===s||!1===o||ye(t,e)&&""!==e[t]),ve=window.CustomEvent||null,Se=(e,t,s=!1,o=!1)=>{if("function"!=typeof jQuery)return()=>{};const r=()=>{((e,{bubbles:t=!1,cancelable:s=!1,element:o,detail:r={}})=>{if(!ve)return;o||(o=document.body);const c=new ve(e,{bubbles:t,cancelable:s,detail:r});o.dispatchEvent(c)})(t,{bubbles:s,cancelable:o})};return jQuery(document).on(e,r),()=>jQuery(document).off(e,r)},je=e=>{const t=e?.detail;t&&t.preserveCartData||(0,_.dispatch)(X.cartStore).invalidateResolutionForStore()},Ce=e=>{(e?.persisted||"back_forward"===(window.performance&&window.performance.getEntriesByType("navigation").length?window.performance.getEntriesByType("navigation")[0].type:""))&&(0,_.dispatch)(X.cartStore).invalidateResolutionForStore()},Pe=()=>{1===window.wcBlocksStoreCartListeners.count&&window.wcBlocksStoreCartListeners.remove(),window.wcBlocksStoreCartListeners.count--},Ee={first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},Ne={...Ee,email:""},Ae={total_items:"",total_items_tax:"",total_fees:"",total_fees_tax:"",total_discount:"",total_discount_tax:"",total_shipping:"",total_shipping_tax:"",total_price:"",total_tax:"",tax_lines:X.EMPTY_TAX_LINES,currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:"",currency_thousand_separator:"",currency_prefix:"",currency_suffix:""},Ie=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(0,_e.decodeEntities)(t)])),Re=(e,t)=>{const s=xe(Ie(e));return ge()(t.current,s)||(t.current=s),t.current},Te={billingAddress:Ne,billingData:Ne,cartCoupons:X.EMPTY_CART_COUPONS,cartErrors:X.EMPTY_CART_ERRORS,cartFees:X.EMPTY_CART_FEES,cartHasCalculatedShipping:!1,cartIsLoading:!0,cartItemErrors:X.EMPTY_CART_ITEM_ERRORS,cartItems:X.EMPTY_CART_ITEMS,cartItemsCount:0,cartItemsWeight:0,cartNeedsPayment:!0,cartNeedsShipping:!0,cartTotals:Ae,crossSellsProducts:X.EMPTY_CART_CROSS_SELLS,extensions:X.EMPTY_EXTENSIONS,hasPendingItemsOperations:!1,isLoadingRates:!1,paymentMethods:X.EMPTY_PAYMENT_METHODS,paymentRequirements:X.EMPTY_PAYMENT_REQUIREMENTS,receiveCart:()=>{},receiveCartContents:()=>{},shippingAddress:Ee,shippingRates:X.EMPTY_SHIPPING_RATES},Me=(e={shouldSelect:!0})=>{const{shouldSelect:t}=e,s=(0,d.useRef)(),o=(0,d.useRef)(Ne),r=(0,d.useRef)(Ee);(0,d.useEffect)(()=>((()=>{if(window.wcBlocksStoreCartListeners||(window.wcBlocksStoreCartListeners={count:0,remove:()=>{}}),window.wcBlocksStoreCartListeners?.count>0)return void window.wcBlocksStoreCartListeners.count++;document.body.addEventListener("wc-blocks_added_to_cart",je),document.body.addEventListener("wc-blocks_removed_from_cart",je),window.addEventListener("pageshow",Ce);const e=Se("added_to_cart","wc-blocks_added_to_cart"),t=Se("removed_from_cart","wc-blocks_removed_from_cart");window.wcBlocksStoreCartListeners.count=1,window.wcBlocksStoreCartListeners.remove=()=>{document.body.removeEventListener("wc-blocks_added_to_cart",je),document.body.removeEventListener("wc-blocks_removed_from_cart",je),window.removeEventListener("pageshow",Ce),e(),t()}})(),Pe),[]);const{receiveCart:c,receiveCartContents:n}=(0,_.useDispatch)(X.cartStore),{cartData:i,cartErrors:a,cartTotals:l,cartIsLoading:p,isLoadingRates:m,hasPendingItemsOperations:u}=(0,_.useSelect)(e=>{const t=e(X.cartStore),s=!t.hasFinishedResolution("getCartData",[]);return{cartData:t.getCartData(),cartErrors:t.getCartErrors(),cartTotals:t.getCartTotals(),cartIsLoading:s,isLoadingRates:t.isAddressFieldsForShippingRatesUpdating(),hasPendingItemsOperations:t.hasPendingItemsOperations()}},[]);if(!t)return Te;const h=Re(i.billingAddress,o),g=i.needsShipping?Re(i.shippingAddress,r):h,k={billingAddress:h,billingData:h,cartCoupons:(y=i.coupons,y.length>0?y.map(e=>({...e,label:(0,_e.decodeEntities)(e.code)})):X.EMPTY_CART_COUPONS),cartErrors:a,cartFees:(w=i.fees,w.length>0?w.map(e=>Ie(e)):X.EMPTY_CART_FEES),cartHasCalculatedShipping:i.hasCalculatedShipping,cartIsLoading:p,cartItemErrors:i.errors,cartItems:i.items,cartItemsCount:i.itemsCount,cartItemsWeight:i.itemsWeight,cartNeedsPayment:i.needsPayment,cartNeedsShipping:i.needsShipping,cartTotals:l,crossSellsProducts:i.crossSells,extensions:i.extensions,hasPendingItemsOperations:u,isLoadingRates:m,paymentMethods:i.paymentMethods,paymentRequirements:i.paymentRequirements,receiveCart:c,receiveCartContents:n,shippingAddress:g,shippingRates:(b=i.shippingRates,b.length>0?b.map(e=>({...e,shipping_rates:e.shipping_rates.length>0?e.shipping_rates.map(e=>Ie(e)):[]})):[])};var b,w,y;return s.current&&ge()(s.current,k)||(s.current=k),s.current},Be=e=>e.length,De=(0,x.getSetting)("collectableMethodIds",[]),Oe=e=>De.includes(e.method_id),Le=e=>!!A&&(Array.isArray(e)?!!e.find(e=>De.includes(e)):De.includes(e)),Fe=e=>!!(e=>e.some(e=>!!e.shipping_rates.length))(e)&&e.some(e=>e.shipping_rates.some(e=>e.selected)),Ve=e=>Array.from(new Set(e.flatMap(e=>e.shipping_rates.filter(e=>e.selected).map(e=>e.name)))),He=e=>Object.fromEntries(e.map(({package_id:e,shipping_rates:t})=>[e,t.find(e=>e.selected)?.rate_id||""]));var $e=s(923),ze=s.n($e);const Ue=window.wp.hooks,qe=()=>({dispatchStoreEvent:(0,d.useCallback)((e,t={})=>{try{(0,Ue.doAction)(`experimental__woocommerce_blocks-${e}`,t)}catch(e){console.error(e)}},[]),dispatchCheckoutEvent:(0,d.useCallback)((e,t={})=>{try{(0,Ue.doAction)(`experimental__woocommerce_blocks-checkout-${e}`,{...t,storeCart:(0,_.select)("wc/store/cart").getCartData()})}catch(e){console.error(e)}},[])}),We=()=>{const{shippingRates:e,needsShipping:t,hasCalculatedShipping:s,isLoadingRates:o,isCollectable:r,isSelectingRate:c}=(0,_.useSelect)(e=>{const t=e(X.cartStore),s=t.getShippingRates();return{shippingRates:s,needsShipping:t.getNeedsShipping(),hasCalculatedShipping:t.getHasCalculatedShipping(),isLoadingRates:t.isAddressFieldsForShippingRatesUpdating(),isCollectable:s.every(({shipping_rates:e})=>e.find(({method_id:e})=>Le(e))),isSelectingRate:t.isShippingRateBeingSelected()}},[]),n=(0,d.useRef)({});(0,d.useEffect)(()=>{const t=He(e);(0,pe.isObject)(t)&&!ze()(n.current,t)&&(n.current=t)},[e]);const{selectShippingRate:i}=(0,_.useDispatch)(X.cartStore),a=Le(Object.values(n.current).map(e=>e.split(":")[0])),{dispatchCheckoutEvent:l}=qe(),p=(0,d.useCallback)((e,t)=>{let s;void 0!==e&&(s=Le(e.split(":")[0])?i(e,null):i(e,t),s.then(()=>{l("set-selected-shipping-rate",{shippingRateId:e})}).catch(e=>{(0,X.processErrorResponse)(e)}))},[i,l]);return{isSelectingRate:c,selectedRates:n.current,selectShippingRate:p,shippingRates:e,needsShipping:t,hasCalculatedShipping:s,isLoadingRates:o,isCollectable:r,hasSelectedLocalPickup:a}},{NONE:Xe,INVALID_ADDRESS:Ye,UNKNOWN:Ge}=se,Je=(0,d.createContext)(re),Ke=()=>(0,d.useContext)(Je),Ze=({children:e})=>{const{__internalStartCalculation:t,__internalFinishCalculation:s}=(0,_.useDispatch)(X.checkoutStore),{shippingRates:o,isLoadingRates:r,cartErrors:n}=Me(),{selectedRates:i,isSelectingRate:a}=We(),[l,p]=(0,d.useReducer)(ce,Xe),[m,u]=(0,d.useReducer)(Z,{}),h=(0,d.useRef)(m),g=(0,d.useMemo)(()=>({onShippingRateSuccess:de(u).onSuccess,onShippingRateFail:de(u).onFail,onShippingRateSelectSuccess:de(u).onSelectSuccess,onShippingRateSelectFail:de(u).onSelectFail}),[u]);(0,d.useEffect)(()=>{h.current=m},[m]),(0,d.useEffect)(()=>{r?t():s()},[r,t,s]),(0,d.useEffect)(()=>{a?t():s()},[t,s,a]),(0,d.useEffect)(()=>{n.length>0&&n.some(e=>!(!e.code||!Object.values(oe).includes(e.code)))?p({type:Ye}):p({type:Xe})},[n]);const k=(0,d.useMemo)(()=>({isPristine:l===Xe,isValid:l===Xe,hasInvalidAddress:l===Ye,hasError:l===Ge||l===Ye}),[l]);(0,d.useEffect)(()=>{r||0!==o.length&&!k.hasError||ue(h.current,ie,{hasInvalidAddress:k.hasInvalidAddress,hasError:k.hasError})},[o,r,k.hasError,k.hasInvalidAddress]),(0,d.useEffect)(()=>{!r&&o.length>0&&!k.hasError&&ue(h.current,ne,o)},[o,r,k.hasError]),(0,d.useEffect)(()=>{a||(k.hasError?ue(h.current,le,{hasError:k.hasError,hasInvalidAddress:k.hasInvalidAddress}):ue(h.current,ae,i.current))},[i,a,k.hasError,k.hasInvalidAddress]);const b={shippingErrorStatus:k,dispatchErrorStatus:p,shippingErrorTypes:se,...g};return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(Je.Provider,{value:b,children:e})})};function Qe(e,t){const s=(0,d.useRef)();return(0,d.useEffect)(()=>{s.current===e||t&&!t(e,s.current)||(s.current=e)},[e,t]),s.current}const et=window.wp.notices,tt=window.wc.blocksCheckoutEvents,st=window.wc.wcBlocksRegistry,ot=(0,d.createContext)({onSubmit:()=>{},onCheckoutAfterProcessingWithSuccess:()=>()=>{},onCheckoutAfterProcessingWithError:()=>()=>{},onCheckoutBeforeProcessing:()=>()=>{},onCheckoutValidationBeforeProcessing:()=>()=>{},onCheckoutSuccess:()=>()=>{},onCheckoutFail:()=>()=>{},onCheckoutValidation:()=>()=>{}}),rt=()=>(0,d.useContext)(ot),ct=({children:e,redirectUrl:t})=>{const s=(0,st.getPaymentMethods)(),o=(0,st.getExpressPaymentMethods)(),r=(0,st.getExpressPaymentMethods)(),{isEditor:n}=b(),{__internalUpdateAvailablePaymentMethods:i,__internalSetRegisteredExpressPaymentMethods:a}=(0,_.useDispatch)(X.paymentStore);(0,d.useEffect)(()=>{a((e=>{const t={};return Object.keys(e).forEach(s=>{const o=e[s];t[s]={name:o.name,title:o.title,description:o.description,gatewayId:o.gatewayId,supportsStyle:o.supports?.style||[]}}),t})(r))},[r]),(0,d.useEffect)(()=>{(n||0!==Object.keys(s).length||0!==Object.keys(o).length)&&i()},[n,s,o,i]);const{__internalSetRedirectUrl:l,__internalEmitValidateEvent:p,__internalEmitAfterProcessingEvents:m,__internalSetBeforeProcessing:u}=(0,_.useDispatch)(X.checkoutStore),{checkoutRedirectUrl:h,checkoutStatus:g,isCheckoutBeforeProcessing:k,isCheckoutAfterProcessing:w,checkoutHasError:y,checkoutOrderId:x,checkoutOrderNotes:f,checkoutCustomerId:v}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore);return{checkoutRedirectUrl:t.getRedirectUrl(),checkoutStatus:t.getCheckoutStatus(),isCheckoutBeforeProcessing:t.isBeforeProcessing(),isCheckoutAfterProcessing:t.isAfterProcessing(),checkoutHasError:t.hasError(),checkoutOrderId:t.getOrderId(),checkoutOrderNotes:t.getOrderNotes(),checkoutCustomerId:t.getCustomerId()}});t&&t!==h&&l(t);const{setValidationErrors:S}=(0,_.useDispatch)(X.validationStore),{dispatchCheckoutEvent:j}=qe(),C=Object.values(me).filter(e=>e!==me.PAYMENTS&&e!==me.EXPRESS_PAYMENTS),P=(0,_.useSelect)(e=>{const{getNotices:t}=e(et.store);return C.reduce((e,s)=>[...e,...t(s)],[])},[C]),{paymentNotices:E,expressPaymentNotices:N}=(0,_.useSelect)(e=>{const{getNotices:t}=e(et.store);return{paymentNotices:t(me.PAYMENTS),expressPaymentNotices:t(me.EXPRESS_PAYMENTS)}},[]),[A]=(0,d.useReducer)(Z,{}),I=(0,d.useRef)(A),{onCheckoutValidation:R,onCheckoutSuccess:T,onCheckoutFail:M}=tt.checkoutEvents;(0,d.useEffect)(()=>{I.current=A},[A]);const B=(0,d.useMemo)(()=>function(...e){return G()("onCheckoutBeforeProcessing",{alternative:"onCheckoutValidation",plugin:"WooCommerce Blocks"}),R(...e)},[R]),D=(0,d.useMemo)(()=>function(...e){return G()("onCheckoutValidationBeforeProcessing",{since:"9.7.0",alternative:"onCheckoutValidation",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),R(...e)},[R]),O=(0,d.useMemo)(()=>function(...e){return G()("onCheckoutAfterProcessingWithSuccess",{since:"9.7.0",alternative:"onCheckoutSuccess",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),T(...e)},[T]),L=(0,d.useMemo)(()=>function(...e){return G()("onCheckoutAfterProcessingWithError",{since:"9.7.0",alternative:"onCheckoutFail",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8381"}),M(...e)},[M]);(0,d.useEffect)(()=>{k&&p({setValidationErrors:S})},[k,S,p]);const F=Qe(g),V=Qe(y);(0,d.useEffect)(()=>{g===F&&y===V||w&&m({notices:{checkoutNotices:P,paymentNotices:E,expressPaymentNotices:N}})},[g,y,h,x,v,f,w,k,F,V,P,N,E,p,m]);const H={onSubmit:(0,d.useCallback)(()=>{j("submit"),u()},[j,u]),onCheckoutBeforeProcessing:B,onCheckoutValidationBeforeProcessing:D,onCheckoutAfterProcessingWithSuccess:O,onCheckoutAfterProcessingWithError:L,onCheckoutSuccess:T,onCheckoutFail:M,onCheckoutValidation:R};return(0,c.jsx)(ot.Provider,{value:H,children:e})},nt=window.wp.apiFetch;var it=s.n(nt);(0,f.__)("Something went wrong. Please contact us to get assistance.","woocommerce");const at=(e,t,s)=>{const o=Object.keys(e).map(t=>({key:t,value:e[t]}),[]),r=`wc-${s}-new-payment-method`;return o.push({key:r,value:t}),o},lt=e=>{if(!e)return;const{__internalSetCustomerId:t}=(0,_.dispatch)(X.checkoutStore);it().setNonce&&"function"==typeof it().setNonce&&it().setNonce(e),it().setCartHash&&"function"==typeof it().setCartHash&&it().setCartHash(e),e?.get("User-ID")&&t(parseInt(e.get("User-ID")||"0",10))};function dt(e){const t=(0,d.useRef)(e);return ze()(e,t.current)||(t.current=e),t.current}const pt=()=>{const{customerData:e,isInitialized:t}=(0,_.useSelect)(e=>{const t=e(X.cartStore);return{customerData:t.getCustomerData(),isInitialized:t.hasFinishedResolution("getCartData")}}),{setShippingAddress:s,setBillingAddress:o}=(0,_.useDispatch)(X.cartStore);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:o,setShippingAddress:s}},mt=()=>{const{isEditor:e,getPreviewData:t}=b(),{needsShipping:s}=We(),{useShippingAsBilling:o,prefersCollection:r,editingBillingAddress:c,editingShippingAddress:n}=(0,_.useSelect)(e=>({useShippingAsBilling:e(X.checkoutStore).getUseShippingAsBilling(),prefersCollection:e(X.checkoutStore).prefersCollection(),editingBillingAddress:e(X.checkoutStore).getEditingBillingAddress(),editingShippingAddress:e(X.checkoutStore).getEditingShippingAddress()})),{__internalSetUseShippingAsBilling:i,setEditingBillingAddress:a,setEditingShippingAddress:l}=(0,_.useDispatch)(X.checkoutStore),{billingAddress:p,setBillingAddress:m,shippingAddress:u,setShippingAddress:h}=pt(),g=dt(p),k=dt(u),w=(0,d.useMemo)(()=>xe(g),[g]),y=(0,d.useMemo)(()=>xe(k),[k]),f=(0,d.useCallback)(e=>{m({email:e})},[m]),v=(0,x.getSetting)("forcedBillingAddress",!1);return{shippingAddress:y,billingAddress:w,setShippingAddress:h,setBillingAddress:m,setEmail:f,defaultFields:e?t("defaultFields",x.defaultFields):x.defaultFields,useShippingAsBilling:o,setUseShippingAsBilling:i,editingBillingAddress:c,editingShippingAddress:n,setEditingBillingAddress:a,setEditingShippingAddress:l,needsShipping:s,showShippingFields:!v&&s&&!r,showShippingMethods:s&&!r,showBillingFields:!s||!o||!!r,forcedBillingAddress:v,useBillingAsShipping:v||!!r}},ut=()=>{const{onCheckoutValidation:e}=tt.checkoutEvents,{additionalFields:t,customerId:s,customerPassword:o,extensionData:r,hasError:c,isBeforeProcessing:n,isComplete:i,isProcessing:a,orderNotes:l,redirectUrl:p,shouldCreateAccount:m}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore);return{additionalFields:t.getAdditionalFields(),customerId:t.getCustomerId(),customerPassword:t.getCustomerPassword(),extensionData:t.getExtensionData(),hasError:t.hasError(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete(),isProcessing:t.isProcessing(),orderNotes:t.getOrderNotes(),redirectUrl:t.getRedirectUrl(),shouldCreateAccount:t.getShouldCreateAccount()}},[]),{__internalSetHasError:u,__internalProcessCheckoutResponse:h}=(0,_.useDispatch)(X.checkoutStore),g=(0,_.useSelect)(e=>e(X.validationStore).hasValidationErrors,[]),{shippingErrorStatus:k}=Ke(),{shippingAddress:b,billingAddress:w,useBillingAsShipping:y}=mt(),{cartNeedsPayment:x,cartNeedsShipping:v,receiveCartContents:S}=Me(),{activePaymentMethod:j,paymentMethodData:C,isExpressPaymentMethodActive:P,hasPaymentError:E,isPaymentReady:N,shouldSavePayment:A}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive(),hasPaymentError:t.hasPaymentError(),isPaymentReady:t.isPaymentReady(),shouldSavePayment:t.getShouldSavePaymentMethod()}},[]),I=(0,st.getPaymentMethods)(),R=(0,st.getExpressPaymentMethods)(),T=(0,d.useRef)(w),M=(0,d.useRef)(b),B=(0,d.useRef)(p),[D,O]=(0,d.useState)(!1),L=(0,d.useMemo)(()=>{const e={...R,...I};return e?.[j]?.paymentMethodId},[j,R,I]),F=g()&&!P||E||k.hasError,V=!c&&!F&&(N||!x)&&a;(0,d.useEffect)(()=>{F===c||!a&&!n||P||u(F)},[F,c,a,n,P,u]),(0,d.useEffect)(()=>{T.current=w,M.current=b,B.current=p},[w,b,p]);const H=(0,d.useCallback)(()=>g()?void 0!==(0,_.select)(X.validationStore).getValidationError("shipping-rates-error")&&{type:pe.responseTypes.ERROR,errorMessage:(0,f.__)("Sorry, this order requires a shipping option.","woocommerce")}:E?{type:pe.responseTypes.ERROR,errorMessage:(0,f.__)("There was a problem with your payment option.","woocommerce"),context:"wc/checkout/payments"}:!k.hasError||{type:pe.responseTypes.ERROR,errorMessage:(0,f.__)("There was a problem with your shipping option.","woocommerce"),context:"wc/checkout/shipping-methods"},[g,E,k.hasError]);(0,d.useEffect)(()=>{let t;return P||(t=e(H,0)),()=>{P||"function"!=typeof t||t()}},[e,H,P]),(0,d.useEffect)(()=>{window.localStorage.removeItem("WOOCOMMERCE_CHECKOUT_IS_CUSTOMER_DATA_DIRTY"),B.current&&(window.location.href=B.current)},[i]);const $=(0,d.useCallback)(async()=>{if(D)return;O(!0),(()=>{const e=(0,_.select)("wc/store/store-notices").getRegisteredContainers(),{removeNotice:t}=(0,_.dispatch)(et.store),{getNotices:s}=(0,_.select)(et.store);e.forEach(e=>{s(e).forEach(s=>{t(s.id,e)})})})();const e=x?{payment_method:L,payment_data:at(C,A,j)}:{},c=T.current,n=y?c:M.current,i={additional_fields:t,billing_address:c,create_account:m,customer_note:l,customer_password:o,extensions:{...r},shipping_address:v?n:void 0,...e};(0,X.clearCheckoutPutRequests)(),it()({path:"/wc/store/v1/checkout",method:"POST",data:i,cache:"no-store",parse:!1}).then(e=>{if((0,pe.assertResponseIsValid)(e),lt(e.headers),!e.ok)throw e;return e.json()}).then(e=>{h(e),O(!1)}).catch(e=>{lt(e?.headers);try{e.json().then(e=>e).then(e=>{e.data?.cart&&S(e.data.cart),(0,X.processErrorResponse)(e),h(e)})}catch{let e=(0,f.__)("Something went wrong when placing the order. Check your email for order updates before retrying.","woocommerce");0!==s&&(e=(0,f.__)("Something went wrong when placing the order. Check your account's order history or your email for order updates before retrying.","woocommerce")),(0,X.processErrorResponse)({code:"unknown_error",message:e,data:null})}u(!0),O(!1)})},[D,x,L,C,A,j,l,m,s,o,r,t,v,S,u,h,y]);return(0,d.useEffect)(()=>{V&&!D&&$()},[$,V,D]),null},ht=({children:e,redirectUrl:t})=>(0,c.jsx)(ct,{redirectUrl:t,children:(0,c.jsx)(Ze,{children:(0,c.jsxs)(te,{children:[e,(0,c.jsx)(W,{renderError:x.CURRENT_USER_IS_ADMIN?null:()=>null,children:(0,c.jsx)(y.PluginArea,{scope:"woocommerce-checkout"})}),(0,c.jsx)(ut,{})]})})}),gt={currency_code:x.SITE_CURRENCY.code,currency_symbol:x.SITE_CURRENCY.symbol,currency_minor_unit:x.SITE_CURRENCY.minorUnit,currency_decimal_separator:x.SITE_CURRENCY.decimalSeparator,currency_thousand_separator:x.SITE_CURRENCY.thousandSeparator,currency_prefix:x.SITE_CURRENCY.prefix,currency_suffix:x.SITE_CURRENCY.suffix},_t=(e,t=2)=>{const s=x.SITE_CURRENCY.minorUnit;if(s===t||!e)return e;const o=Math.pow(10,s);return(Math.round(parseInt(e,10)/Math.pow(10,t))*o).toString()},kt=(0,x.getSetting)("localPickupEnabled",!1),bt=(0,x.getSetting)("localPickupText",(0,f.__)("Local pickup","woocommerce")),wt=(0,x.getSetting)("localPickupCost",""),yt=kt?(0,x.getSetting)("localPickupLocations",[]):[],xt=yt?Object.values(yt).map((e,t)=>({...gt,name:`${bt} (${e.name})`,description:"",delivery_time:"",price:_t(wt,0)||"0",taxes:"0",rate_id:`pickup_location:${t+1}`,instance_id:t+1,meta_data:[{key:"pickup_location",value:e.name},{key:"pickup_address",value:e.formatted_address},{key:"pickup_details",value:e.details}],method_id:"pickup_location",selected:!1})):[],ft=[{destination:{address_1:"",address_2:"",city:"",state:"",postcode:"",country:""},package_id:0,name:(0,f.__)("Shipping","woocommerce"),items:[{key:"33e75ff09dd601bbe69f351039152189",name:(0,f._x)("Beanie with Logo","example product in Cart Block","woocommerce"),quantity:2},{key:"6512bd43d9caa6e02c990b0a82652dca",name:(0,f._x)("Beanie","example product in Cart Block","woocommerce"),quantity:1}],shipping_rates:[{...gt,name:(0,f.__)("Flat rate shipping","woocommerce"),description:"",delivery_time:"",price:_t("500"),taxes:"0",rate_id:"flat_rate:0",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!1},{...gt,name:(0,f.__)("Free shipping","woocommerce"),description:"",delivery_time:"",price:"0",taxes:"0",rate_id:"free_shipping:1",instance_id:0,meta_data:[],method_id:"flat_rate",selected:!0},...xt]}],vt=(0,x.getSetting)("displayCartPricesIncludingTax",!1),St={coupons:[],shipping_rates:(0,x.getSetting)("shippingMethodsExist",!1)||(0,x.getSetting)("localPickupEnabled",!1)?ft:[],items:[{key:"1",id:1,type:"simple",quantity:2,catalog_visibility:"visible",name:(0,f.__)("Beanie","woocommerce"),summary:(0,f.__)("Beanie","woocommerce"),short_description:(0,f.__)("Warm hat for winter","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-beanie",permalink:"https://example.org",low_stock_remaining:2,backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:10,src:S+"previews/beanie.jpg",thumbnail:S+"previews/beanie.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,f.__)("Color","woocommerce"),value:(0,f.__)("Yellow","woocommerce")},{attribute:(0,f.__)("Size","woocommerce"),value:(0,f.__)("Small","woocommerce")}],prices:{...gt,price:_t(vt?"12000":"10000"),regular_price:_t(vt?"120":"100"),sale_price:_t(vt?"12000":"10000"),price_range:null,raw_prices:{precision:6,price:vt?"12000000":"10000000",regular_price:vt?"12000000":"10000000",sale_price:vt?"12000000":"10000000"}},totals:{...gt,line_subtotal:_t("2000"),line_subtotal_tax:_t("400"),line_total:_t("2000"),line_total_tax:_t("400")},extensions:{},item_data:[]},{key:"2",id:2,type:"simple",quantity:1,catalog_visibility:"visible",name:(0,f.__)("Cap","woocommerce"),summary:(0,f.__)("Cap","woocommerce"),short_description:(0,f.__)("Lightweight baseball cap","woocommerce"),description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",sku:"woo-cap",low_stock_remaining:null,permalink:"https://example.org",backorders_allowed:!1,show_backorder_badge:!1,sold_individually:!1,quantity_limits:{minimum:1,maximum:99,multiple_of:1,editable:!0},images:[{id:11,src:S+"previews/cap.jpg",thumbnail:S+"previews/cap.jpg",srcset:"",sizes:"",name:"",alt:""}],variation:[{attribute:(0,f.__)("Color","woocommerce"),value:(0,f.__)("Orange","woocommerce")}],prices:{...gt,price:_t(vt?"2400":"2000"),regular_price:_t(vt?"2400":"2000"),sale_price:_t(vt?"2400":"2000"),price_range:null,raw_prices:{precision:6,price:vt?"24000000":"20000000",regular_price:vt?"24000000":"20000000",sale_price:vt?"24000000":"20000000"}},totals:{...gt,line_subtotal:_t("2000"),line_subtotal_tax:_t("400"),line_total:_t("2000"),line_total_tax:_t("400")},extensions:{},item_data:[]}],cross_sells:[{id:1,name:(0,f.__)("Polo","woocommerce"),slug:"polo",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-polo",short_description:(0,f.__)("Polo","woocommerce"),description:(0,f.__)("Polo","woocommerce"),on_sale:!1,prices:{...gt,price:_t(vt?"24000":"20000"),regular_price:_t(vt?"24000":"20000"),sale_price:_t(vt?"12000":"10000"),price_range:null},price_html:"",average_rating:"4.5",review_count:2,images:[{id:17,src:S+"previews/polo.jpg",thumbnail:S+"previews/polo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:2,name:(0,f.__)("Long Sleeve Tee","woocommerce"),slug:"long-sleeve-tee",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-long-sleeve-tee",short_description:(0,f.__)("Long Sleeve Tee","woocommerce"),description:(0,f.__)("Long Sleeve Tee","woocommerce"),on_sale:!1,prices:{...gt,price:_t(vt?"30000":"25000"),regular_price:_t(vt?"30000":"25000"),sale_price:_t(vt?"30000":"25000"),price_range:null},price_html:"",average_rating:"4",review_count:2,images:[{id:17,src:S+"previews/long-sleeve-tee.jpg",thumbnail:S+"previews/long-sleeve-tee.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:3,name:(0,f.__)("Hoodie with Zipper","woocommerce"),slug:"hoodie-with-zipper",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-zipper",short_description:(0,f.__)("Hoodie with Zipper","woocommerce"),description:(0,f.__)("Hoodie with Zipper","woocommerce"),on_sale:!0,prices:{...gt,price:_t(vt?"15000":"12500"),regular_price:_t(vt?"30000":"25000"),sale_price:_t(vt?"15000":"12500"),price_range:null},price_html:"",average_rating:"1",review_count:2,images:[{id:17,src:S+"previews/hoodie-with-zipper.jpg",thumbnail:S+"previews/hoodie-with-zipper.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:4,name:(0,f.__)("Hoodie with Logo","woocommerce"),slug:"hoodie-with-logo",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-logo",short_description:(0,f.__)("Polo","woocommerce"),description:(0,f.__)("Polo","woocommerce"),on_sale:!1,prices:{...gt,price:_t(vt?"4500":"4250"),regular_price:_t(vt?"4500":"4250"),sale_price:_t(vt?"4500":"4250"),price_range:null},price_html:"",average_rating:"5",review_count:2,images:[{id:17,src:S+"previews/hoodie-with-logo.jpg",thumbnail:S+"previews/hoodie-with-logo.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:5,name:(0,f.__)("Hoodie with Pocket","woocommerce"),slug:"hoodie-with-pocket",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-hoodie-with-pocket",short_description:(0,f.__)("Hoodie with Pocket","woocommerce"),description:(0,f.__)("Hoodie with Pocket","woocommerce"),on_sale:!0,prices:{...gt,price:_t(vt?"3500":"3250"),regular_price:_t(vt?"4500":"4250"),sale_price:_t(vt?"3500":"3250"),price_range:null},price_html:"",average_rating:"3.75",review_count:4,images:[{id:17,src:S+"previews/hoodie-with-pocket.jpg",thumbnail:S+"previews/hoodie-with-pocket.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}},{id:6,name:(0,f.__)("T-Shirt","woocommerce"),slug:"t-shirt",parent:0,type:"simple",variation:"",permalink:"https://example.org",sku:"woo-t-shirt",short_description:(0,f.__)("T-Shirt","woocommerce"),description:(0,f.__)("T-Shirt","woocommerce"),on_sale:!1,prices:{...gt,price:_t(vt?"1800":"1500"),regular_price:_t(vt?"1800":"1500"),sale_price:_t(vt?"1800":"1500"),price_range:null},price_html:"",average_rating:"3",review_count:2,images:[{id:17,src:S+"previews/tshirt.jpg",thumbnail:S+"previews/tshirt.jpg",srcset:"",sizes:"",name:"",alt:""}],categories:[],tags:[],attributes:[],variations:[],has_options:!1,is_purchasable:!0,is_in_stock:!0,is_on_backorder:!1,low_stock_remaining:null,sold_individually:!1,add_to_cart:{text:"",description:"",url:"",minimum:1,maximum:99,multiple_of:1}}],fees:[{id:"fee",name:(0,f.__)("Fee","woocommerce"),totals:{...gt,total:_t("100"),total_tax:_t("20")}}],items_count:3,items_weight:0,needs_payment:!0,needs_shipping:I,has_calculated_shipping:!0,shipping_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",phone:""},billing_address:{first_name:"",last_name:"",company:"",address_1:"",address_2:"",city:"",state:"",postcode:"",country:"",email:"",phone:""},totals:{...gt,total_items:_t("4000"),total_items_tax:_t("800"),total_fees:_t("100"),total_fees_tax:_t("20"),total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_tax:_t("820"),total_price:_t("4920"),tax_lines:[{name:(0,f.__)("Sales tax","woocommerce"),rate:"20%",price:_t("820")}]},errors:[],payment_methods:["cod","bacs","cheque"],payment_requirements:["products"],extensions:{}},jt={cc:[{method:{gateway:"credit-card",last4:"5678",brand:"Visa"},expires:"12/20",is_default:!1,tokenId:"1"}]},Ct=window.wc.blocksCheckout,Pt=window.wp.url,Et=window.wp.coreData;var Nt=s(6870);const At=(0,d.forwardRef)(({children:e,className:t=""},s)=>(0,c.jsx)("div",{ref:s,className:(0,o.A)("wc-block-components-main",t),children:e})),It={showOrderNotes:!0,showPolicyLinks:!0,showReturnToCart:!1,cartPageId:0,showRateAfterTaxName:!1,showFormStepNumbers:!1,defaultFields:x.defaultFields},Rt=(0,d.createContext)(It),Tt=()=>{const e=(0,d.useContext)(Rt);return{...It,...e}},Mt=["core/paragraph","core/image","core/separator"],Bt=e=>{const t=(0,Ct.applyCheckoutFilter)({filterName:"additionalCartCheckoutInnerBlockTypes",defaultValue:[],extensions:(0,_.select)(X.cartStore).getCartData().extensions,arg:{block:e},validation:e=>{if(Array.isArray(e)&&e.every(e=>"string"==typeof e))return!0;throw new Error("allowedBlockTypes filters must return an array of strings.")}});return Array.from(new Set([...(0,a.getBlockTypes)().filter(t=>(t?.parent||[]).includes(e)).map(({name:e})=>e),...Mt,...t]))},Dt=({clientId:e,registeredBlocks:t,defaultTemplate:s=[]})=>{const o=(0,d.useRef)(t),r=(0,d.useRef)(s),c=(0,_.useRegistry)(),{isPreview:n}=b();(0,d.useEffect)(()=>{let t=!1;if(n)return;const{replaceInnerBlocks:s}=(0,_.dispatch)("core/block-editor");return c.subscribe(()=>{if(!c.select("core/block-editor").getBlock(e))return;const n=c.select("core/block-editor").getBlocks(e);if(0===n.length&&r.current.length>0&&!t){const o=(0,a.createBlocksFromInnerBlocksTemplate)(r.current);if(0!==o.length)return t=!0,void s(e,o)}const i=o.current.map(e=>(0,a.getBlockType)(e)),l=((e,t)=>{const s=t.filter(e=>e&&(({attributes:e})=>Boolean(e.lock?.remove||e.lock?.default?.remove))(e)),o=[];return s.forEach(t=>{if(void 0===t)return;const s=e.find(e=>e.name===t.name);s||o.push(t)}),o})(n,i);if(0===l.length)return;let d=-1;const p=l.map(e=>{const t=r.current.findIndex(([t])=>t===e.name),s=(0,a.createBlock)(e.name);return-1===d&&(d=(({defaultTemplatePosition:e,innerBlocks:t,currentDefaultTemplate:s})=>{switch(e){case-1:return t.length;case 0:return 0;default:const o=s.current[e-1],r=t.findIndex(({name:e})=>e===o[0]);return-1===r?e:r+1}})({defaultTemplatePosition:t,innerBlocks:n,currentDefaultTemplate:r})),s});c.batch(()=>{c.dispatch("core/block-editor").insertBlocks(p,d,e)})},"core/block-editor")},[e,n,c])};s(4793);const Ot=window.wp.components,Lt=()=>{const{defaultFields:e}=Tt(),t=(e,t)=>{["phone","company","address_2"].includes(e)&&["optional","required","hidden"].includes(t)&&(0,_.dispatch)(Et.store).editEntityRecord("root","site",void 0,{[`woocommerce_checkout_${e}_field`]:t})},s=[{label:(0,f.__)("Optional","woocommerce"),value:"false"},{label:(0,f.__)("Required","woocommerce"),value:"true"}];return(0,c.jsx)(l.InspectorControls,{children:(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Address Fields","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("Show or hide fields in the checkout address forms.","woocommerce")}),(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Company","woocommerce"),checked:!e.company.hidden,onChange:()=>{e.company.hidden?t("company","optional"):t("company","hidden")}}),!e.company.hidden&&(0,c.jsx)(Ot.RadioControl,{selected:e.company.required?"true":"false",options:s,onChange:e=>{t("company","true"===e?"required":"optional")},className:"components-base-control--nested wc-block-components-require-company-field"}),(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Address line 2","woocommerce"),checked:!e.address_2.hidden,onChange:()=>{e.address_2.hidden?t("address_2","optional"):t("address_2","hidden")}}),!e.address_2.hidden&&(0,c.jsx)(Ot.RadioControl,{selected:e.address_2.required?"true":"false",options:s,onChange:e=>{t("address_2","true"===e?"required":"optional")},className:"components-base-control--nested wc-block-components-require-address_2-field"}),(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Phone","woocommerce"),checked:!e.phone.hidden,onChange:()=>{e.phone.hidden?t("phone","optional"):t("phone","hidden")}}),!e.phone.hidden&&(0,c.jsx)(Ot.RadioControl,{selected:e.phone.required?"true":"false",options:s,onChange:e=>{t("phone","true"===e?"required":"optional")},className:"components-base-control--nested wc-block-components-require-phone-field"})]})})},Ft=JSON.parse('{"DD":"Checkout Fields","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-fields-block",{apiVersion:Ft.XV,title:Ft.DD,icon:{src:(0,c.jsx)(i.A,{icon:Nt.A,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e,attributes:t})=>{const s=(0,l.useBlockProps)({className:(0,o.A)("wc-block-checkout__main",t?.className)}),r=Bt(Ct.innerBlockAreas.CHECKOUT_FIELDS),{showFormStepNumbers:n}=Tt(),i=[["woocommerce/checkout-express-payment-block",{},[]],["woocommerce/checkout-contact-information-block",{},[]],["woocommerce/checkout-shipping-method-block",{},[]],["woocommerce/checkout-pickup-options-block",{},[]],["woocommerce/checkout-shipping-address-block",{},[]],["woocommerce/checkout-billing-address-block",{},[]],["woocommerce/checkout-shipping-methods-block",{},[]],["woocommerce/checkout-payment-block",{},[]],["woocommerce/checkout-additional-information-block",{},[]],["woocommerce/checkout-order-note-block",{},[]],["woocommerce/checkout-terms-block",{},[]],["woocommerce/checkout-actions-block",{},[]]].filter(Boolean);return Dt({clientId:e,registeredBlocks:r,defaultTemplate:i}),(0,c.jsxs)(At,{...s,children:[(0,c.jsx)(Lt,{}),(0,c.jsx)("form",{className:(0,o.A)("wc-block-components-form wc-block-checkout__form",{"wc-block-checkout__form--with-step-numbers":n}),children:(0,c.jsx)(l.InnerBlocks,{allowedBlocks:r,templateLock:!1,template:i,renderAppender:l.InnerBlocks.ButtonBlockAppender})})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(l.InnerBlocks.Content,{})})});const Vt=(0,d.forwardRef)(({children:e,className:t=""},s)=>(0,c.jsx)("div",{ref:s,className:(0,o.A)("wc-block-components-sidebar",t),children:e}));s(6811);const Ht=JSON.parse('{"DD":"Checkout Totals","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-totals-block",{apiVersion:Ht.XV,title:Ht.DD,icon:{src:(0,c.jsx)(i.A,{icon:Nt.A,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e,attributes:t})=>{const s=(0,l.useBlockProps)({className:(0,o.A)("wc-block-checkout__sidebar",t?.className)}),r=Bt(Ct.innerBlockAreas.CHECKOUT_TOTALS),n=[["woocommerce/checkout-order-summary-block",{},[]]];return Dt({clientId:e,registeredBlocks:r,defaultTemplate:n}),(0,c.jsx)(Vt,{...s,children:(0,c.jsx)(l.InnerBlocks,{allowedBlocks:r,templateLock:!1,template:n,renderAppender:l.InnerBlocks.ButtonBlockAppender})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(l.InnerBlocks.Content,{})})});var $t=s(3987);const zt=window.wc.blocksComponents,Ut=({children:e,stepHeadingContent:t})=>(0,c.jsxs)("div",{className:"wc-block-components-checkout-step__heading",children:[(0,c.jsx)(zt.Title,{className:"wc-block-components-checkout-step__title",headingLevel:"2",children:e}),!!t&&(0,c.jsx)("span",{className:"wc-block-components-checkout-step__heading-content",children:t})]}),qt=({attributes:e,setAttributes:t,className:s="",children:r})=>{const{showFormStepNumbers:n}=Tt(),{title:i="",description:a=""}=e,d=(0,l.useBlockProps)({className:(0,o.A)("wc-block-components-checkout-step",s,{"wc-block-components-checkout-step--with-step-number":n})});return(0,c.jsxs)("div",{...d,children:[(0,c.jsxs)("div",{className:"wc-block-components-checkout-step__heading-container",children:[(0,c.jsx)(Ut,{children:(0,c.jsx)(l.PlainText,{className:"",value:i,onChange:e=>t({title:e}),style:{backgroundColor:"transparent"}})}),(0,c.jsx)("p",{className:"wc-block-components-checkout-step__description",children:(0,c.jsx)(l.PlainText,{className:a?"":"wc-block-components-checkout-step__description-placeholder",value:a,placeholder:(0,f.__)("Optional text for this form step.","woocommerce"),onChange:e=>t({description:e}),style:{backgroundColor:"transparent"}})})]}),(0,c.jsx)("div",{className:"wc-block-components-checkout-step__content",children:r})]})};s(2862);const Wt=({block:e})=>{const{"data-block":t}=(0,l.useBlockProps)(),s=Bt(e);return Dt({clientId:t,registeredBlocks:s}),(0,c.jsx)("div",{className:"wc-block-checkout__additional_fields",children:(0,c.jsx)(l.InnerBlocks,{allowedBlocks:s})})},Xt=()=>(0,c.jsx)(l.InnerBlocks.Content,{});var Yt=s(5583),Gt=s(8107),Jt=s(4347);const Kt=["BUTTON","FIELDSET","INPUT","OPTGROUP","OPTION","SELECT","TEXTAREA","A"],Zt=({children:e,style:t={},...s})=>{const o=(0,d.useRef)(null),r=()=>{o.current&&Gt.focus.focusable.find(o.current).forEach(e=>{Kt.includes(e.nodeName)&&e.setAttribute("tabindex","-1"),e.hasAttribute("contenteditable")&&e.setAttribute("contenteditable","false")})},n=(0,Jt.YQ)(r,0,{leading:!0});return(0,d.useLayoutEffect)(()=>{let e;return r(),o.current&&(e=new window.MutationObserver(n),e.observe(o.current,{childList:!0,attributes:!0,subtree:!0})),()=>{e&&e.disconnect(),n.cancel()}},[n]),(0,c.jsx)("div",{ref:o,"aria-disabled":"true",style:{userSelect:"none",pointerEvents:"none",cursor:"normal",...t},...s,children:e})};s(4249);var Qt=s(5414);s(8306);const es=e=>{const{onChange:t,options:s,label:r,value:n="",className:a,size:l,errorId:p,required:m,errorMessage:u=(0,f.__)("Please select a valid option","woocommerce"),placeholder:h,...g}=e,k=(0,d.useCallback)(e=>{t(e.target.value)},[t]),b=(0,Ct.getFieldLabel)(r),w=(0,d.useMemo)(()=>({value:"",label:h??(0,f.sprintf)(
// translators: %s will be label of the field. For example "country/region".
// translators: %s will be label of the field. For example "country/region".
(0,f.__)("Select a %s","woocommerce"),b),disabled:!!m}),[h,m,b]),y=(0,d.useId)(),x=g.id||`wc-blocks-components-select-${y}`,v=p||x,S=(0,d.useMemo)(()=>[w].concat(s),[w,s]),{setValidationErrors:j,clearValidationError:C}=(0,_.useDispatch)(X.validationStore),{error:P,validationErrorId:E}=(0,_.useSelect)(e=>{const t=e(X.validationStore);return{error:t.getValidationError(v),validationErrorId:t.getValidationErrorId(v)}},[v]);(0,d.useEffect)(()=>(!m||n?C(v):j({[v]:{message:u,hidden:!0}}),()=>{C(v)}),[C,n,v,u,m,j]);const N=(0,_.useSelect)(e=>e(X.validationStore).getValidationError(v||"")||{hidden:!0},[v]);return(0,c.jsxs)("div",{className:(0,o.A)(a,{"has-error":!N.hidden}),children:[(0,c.jsx)("div",{className:"wc-blocks-components-select",children:(0,c.jsxs)("div",{className:"wc-blocks-components-select__container",children:[(0,c.jsx)("label",{htmlFor:x,className:"wc-blocks-components-select__label",children:r}),(0,c.jsx)("select",{className:"wc-blocks-components-select__select",id:x,size:void 0!==l?l:1,onChange:k,value:n,"aria-invalid":!(!P?.message||P?.hidden),"aria-errormessage":E,...g,children:S.map(e=>(0,c.jsx)("option",{value:e.value,"data-alternate-values":`[${e.label}]`,disabled:void 0!==e.disabled&&e.disabled,children:e.label},e.value))}),(0,c.jsx)(i.A,{className:"wc-blocks-components-select__expand",icon:Qt.A})]})}),(0,c.jsx)(zt.ValidationInputError,{propertyName:v})]})},ts=({className:e,countries:t,id:s,errorId:r,label:n,onChange:i,value:a="",autoComplete:l="off",required:p=!1})=>{const m=(0,d.useMemo)(()=>Object.entries(t).map(([e,t])=>({value:e,label:(0,_e.decodeEntities)(t)})),[t]);return(0,c.jsx)(es,{className:(0,o.A)(e,"wc-block-components-country-input"),id:s,errorId:r,label:n||"",onChange:i,options:m,value:a,required:p,autoComplete:l})},ss=e=>{const{...t}=e;return(0,c.jsx)(ts,{countries:D,...t})},os=e=>(0,c.jsx)(ts,{countries:D,...e}),rs=(e,t)=>{const s=t.find(t=>t.label.toLocaleUpperCase()===e.toLocaleUpperCase()||t.value.toLocaleUpperCase()===e.toLocaleUpperCase());return s?s.value:""},cs=({className:e,id:t,states:s,country:r,label:n,onChange:i,autoComplete:a="off",value:l="",required:p=!1})=>{const m=s[r],u=(0,d.useMemo)(()=>m&&Object.keys(m).length>0?Object.keys(m).map(e=>({value:e,label:(0,_e.decodeEntities)(m[e])})):[],[m]),h=(0,d.useCallback)(e=>{const t=u.length>0?rs(e,u):e;t!==l&&i(t)},[i,u,l]),g=(0,d.useRef)(l);return(0,d.useEffect)(()=>{g.current!==l&&(g.current=l)},[l]),(0,d.useEffect)(()=>{if(u.length>0&&g.current){const e=rs(g.current,u);e!==g.current&&h(e)}},[u,h]),u.length>0?(0,c.jsx)(es,{className:(0,o.$)(e,"wc-block-components-state-input"),options:u,label:n||"",id:t,onChange:h,value:l,autoComplete:a,required:p}):(0,c.jsx)(zt.ValidatedTextInput,{className:e,id:t,label:n,onChange:h,autoComplete:a,value:l,required:p})},ns=e=>{const{...t}=e;return(0,c.jsx)(cs,{states:O,...t})},is=e=>(0,c.jsx)(cs,{states:O,...e});var as=s(6874);s(2770);const ls=({field:e,props:t,onChange:s,value:o})=>{const r=e?.required??!1,n=Qe(r),[i,a]=(0,d.useState)(()=>Boolean(o)||r),l=(0,Ct.getFieldLabel)(e.label);(0,d.useEffect)(()=>{n!==r&&a(Boolean(o)||r)},[o,n,r]);const p=(0,d.useCallback)(e=>{s(e),a(!0)},[s]);return(0,d.useEffect)(()=>{o&&a(!0)},[o]),(0,c.jsx)(d.Fragment,{children:i?(0,c.jsx)(zt.ValidatedTextInput,{...t,type:e.type,label:r?e.label:e.optionalLabel,className:"wc-block-components-address-form__address_2",value:o,onChange:e=>s(e)}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(as.$,{render:(0,c.jsx)("span",{}),className:"wc-block-components-address-form__address_2-toggle",onClick:()=>a(!0),children:(0,f.sprintf)(
// translators: %s: address 2 field label.
// translators: %s: address 2 field label.
(0,f.__)("+ Add %s","woocommerce"),l)}),(0,c.jsx)("input",{type:"text",tabIndex:-1,className:"wc-block-components-address-form__address_2-hidden-input","aria-hidden":"true","aria-label":e.label,autoComplete:e.autocomplete,id:t?.id,value:o,onChange:e=>p(e.target.value)})]})})},ds=(e,t,s)=>({id:`${t}-${e?.key}`.replaceAll("/","-"),errorId:`${s}_${e?.key}`,name:`${s}_${e?.key}`,label:(e?.required?e?.label:e?.optionalLabel)||"",autoCapitalize:e?.autocapitalize,autoComplete:e?.autocomplete?`section-${s} ${s} ${e.autocomplete}`:void 0,errorMessage:e?.errorMessage||"",required:e?.required,placeholder:e?.placeholder,className:`wc-block-components-address-form__${e?.key}`.replaceAll("/","-"),...e?.attributes}),ps=(e,t,s)=>{const o=t.find(t=>t.key===e),r=(0,pe.objectHasProp)(s,e)?s[e]:"";return o?{field:{...o,key:e},value:r}:null},ms=(e,t)=>(0,pe.isObject)(e[t])&&Object.keys(e[t]).length>0;s(7308);const us=window.wc.sanitize;function hs(e,t){const s=(0,_e.decodeEntities)(e),o=[];let r=0;return Array.isArray(t)?(t.filter(e=>e&&"number"==typeof e.offset&&"number"==typeof e.length&&e.offset>=0&&e.length>0&&e.offset+e.length<=s.length).forEach((e,t)=>{e.offset>r&&o.push(s.slice(r,e.offset)),o.push((0,c.jsx)("strong",{children:s.slice(e.offset,e.offset+e.length)},`match-${t}`)),r=e.offset+e.length}),r<s.length&&o.push(s.slice(r)),o):[s]}const gs=({suggestions:e,branding:t,selectedSuggestion:s,addressType:o,onSuggestionClick:r})=>{if(!e)return null;const n=`address-suggestions-${o}-list`;return(0,c.jsxs)("div",{className:"wc-block-components-address-autocomplete-suggestions",role:"region","aria-live":"polite",children:[(0,c.jsx)("ul",{className:"suggestions-list",id:n,role:"listbox","aria-label":"Address suggestions",children:e.slice(0,5).map((e,t)=>(0,c.jsx)("li",{id:`suggestion-item-${o}-${t}`,className:"wc-block-components-address-autocomplete-suggestion"+(s===t?" active":""),role:"option",tabIndex:-1,"aria-selected":s===t,onClick:()=>r(e.id),style:{cursor:"pointer"},children:hs(e?.label,e?.matchedSubstrings||[])},e.id))}),t?(0,c.jsx)("div",{className:"woocommerce-address-autocomplete-branding",dangerouslySetInnerHTML:{__html:(0,us.sanitizeHTML)(t,{tags:["a","img","span","br"],attr:["href","target","rel","src","alt","style","width","height"]})}}):null]})},_s=(0,x.getSettingWithCoercion)("addressAutocompleteProviders",[],e=>!!Array.isArray(e)&&e.every(e=>"string"==typeof e.name&&"string"==typeof e.id&&"string"==typeof e.branding_html));function ks(e){const{country:t,registeredProviders:s}=(0,_.useSelect)(t=>{const s="shipping"===e?"shippingAddress":"billingAddress";return{country:t("wc/store/cart").getCartData()?.[s]?.country,registeredProviders:t("wc/store/checkout").getRegisteredAutocompleteProviders()}},[e]),{setActiveAddressAutocompleteProvider:o}=(0,_.useDispatch)("wc/store/checkout");(0,d.useEffect)(()=>{if(!window?.wc?.addressAutocomplete?.providers)return o("",e),void(window?.wc?.addressAutocomplete?.activeProvider&&(window.wc.addressAutocomplete.activeProvider[e]=null));for(const s of _s){const r=window?.wc?.addressAutocomplete?.providers?.[s.id];if(r&&r.canSearch(t))return o(r.id,e),void(window.wc.addressAutocomplete.activeProvider[e]=r)}o("",e),window?.wc?.addressAutocomplete?.activeProvider&&(window.wc.addressAutocomplete.activeProvider[e]=null)},[e,t,o,s])}const bs=({addressType:e,id:t,...s})=>{ks(e);const{useShippingAsBilling:o,useBillingAsShipping:r}=mt(),n=(0,d.useRef)(null),i=(0,d.useRef)(null),a=(0,x.getSettingWithCoercion)("addressAutocompleteProviders",[],e=>!!Array.isArray(e)&&e.every(e=>"string"==typeof e.name&&"string"==typeof e.id&&"string"==typeof e.branding_html)),{country:l,registeredProviders:p}=(0,_.useSelect)(t=>{const s=t(X.cartStore),o=t(X.checkoutStore),r="shipping"===e?"shippingAddress":"billingAddress",c=s.getCartData();return{country:c?.[r]?.country||"",registeredProviders:o.getRegisteredAutocompleteProviders()||[]}},[e]),{setActiveAddressAutocompleteProvider:m}=(0,_.useDispatch)(X.checkoutStore),{setBillingAddress:u,setShippingAddress:h}=(0,_.useDispatch)(X.cartStore),[g,k]=(0,d.useState)(""),b=(0,_.useSelect)(t=>t(X.checkoutStore).getActiveAutocompleteProvider(e),[e]);(0,d.useEffect)(()=>{if(!window?.wc?.addressAutocomplete?.providers)return;const e=a.find(e=>e.id===b)?.branding_html||"";k(e)},[l,p,m,e,a,b]);const[w,y]=(0,d.useState)([]),[f,v]=(0,d.useState)(""),[S,j]=(0,d.useState)(!1),C=(0,d.useRef)(null),P=(0,d.useRef)(!1),E=(0,d.useRef)(null),N=(0,d.useRef)(!1),A=(0,d.useRef)(0);(0,d.useEffect)(()=>{if(S||f.length<3||C.current)return void y([]);const t=window?.wc?.addressAutocomplete?.activeProvider?.[e];if(t){const e=++A.current;t.search(f,l).then(t=>{if(e!==A.current)return;const s=n.current?.inputRef?.current;s&&function(e){try{return e.matches(":-webkit-autofill")}catch{return!1}}(s)?y([]):t&&t.length?y(t):y([])}).catch(()=>{y([])})}},[f]),(0,d.useEffect)(()=>()=>{C.current&&clearTimeout(C.current),E.current&&clearTimeout(E.current)},[]),(0,d.useEffect)(()=>{const e=n.current?.inputRef?.current;if(e)return i.current=new MutationObserver(()=>{"on"===e.getAttribute("data-disable-autocomplete")?(e.setAttribute("data-1p-ignore","true"),e.setAttribute("autocomplete","none")):(e.removeAttribute("data-1p-ignore"),e.setAttribute("autocomplete",s.autoComplete||""));const t=e.parentElement;if(t){const s=document.activeElement===e,o=e.selectionStart,r=e.selectionEnd;t.appendChild(t.removeChild(e)),s&&(e.focus(),null!==o&&null!==r&&e.setSelectionRange(o,r))}}),i.current.observe(e,{attributes:!0,attributeFilter:["data-disable-autocomplete"]}),()=>{i.current&&(i.current.disconnect(),i.current=null)}},[s.autoComplete]),(0,d.useEffect)(()=>{const e=n.current?.inputRef?.current;if(!e)return;const t=e=>{const t=e,{inputType:s}=t;"insertReplacementText"===s?N.current=!0:s&&(P.current=!0,E.current&&clearTimeout(E.current),E.current=setTimeout(()=>{P.current=!1},200))};return e.addEventListener("input",t),()=>{e.removeEventListener("input",t)}},[]);const[I,R]=(0,d.useState)(-1),T=`address-suggestions-${e}-list`,M=I>=0?`suggestion-item-${e}-${I}`:void 0;return(0,c.jsxs)("div",{className:"wc-block-components-address-autocomplete-container",children:[(0,c.jsx)(zt.ValidatedTextInput,{...s,id:t,ref:n,onChange:e=>{if(s.onChange(e),!S&&!C.current)return N.current?(N.current=!1,v(""),void y([])):void(P.current&&v(e))},onKeyDown:t=>{if(0!==w.length)if("ArrowDown"===t.key)t.preventDefault(),R(e=>e<w.length-1?e+1:0);else if("ArrowUp"===t.key)t.preventDefault(),R(e=>e>0?e-1:w.length-1);else if("Enter"===t.key){if(t.preventDefault(),I>=0&&I<w.length){const t=w[I],s=window?.wc?.addressAutocomplete?.activeProvider?.[e];s&&(j(!0),C.current=setTimeout(()=>{C.current=null},1e3),s.select(t.id,l).then(t=>{"shipping"===e?(h(t),o&&u(t)):(u(t),r&&h(t))}).finally(()=>{j(!1),y([]),R(-1)}))}}else"Escape"===t.key&&(y([]),R(-1))},onBlurCapture:()=>{setTimeout(()=>{y([]),R(-1)},200)},"aria-expanded":w.length>0,"aria-owns":w.length>0?T:void 0,"aria-activedescendant":M,"aria-autocomplete":"list",role:"combobox","data-disable-autocomplete":f.length>=3?"on":"off",icon:a.length>0?(0,c.jsx)("div",{className:"wc-block-components-address-autocomplete-icon","aria-hidden":"true"}):null}),f.length>=3&&w.length>0?(0,c.jsx)(gs,{selectedSuggestion:I,suggestions:w,branding:g,addressType:e,onSuggestionClick:async t=>{const s=window?.wc?.addressAutocomplete?.activeProvider?.[e];if(s){j(!0),C.current=setTimeout(()=>{C.current=null},1e3);try{const c=await s.select(t,l);"shipping"===e?(h(c),o&&u(c)):(u(c),r&&h(c))}finally{j(!1),y([]),R(-1)}}}}):null]})},ws=({formId:e,address1:t,address2:s,addressType:o,onChange:r})=>{const n=ds(t.field,e,o),i=ds(s.field,e,o),a=(0,x.getSettingWithCoercion)("addressAutocompleteProviders",[],e=>!!Array.isArray(e)&&e.every(e=>"string"==typeof e.name&&"string"==typeof e.id&&"string"==typeof e.branding_html)),l=a.length>0?bs:zt.ValidatedTextInput;return(0,c.jsxs)(c.Fragment,{children:[t&&(0,c.jsx)(l,{...n,type:t.field.type,...a.length>0?{addressType:o}:{},className:"wc-block-components-address-form__address_1",value:t.value,onChange:e=>r("address_1",e)}),s.field&&!s.field.hidden&&(0,c.jsx)(ls,{field:s.field,props:i,onChange:e=>r("address_2",e),value:s.value})]})};var ys=s(7740);const xs=e=>((e,t)=>Object.entries(e).reduce((e,[s,o])=>({...e,[t(0,s)]:o}),{}))(e,(e,t)=>(0,ys.L)(t)),fs=e=>{const t=(e=>{const t=(0,d.useRef)({cart:{},checkout:{},customer:{}}),{cartData:s,prefersCollection:o,shouldCreateAccount:r,orderNotes:c,additionalFields:n,activePaymentMethod:i,customerId:a}=(0,_.useSelect)(e=>{const t=e(X.cartStore),s=e(X.checkoutStore),o=e(X.paymentStore);return{cartData:t.getCartData(),prefersCollection:s.prefersCollection(),shouldCreateAccount:s.getShouldCreateAccount(),orderNotes:s.getOrderNotes(),additionalFields:s.getAdditionalFields(),activePaymentMethod:o.getActivePaymentMethod(),customerId:s.getCustomerId()}},[]),l=(0,d.useMemo)(()=>{const{coupons:t,shippingRates:l,shippingAddress:d,billingAddress:p,items:m,itemsCount:u,itemsWeight:h,needsShipping:g,totals:_,extensions:k}=s,b={cart:{coupons:t.map(e=>e.code),shippingRates:[...new Set(l.map(e=>e.shipping_rates.find(e=>e.selected)?.rate_id).filter(Boolean))],items:m.map(e=>Array(Math.ceil(e.quantity)).fill(e.id)).flat(),itemsType:[...new Set(m.map(e=>e.type))],itemsCount:u,itemsWeight:h,needsShipping:g,prefersCollection:"boolean"==typeof o&&o,totals:{total_price:Number(_.total_price),total_tax:Number(_.total_tax)},extensions:k},checkout:{createAccount:r,customerNote:c,additionalFields:Object.entries(n).reduce((e,[t,s])=>($.includes(t)&&(e[t]=s),e),{}),paymentMethod:i},customer:{id:a,billingAddress:p,shippingAddress:d,additionalFields:Object.entries(n).reduce((e,[t,s])=>(H.includes(t)&&(e[t]=s),e),{}),..."billing"===e||"shipping"===e?{address:"billing"===e?p:d}:{}}};return{cart:xs(b.cart),checkout:xs(b.checkout),customer:xs(b.customer)}},[s,o,r,c,n,i,a,e]);return t.current&&ge()(t.current,l)||(t.current=l),t.current})(e);return window.schemaParser?{parser:window.schemaParser,data:t}:{parser:null,data:t}},vs=(e,t,s,o="")=>{const r=(0,d.useRef)([]),{parser:c,data:n}=fs(s),i=be(e,t,o).map(e=>{const s=t[e.key]||{};if(c){if(ms(s,"required")){let t={};t=Object.keys(s.required).some(e=>"cart"===e||"checkout"===e||"customer"===e)?{type:"object",properties:s.required}:s.required;try{const s=c.validate(t,n);e.required=s}catch(e){x.CURRENT_USER_IS_ADMIN&&console.error(e)}}if(ms(s,"hidden")){let t={};t=Object.keys(s.hidden).some(e=>"cart"===e||"checkout"===e||"customer"===e)?{type:"object",properties:s.hidden}:s.hidden;try{const s=c.validate(t,n);e.hidden=s}catch(e){x.CURRENT_USER_IS_ADMIN&&console.error(e)}}}return e});if(!r.current||!ge()(r.current,i)){const e=i.map(e=>({...e,hidden:"boolean"==typeof e.hidden&&e.hidden,required:"boolean"==typeof e.required&&e.required}));r.current=e}return r.current},Ss={};function js(e){let t=e;return function(e){const s=t;return t=e,s}}const Cs=js(),Ps=js(),Es=({id:e="",fields:t,onChange:s,addressType:r="shipping",values:n,children:i,isEditing:a,ariaDescribedBy:l=""})=>{const m=(0,p.useInstanceId)(Es),u=(0,d.useRef)(!0),{defaultFields:h}=mt(),g=dt(t),k=dt("country"in n?n.country:""),b=vs(g,h,r,k),w=Qe(b),y=Qe(a),x=Qe(n),v=(0,d.useRef)({}),{errors:S,previousErrors:j}=((e,t,s)=>{const{parser:o,data:r}=fs(t),c=(0,d.useRef)(Ss),n=Qe(c.current);if(!r)return{errors:c.current,previousErrors:void 0};let i;if(s)i=s;else switch(t){case"billing":case"shipping":i=r.customer.address||{};break;case"contact":case"order":i=r.checkout.additional_fields||{};break;default:i={}}const a=e.reduce((e,t)=>(ms(t,"validation")&&!t.hidden&&(t.required||i[t.key])&&(e[t.key]=t.validation),e),{});let l=Ss;if(Object.keys(a).length>0&&o){const s={type:"object",properties:{}};switch(t){case"shipping":s.properties={customer:{type:"object",properties:{shipping_address:{type:"object",properties:a}}}};break;case"billing":s.properties={customer:{type:"object",properties:{billing_address:{type:"object",properties:a}}}};break;default:s.properties={checkout:{type:"object",properties:{additional_fields:{type:"object",properties:a}}}}}const c=o.compile(s),n=c(r);l=!n&&c.errors?((e,t)=>e.reduce((e,s)=>{const o=(r=s.instancePath,r.split("/").pop()?.replace("~1","/"));var r;const c=t.find(e=>e.key===o);if(!c||!o)return e;const n=(0,Ct.getFieldLabel)(c.label),i=(0,f.sprintf)(
// translators: %s is the label of the field.
// translators: %s is the label of the field.
(0,f.__)("%s is invalid","woocommerce"),n);if(o)switch(s.keyword){case"errorMessage":e[o]=s.message??i;break;case"pattern":e[o]=(0,f.sprintf)(
// translators: %1$s is the label of the field, %2$s is the pattern.
// translators: %1$s is the label of the field, %2$s is the pattern.
(0,f.__)("%1$s must match the pattern %2$s","woocommerce"),n,s.params.pattern);break;default:e[o]=i}return e},{}))(c.errors,e):Ss}const p=e.map(e=>l[e.key]?[e.key,l[e.key]]:e.hidden||!e.required&&!i[e.key]?null:"postcode"===e.key&&"country"in i&&!(0,Ct.isPostcode)({postcode:i.postcode,country:i.country})?[e.key,(0,f.__)("Please enter a valid postcode","woocommerce")]:"email"===e.key&&"email"in i&&!(0,Pt.isEmail)(i.email)?[e.key,(0,f.__)("Please enter a valid email address","woocommerce")]:null).filter(pe.nonNullable);return ge()(c.current,Object.fromEntries(p))||(c.current=Object.fromEntries(p)),{errors:c.current,previousErrors:n}})(b,r,"shipping"===r?n:void 0);return(0,d.useEffect)(()=>{if(Object.entries(S).forEach(([e,t])=>{const s=v.current[e];t&&(s?.setErrorMessage(t),(0,_.select)(X.validationStore).getValidationError(`${r}_${e}`)||(0,_.dispatch)(X.validationStore).setValidationErrors({[`${r}_${e}`]:{message:t,hidden:!!s?.isFocused()}}))}),j){const e=[];Object.entries(j).forEach(([t])=>{const s=v.current[t];t in S||(e.push(`${r}_${t}`),s?.setErrorMessage(""))}),e.length&&(0,_.dispatch)(X.validationStore).clearValidationErrors(e)}},[S,j,r,n]),(0,d.useEffect)(()=>{v.current?.postcode?.revalidate()},[k]),(0,d.useEffect)(()=>{let t;if(!u.current&&a&&v.current&&y!==a){const s=b.find(e=>!1===e.hidden);if(!s)return;const{id:o}=ds(s,e||`${m}`,r),c=document.getElementById(o);c&&(t=setTimeout(()=>{c.focus()},300))}return u.current=!1,()=>{clearTimeout(t)}},[a,b,e,m,r,y]),(0,d.useEffect)(()=>{if(ge()(w,b))return;const e={...n,...Object.fromEntries(b.filter(e=>e.hidden).map(e=>[e.key,""]))};ze()(n,e)||s(e)},[s,b,w,n]),(0,d.useEffect)(()=>{if((!ge()(w,b)||!ge()(x,n))&&("country"in n&&((e,t)=>{const s=`${e}_country`,o=(0,_.select)(X.validationStore).getValidationError(s),r=t.city||t.state||t.postcode;try{if(!t.country&&r)throw(0,f.__)("Please select your country","woocommerce");if("billing"===e&&t.country&&!Object.keys(M).includes(t.country))throw(0,f.__)("Sorry, we do not allow orders from the selected country","woocommerce");if("shipping"===e&&t.country&&!Object.keys(B).includes(t.country))throw(0,f.__)("Sorry, we do not ship orders to the selected country","woocommerce");o&&(0,_.dispatch)(X.validationStore).clearValidationError(s)}catch(e){o?(0,_.dispatch)(X.validationStore).showValidationError(s):(0,_.dispatch)(X.validationStore).setValidationErrors({[s]:{message:String(e),hidden:!1}})}})(r,n),"state"in n)){const e=b.find(e=>"state"===e.key);e&&((e,t,s)=>{const o=`${e}_state`,r=(0,_.select)(X.validationStore).getValidationError(o),c=s.required,n="shipping"===e?Cs(t):Ps(t),i=!!n&&!ze()(n,t);r?!c||t.state?(0,_.dispatch)(X.validationStore).clearValidationError(o):i||(0,_.dispatch)(X.validationStore).showValidationError(o):!r&&c&&!t.state&&t.country&&(0,_.dispatch)(X.validationStore).setValidationErrors({[o]:{message:(0,f.sprintf)(/* translators: %s will be the state field label in lowercase e.g. "state" */ /* translators: %s will be the state field label in lowercase e.g. "state" */
(0,f.__)("Please select a %s","woocommerce"),s.label.toLowerCase()),hidden:!0}})})(r,n,e)}},[n,x,r,b,w]),e=e||`${m}`,(0,c.jsxs)("div",{id:e,className:"wc-block-components-address-form",children:[b.map(t=>{if(t.hidden)return null;const i=ds(t,e,r),a=(e=>{const{autoCapitalize:t,autoComplete:s,placeholder:o,...r}=e;return r})(i);if("email"===t.key&&(i.id="email",i.errorId="billing_email"),"checkbox"===t.type){const e=t.key in n&&n[t.key],o={checked:Boolean(e),onChange:e=>{s({...n,[t.key]:e})},...a};return t.required?(0,c.jsx)(zt.ValidatedCheckboxControl,{...t.errorMessage?{errorMessage:t.errorMessage}:{},...o},t.key):(0,c.jsx)(zt.CheckboxControl,{...o},t.key)}if("address_1"===t.key&&"address_1"in n){const o=ps("address_1",b,n),i=ps("address_2",b,n);return(0,pe.isNull)(o)||(0,pe.isNull)(i)?null:(0,c.jsx)(ws,{address1:o,address2:i,addressType:r,formId:e,onChange:(e,t)=>{s({...n,[e]:t})}},t.key)}if("address_2"===t.key)return null;if("country"===t.key&&"country"in n){const e="shipping"===r?os:ss;return(0,c.jsx)(e,{...i,value:n.country,onChange:e=>{s({...n,country:e,state:"",postcode:""})}},t.key)}if("state"===t.key&&"state"in n&&"country"in n){const e="shipping"===r?is:ns;return(0,c.jsx)(e,{...i,country:n.country,value:n.state,onChange:e=>s({...n,state:e})},t.key)}return"select"===t.type&&"options"in t?void 0===t.options?null:(0,c.jsx)(es,{...i,label:i.label||"",className:(0,o.A)("wc-block-components-select-input",`wc-block-components-select-input-${t.key}`.replaceAll("/","-")),value:t.key in n?n[t.key]:"",onChange:e=>{s({...n,[t.key]:e})},options:t.options,required:t.required,errorMessage:i.errorMessage||void 0},t.key):(0,c.jsx)(zt.ValidatedTextInput,{ref:e=>v.current[t.key]=e,...i,type:t.type,ariaDescribedBy:l,value:(0,_e.decodeEntities)(n[t.key])??"",onChange:e=>s({...n,[t.key]:e}),customFormatter:e=>"postcode"===t.key?e.trimStart().toUpperCase():e},t.key)}),i]})},Ns=Es;s(1121);const As=({isEditing:e=!1,addressCard:t,addressForm:s,shouldAnimate:r=!1})=>{const n=(0,o.A)("wc-block-components-address-address-wrapper",{"is-editing":e,"is-animated":r});return(0,c.jsxs)("div",{className:n,children:[(0,c.jsx)("div",{className:"wc-block-components-address-card-wrapper",children:t}),(0,c.jsx)("div",{className:"wc-block-components-address-form-wrapper",children:s})]})},Is=e=>(0,pe.isObject)(O[e.country])&&(0,pe.isString)(O[e.country][e.state])?(0,_e.decodeEntities)(O[e.country][e.state]):e.state,Rs=e=>(0,pe.isString)(D[e.country])?(0,_e.decodeEntities)(D[e.country]):e.country;s(8796);const Ts=({address:e,onEdit:t,target:s,isExpanded:r})=>{const{name:n,address:i}=(e=>{const t=(0,x.getSetting)("countryData",{});let s=(0,x.getSetting)("defaultAddressFormat","{name}\n{company}\n{address_1}\n{address_2}\n{city}\n{state}\n{postcode}\n{country}");return(0,pe.objectHasProp)(t,e?.country)&&(0,pe.objectHasProp)(t[e.country],"format")&&(0,pe.isString)(t[e.country].format)&&(s=t[e.country].format),((e,t)=>{const s=(e=>["{name}","{name_upper}","{first_name} {last_name}","{last_name} {first_name}","{first_name_upper} {last_name_upper}","{last_name_upper} {first_name_upper}","{first_name} {last_name_upper}","{first_name_upper} {last_name}","{last_name} {first_name_upper}","{last_name_upper} {first_name}"].find(t=>e.indexOf(t)>=0)||"")(t),o=t.replace(`${s}\n`,""),r=[["{company}",e?.company||""],["{address_1}",e?.address_1||""],["{address_2}",e?.address_2||""],["{city}",e?.city||""],["{state}",Is(e)],["{postcode}",e?.postcode||""],["{country}",Rs(e)],["{company_upper}",(e?.company||"").toUpperCase()],["{address_1_upper}",(e?.address_1||"").toUpperCase()],["{address_2_upper}",(e?.address_2||"").toUpperCase()],["{city_upper}",(e?.city||"").toUpperCase()],["{state_upper}",Is(e).toUpperCase()],["{state_code}",e?.state||""],["{postcode_upper}",(e?.postcode||"").toUpperCase()],["{country_upper}",Rs(e).toUpperCase()]],c=[["{name}",e?.first_name+(e?.first_name&&e?.last_name?" ":"")+e?.last_name],["{name_upper}",(e?.first_name+(e?.first_name&&e?.last_name?" ":"")+e?.last_name).toUpperCase()],["{first_name}",e?.first_name||""],["{last_name}",e?.last_name||""],["{first_name_upper}",(e?.first_name||"").toUpperCase()],["{last_name_upper}",(e?.last_name||"").toUpperCase()]];let n=s;c.forEach(([e,t])=>{n=n.replace(e,t)});let i=o;r.forEach(([e,t])=>{i=i.replace(e,t)});const a=i.trim().replace(/\n{2,}/g,"\n").split("\n").map(e=>e.split(", ").map(e=>e.trim()).filter(Boolean).join(", ")).filter(e=>e.length>0);return{name:n,address:a}})(e,s)})(e),a="shipping"===s?(0,f.__)("Edit shipping address","woocommerce"):(0,f.__)("Edit billing address","woocommerce"),l=(0,d.useMemo)(()=>[...i,e.phone].filter(e=>!!e).map(e=>(0,_e.decodeEntities)(e)).join(", "),[i,e.phone]);return(0,c.jsxs)("div",{className:"wc-block-components-address-card",children:[(0,c.jsxs)("address",{children:[(0,c.jsx)("span",{className:(0,o.A)("wc-block-components-address-card__address-section","wc-block-components-address-card__address-section--primary"),children:(0,_e.decodeEntities)(n)}),(0,c.jsx)("span",{className:(0,o.A)("wc-block-components-address-card__address-section","wc-block-components-address-card__address-section--secondary"),children:l})]}),t&&(0,c.jsx)(as.$,{render:(0,c.jsx)("span",{}),className:"wc-block-components-address-card__edit","aria-controls":s,"aria-expanded":r,"aria-label":a,onClick:e=>{e.preventDefault(),t()},type:"button",children:(0,f.__)("Edit","woocommerce")})]})},Ms=()=>{const{shippingAddress:e,setShippingAddress:t,setBillingAddress:s,useShippingAsBilling:o,editingShippingAddress:r,setEditingShippingAddress:n}=mt(),{dispatchCheckoutEvent:i}=qe(),[a,l]=(0,d.useState)(!1),{isInitialized:p}=pt(),{validationErrors:m}=(0,_.useSelect)(e=>({validationErrors:e(X.validationStore).getValidationErrors()}),[e]);(0,d.useEffect)(()=>{const t=Object.keys(e).some(e=>void 0!==m[`shipping_${e}`]);p&&t&&!1===r&&n(!0)},[r,e,p,m]);const u=(0,d.useCallback)(e=>{t(e),o&&(s(e),i("set-billing-address")),i("set-shipping-address")},[i,s,t,o]),h=(0,d.useCallback)(()=>{l(!0),n(!0)},[n]);return(0,c.jsx)(As,{isEditing:r,shouldAnimate:a,addressCard:(0,c.jsx)(Ts,{address:e,target:"shipping",onEdit:h,isExpanded:r}),addressForm:(0,c.jsx)(Ns,{id:"shipping",addressType:"shipping",onChange:u,values:e,fields:V,isEditing:r})})},Bs=()=>{const{defaultFields:e,setBillingAddress:t,shippingAddress:s,billingAddress:o,useShippingAsBilling:r,setUseShippingAsBilling:n,setEditingBillingAddress:i}=mt(),{isEditor:a}=b(),l=0===(0,x.getSetting)("currentUserId"),p=()=>{const r={...s};e?.phone?.hidden&&delete r.phone,e?.company?.hidden&&delete r.company,(Object.keys(r).length!==Object.keys(o).length||!Object.keys(r).every(e=>r[e]===o[e]))&&t(r)};(0,Yt.Su)(()=>{r&&p()});const m=a?Zt:d.Fragment,u=r?[me.SHIPPING_ADDRESS,me.BILLING_ADDRESS]:[me.SHIPPING_ADDRESS];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(zt.StoreNoticesContainer,{context:u}),(0,c.jsx)(m,{children:(0,c.jsx)(Ms,{})}),(0,c.jsx)(zt.CheckboxControl,{className:"wc-block-checkout__use-address-for-billing",label:(0,f.__)("Use same address for billing","woocommerce"),checked:r,onChange:e=>{n(e),e?p():(i(!0),(e=>{if(!e||!l)return;const s=(e=>{const t=be(V,x.defaultFields,e.country),s=Object.assign({},e);return t.forEach(({key:t})=>{"country"!==t&&"state"!==t&&ye(t,e)&&(s[t]="")}),s})(e);t(s)})(o))}})]})},Ds=({defaultTitle:e=(0,f.__)("Step","woocommerce"),defaultDescription:t=(0,f.__)("Step description text.","woocommerce"),defaultShowStepNumber:s=!0})=>({title:{type:"string",default:e},description:{type:"string",default:t},showStepNumber:{type:"boolean",default:s}}),Os={...Ds({defaultTitle:(0,f.__)("Shipping address","woocommerce"),defaultDescription:(0,f.__)("","woocommerce")}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},Ls=JSON.parse('{"DD":"Shipping Address","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-shipping-address-block",{apiVersion:Ls.XV,title:Ls.DD,icon:{src:(0,c.jsx)(i.A,{icon:$t.A,className:"wc-block-editor-components-block-icon"})},attributes:Os,edit:({attributes:e,setAttributes:t})=>{const{showShippingFields:s}=mt();return s?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Lt,{}),(0,c.jsxs)(qt,{setAttributes:t,attributes:e,className:(0,o.A)("wc-block-checkout__shipping-fields",e?.className),children:[(0,c.jsx)(Bs,{}),(0,c.jsx)(Wt,{block:Ct.innerBlockAreas.SHIPPING_ADDRESS})]})]}):null},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(Xt,{})})});var Fs=s(7231);s(6223);const Vs=P?`<a href="${P}" target="_blank">${(0,f.__)("Terms and Conditions","woocommerce")}</a>`:(0,f.__)("Terms and Conditions","woocommerce"),Hs=C?`<a href="${C}" target="_blank">${(0,f.__)("Privacy Policy","woocommerce")}</a>`:(0,f.__)("Privacy Policy","woocommerce"),$s=(0,f.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */
(0,f.__)("By proceeding with your purchase you agree to our %1$s and %2$s","woocommerce"),Vs,Hs),zs=(0,f.sprintf)(/* translators: %1$s terms page link, %2$s privacy page link. */ /* translators: %1$s terms page link, %2$s privacy page link. */
(0,f.__)("You must accept our %1$s and %2$s to continue with your purchase.","woocommerce"),Vs,Hs),Us=()=>{},qs=JSON.parse('{"DD":"Terms and Conditions","XV":3}');s(5763),(0,a.registerBlockType)("woocommerce/checkout-terms-block",{apiVersion:qs.XV,title:qs.DD,icon:{src:(0,c.jsx)(i.A,{icon:Fs.A,className:"wc-block-editor-components-block-icon"})},edit:({attributes:{checkbox:e,text:t,showSeparator:s},setAttributes:r})=>{const n=(0,l.useBlockProps)(),i=t||(e?zs:$s);return(0,c.jsxs)("div",{...n,children:[(0,c.jsxs)(l.InspectorControls,{children:[(!P||!C)&&(0,c.jsxs)(Ot.Notice,{className:"wc-block-checkout__terms_notice",status:"warning",isDismissible:!1,children:[(0,f.__)("Link to your store's Terms and Conditions and Privacy Policy pages by creating pages for them.","woocommerce"),(0,c.jsx)("br",{}),!P&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("br",{}),(0,c.jsx)(Ot.ExternalLink,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=advanced`,children:(0,f.__)("Setup a Terms and Conditions page","woocommerce")})]}),!C&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("br",{}),(0,c.jsx)(Ot.ExternalLink,{href:`${x.ADMIN_URL}options-privacy.php`,children:(0,f.__)("Setup a Privacy Policy page","woocommerce")})]})]}),P&&C&&!(i.includes(P)&&i.includes(C))&&(0,c.jsx)(Ot.Notice,{className:"wc-block-checkout__terms_notice",status:"warning",isDismissible:!1,actions:$s!==t?[{label:(0,f.__)("Restore default text","woocommerce"),onClick:()=>r({text:""})}]:[],children:(0,c.jsx)("p",{children:(0,f.__)("Ensure you add links to your policy pages in this section.","woocommerce")})}),(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Display options","woocommerce"),children:[(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Require checkbox","woocommerce"),checked:e,onChange:()=>r({checkbox:!e})}),(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Show separator","woocommerce"),checked:s,onChange:()=>r({showSeparator:!s})})]})]}),(0,c.jsx)("div",{className:(0,o.A)("wc-block-checkout__terms",{"wc-block-checkout__terms--with-separator":s}),children:e?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"wc-block-checkout__terms-checkbox-wrapper",children:(0,c.jsx)(zt.CheckboxControl,{id:"terms-condition",checked:!1,onChange:Us})}),(0,c.jsx)(l.RichText,{value:i,onChange:e=>r({text:e})})]}):(0,c.jsx)(l.RichText,{tagName:"span",value:i,onChange:e=>r({text:e})})})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});var Ws=s(2314),Xs=s(3558);s(6713);const Ys=[(0,f.__)("Too weak","woocommerce"),(0,f.__)("Weak","woocommerce"),(0,f.__)("Medium","woocommerce"),(0,f.__)("Strong","woocommerce"),(0,f.__)("Very strong","woocommerce")],Gs=({password:e="",onChange:t})=>{const s=(0,p.useInstanceId)(Gs,"woocommerce-password-strength-meter");let r=-1;e.length>0&&(r=(e=>void 0===window.zxcvbn?(0,Xs.Bi)(e,[{id:0,value:Ys[0],minDiversity:0,minLength:0},{id:1,value:Ys[1],minDiversity:1,minLength:4},{id:2,value:Ys[2],minDiversity:2,minLength:8},{id:3,value:Ys[3],minDiversity:4,minLength:12},{id:4,value:Ys[4],minDiversity:4,minLength:20}]).id:window.zxcvbn(e).score)(e));const n=Qe(r);return(0,d.useEffect)(()=>{r!==n&&t&&t(r)},[r,n,t]),(0,c.jsxs)("div",{id:s,className:(0,o.A)("wc-block-components-password-strength",{hidden:-1===r}),children:[(0,c.jsx)("label",{htmlFor:s+"-meter",className:"screen-reader-text",children:(0,f.__)("Password strength","woocommerce")}),(0,c.jsx)("meter",{id:s+"-meter",className:"wc-block-components-password-strength__meter",min:0,max:4,value:r>-1?r:0,children:Ys[r]??""}),!!Ys[r]&&(0,c.jsxs)("div",{id:s+"-result",className:"wc-block-components-password-strength__result",children:[(0,c.jsx)("span",{className:"screen-reader-text","aria-live":"polite",children:(0,f.sprintf)(/* translators: %s: Password strength */ /* translators: %s: Password strength */
(0,f.__)("Password strength: %1$s (%2$d characters long)","woocommerce"),Ys[r],e.length)})," ",(0,c.jsx)("span",{"aria-hidden":!0,children:Ys[r]})]})]})},Js=Gs,Ks=()=>{const[e,t]=(0,d.useState)(0),{customerPassword:s}=(0,_.useSelect)(e=>({customerPassword:e(X.checkoutStore).getCustomerPassword()}),[]),{__internalSetCustomerPassword:o}=(0,_.useDispatch)(X.checkoutStore),{setValidationErrors:r,clearValidationError:n}=(0,_.useDispatch)(X.validationStore);return(0,d.useEffect)(()=>{s&&(e<2?r({"account-password":{message:(0,f.__)("Please create a stronger password","woocommerce"),hidden:!0}}):n("account-password"))},[n,s,e,r]),(0,c.jsx)(zt.ValidatedTextInput,{type:"password",label:(0,f.__)("Create a password","woocommerce"),className:"wc-block-components-address-form__password",value:s,required:!0,errorId:"account-password",onChange:e=>{o(e),e||r({"account-password":{message:(0,f.__)("Please enter a valid password","woocommerce"),hidden:!0}})},feedback:(0,c.jsx)(Js,{password:s,onChange:e=>t(e)})})},Zs="wc-guest-checkout-notice",Qs=()=>{const{shouldCreateAccount:e}=(0,_.useSelect)(e=>({shouldCreateAccount:e(X.checkoutStore).getShouldCreateAccount()})),{__internalSetShouldCreateAccount:t,__internalSetCustomerPassword:s}=(0,_.useDispatch)(X.checkoutStore),o=(0,x.getSetting)("checkoutAllowsGuest",!1),r=(0,x.getSetting)("checkoutAllowsSignup",!1),n=o&&r,i=!(0,x.getSetting)("generatePassword",!1)&&(n&&e||!o);return o||n||i?(0,c.jsxs)(c.Fragment,{children:[o&&(0,c.jsx)("p",{id:Zs,className:"wc-block-checkout__guest-checkout-notice",children:(0,f.__)("You are currently checking out as a guest.","woocommerce")}),n&&(0,c.jsx)(zt.CheckboxControl,{className:"wc-block-checkout__create-account",label:(0,f.sprintf)(/* translators: Store name */ /* translators: Store name */
(0,f.__)("Create an account with %s","woocommerce"),(0,x.getSetting)("siteTitle","")),checked:e,onChange:e=>{t(e),s("")}}),i&&(0,c.jsx)(Ks,{})]}):null},eo=()=>{const{additionalFields:e,customerId:t}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore);return{additionalFields:t.getAdditionalFields(),customerId:t.getCustomerId()}}),{setAdditionalFields:s}=(0,_.useDispatch)(X.checkoutStore),{billingAddress:o,setEmail:r}=mt(),{dispatchCheckoutEvent:n}=qe(),i={email:o.email,...e};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(zt.StoreNoticesContainer,{context:me.CONTACT_INFORMATION}),(0,c.jsx)(Ns,{id:"contact",addressType:"contact",ariaDescribedBy:Zs,onChange:e=>{const{email:t,...o}=e;r(t),n("set-email-address"),s(o)},values:i,fields:H,children:!t&&(0,c.jsx)(Qs,{})})]})},to={...Ds({defaultTitle:(0,f.__)("Contact information","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{remove:!0,move:!0}}},so=JSON.parse('{"DD":"Contact Information","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-contact-information-block",{apiVersion:so.XV,title:so.DD,icon:{src:(0,c.jsx)(i.A,{icon:Ws.A,className:"wc-block-editor-components-block-icon"})},attributes:to,edit:({attributes:e,setAttributes:t})=>(0,c.jsxs)(qt,{attributes:e,setAttributes:t,className:(0,o.A)("wc-block-checkout__contact-fields",e?.className),children:[(0,c.jsx)(l.InspectorControls,{children:(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Account creation and guest checkout","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("Account creation and guest checkout settings can be managed in your store settings.","woocommerce")}),(0,c.jsx)(Ot.ExternalLink,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=account`,children:(0,f.__)("Manage account settings","woocommerce")})]})}),(0,c.jsx)(Zt,{children:(0,c.jsx)(eo,{})}),(0,c.jsx)(Wt,{block:Ct.innerBlockAreas.CONTACT_INFORMATION})]}),save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(Xt,{})})});const oo=()=>{const{billingAddress:e,setShippingAddress:t,setBillingAddress:s,useBillingAsShipping:o,editingBillingAddress:r,setEditingBillingAddress:n}=mt(),{dispatchCheckoutEvent:i}=qe(),{isInitialized:a}=pt(),{validationErrors:l}=(0,_.useSelect)(e=>({validationErrors:e(X.validationStore).getValidationErrors()}),[e]);(0,d.useEffect)(()=>{const t=Object.keys(e).some(e=>void 0!==l[`billing_${e}`]);a&&t&&!1===r&&n(!0)},[r,e,a,l]);const p=(0,d.useCallback)(e=>{s(e),o&&(t(e),i("set-shipping-address")),i("set-billing-address")},[i,s,t,o]);return(0,c.jsx)(As,{isEditing:r,addressCard:(0,c.jsx)(Ts,{address:e,target:"billing",onEdit:()=>{n(!0)},isExpanded:r}),addressForm:(0,c.jsx)(Ns,{id:"billing",addressType:"billing",onChange:p,values:e,fields:V,isEditing:r})})},ro=()=>{const{defaultFields:e,billingAddress:t,setShippingAddress:s,useBillingAsShipping:o}=mt(),{isEditor:r}=b();(0,Yt.Su)(()=>{if(o){const{email:o,...r}=t,c={...r};e?.phone?.hidden&&delete c.phone,e?.company?.hidden&&delete c.company,s(c)}});const n=r?Zt:d.Fragment,i=o?[me.BILLING_ADDRESS,me.SHIPPING_ADDRESS]:[me.BILLING_ADDRESS];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(zt.StoreNoticesContainer,{context:i}),(0,c.jsx)(n,{children:(0,c.jsx)(oo,{})})]})},co=(0,f.__)("Billing address","woocommerce"),no=(0,f.__)("","woocommerce"),io=(0,f.__)("Billing and shipping address","woocommerce"),ao=(0,f.__)("Enter the billing and shipping address that matches your payment method.","woocommerce"),lo={...Ds({defaultTitle:co,defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},po=JSON.parse('{"DD":"Billing Address","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-billing-address-block",{apiVersion:po.XV,title:po.DD,icon:{src:(0,c.jsx)(i.A,{icon:$t.A,className:"wc-block-editor-components-block-icon"})},attributes:lo,edit:({attributes:e,setAttributes:t})=>{const{showBillingFields:s,forcedBillingAddress:r,useBillingAsShipping:n}=mt();return s||n?(e.title=((e,t)=>t?e===co?io:e:e===io?co:e)(e.title,r),e.description=((e,t)=>t?e===no?ao:e:e===ao?no:e)(e.description,r),(0,c.jsxs)(qt,{setAttributes:t,attributes:e,className:(0,o.A)("wc-block-checkout__billing-fields",e?.className),children:[(0,c.jsx)(Lt,{}),(0,c.jsx)(ro,{}),(0,c.jsx)(Wt,{block:Ct.innerBlockAreas.BILLING_ADDRESS})]})):null},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(Xt,{})})});var mo=s(5764);const uo=(0,f.__)("Place Order","woocommerce"),ho=(0,f.__)("Return to Cart","woocommerce"),go={placeOrderButtonLabel:{type:"string",default:uo},returnToCartButtonLabel:{type:"string",default:ho}},_o=(e,t)=>{if(!e.title.raw)return e.slug;const s=1===t.filter(t=>t.title.raw===e.title.raw).length;return e.title.raw+(s?"":` - ${e.slug}`)},ko=({setPageId:e,pageId:t,labels:s})=>{const o=(0,_.useSelect)(e=>e("core").getEntityRecords("postType","page",{status:"publish",orderby:"title",order:"asc",per_page:100}),[])||null;return o?(0,c.jsx)(Ot.__experimentalToolsPanel,{label:s.title,resetAll:()=>e(0),children:(0,c.jsx)(Ot.__experimentalToolsPanelItem,{label:(0,f.__)("Link to","woocommerce"),hasValue:()=>"number"==typeof t&&0!==t,onDeselect:()=>e(0),isShownByDefault:!0,children:(0,c.jsx)(Ot.SelectControl,{label:(0,f.__)("Link to","woocommerce"),value:t,options:[{label:s.default,value:0},...o.map(e=>({label:_o(e,o),value:parseInt(e.id,10)}))],onChange:t=>e(parseInt(t,10))})})}):null};var bo=s(6101);s(2840);const wo=({href:e,children:t,element:s="a"})=>{const o=e||N;if(!o)return null;const r=s;return(0,c.jsxs)(r,{..."a"===s?{href:o}:{},className:"wc-block-components-checkout-return-to-cart-button",children:[(0,c.jsx)(i.A,{icon:bo.A}),t]})},yo=(e=!1)=>{const{paymentMethodsInitialized:t,expressPaymentMethodsInitialized:s,availablePaymentMethods:o,availableExpressPaymentMethods:r}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),availablePaymentMethods:t.getAvailablePaymentMethods()}}),c=Object.values(o).map(({name:e})=>e),n=Object.values(r).map(({name:e})=>e),i=(0,st.getPaymentMethods)(),a=(0,st.getExpressPaymentMethods)(),l=Object.keys(i).reduce((e,t)=>(c.includes(t)&&(e[t]=i[t]),e),{}),d=Object.keys(a).reduce((e,t)=>(n.includes(t)&&(e[t]=a[t]),e),{}),p=dt(l),m=dt(d);return{paymentMethods:e?m:p,isInitialized:e?s:t}},xo=()=>yo(!0),fo=window.wc.priceFormat,vo=(0,c.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,c.jsx)("path",{d:"M0 0h24v24H0z"}),(0,c.jsx)("path",{fill:"#000",fillRule:"nonzero",d:"M17.3 8v1c1 .2 1.4.9 1.4 1.7h-1c0-.6-.3-1-1-1-.8 0-1.3.4-1.3.9 0 .4.3.6 1.4 1 1 .2 2 .6 2 1.9 0 .9-.6 1.4-1.5 1.5v1H16v-1c-.9-.1-1.6-.7-1.7-1.7h1c0 .6.4 1 1.3 1 1 0 1.2-.5 1.2-.8 0-.4-.2-.8-1.3-1.1-1.3-.3-2.1-.8-2.1-1.8 0-.9.7-1.5 1.6-1.6V8h1.3zM12 10v1H6v-1h6zm2-2v1H6V8h8zM2 4v16h20V4H2zm2 14V6h16v12H4z"}),(0,c.jsx)("path",{stroke:"#000",strokeLinecap:"round",d:"M6 16c2.6 0 3.9-3 1.7-3-2 0-1 3 1.5 3 1 0 1-.8 2.8-.8"})]})});var So=s(9696),jo=s(4718),Co=s(4200);s(9287);const Po={bank:So.A,bill:jo.A,card:Co.A,checkPayment:vo},Eo=({icon:e="",text:t=""})=>{const s=!!e,r=(0,d.useCallback)(e=>s&&(0,pe.isString)(e)&&(0,pe.objectHasProp)(Po,e),[s]),n=(0,o.A)("wc-block-components-payment-method-label",{"wc-block-components-payment-method-label--with-icon":s});return(0,c.jsxs)("span",{className:n,children:[r(e)?(0,c.jsx)(i.A,{icon:Po[e]}):e,t]})},No=e=>`wc-block-components-payment-method-icon wc-block-components-payment-method-icon--${e}`,Ao=({id:e,src:t=null,alt:s=""})=>t?(0,c.jsx)("img",{className:No(e),src:t,alt:s}):null,Io=[{id:"alipay",alt:"Alipay",src:S+"payment-methods/alipay.svg"},{id:"amex",alt:"American Express",src:S+"payment-methods/amex.svg"},{id:"bancontact",alt:"Bancontact",src:S+"payment-methods/bancontact.svg"},{id:"diners",alt:"Diners Club",src:S+"payment-methods/diners.svg"},{id:"discover",alt:"Discover",src:S+"payment-methods/discover.svg"},{id:"eps",alt:"EPS",src:S+"payment-methods/eps.svg"},{id:"giropay",alt:"Giropay",src:S+"payment-methods/giropay.svg"},{id:"ideal",alt:"iDeal",src:S+"payment-methods/ideal.svg"},{id:"jcb",alt:"JCB",src:S+"payment-methods/jcb.svg"},{id:"laser",alt:"Laser",src:S+"payment-methods/laser.svg"},{id:"maestro",alt:"Maestro",src:S+"payment-methods/maestro.svg"},{id:"mastercard",alt:"Mastercard",src:S+"payment-methods/mastercard.svg"},{id:"multibanco",alt:"Multibanco",src:S+"payment-methods/multibanco.svg"},{id:"p24",alt:"Przelewy24",src:S+"payment-methods/p24.svg"},{id:"sepa",alt:"Sepa",src:S+"payment-methods/sepa.svg"},{id:"sofort",alt:"Sofort",src:S+"payment-methods/sofort.svg"},{id:"unionpay",alt:"Union Pay",src:S+"payment-methods/unionpay.svg"},{id:"visa",alt:"Visa",src:S+"payment-methods/visa.svg"},{id:"wechat",alt:"WeChat",src:S+"payment-methods/wechat.svg"}];s(6983);const Ro=({icons:e=[],align:t="center",className:s})=>{const r=(e=>{const t={};return e.forEach(e=>{let s={};"string"==typeof e&&(s={id:e,alt:e,src:null}),"object"==typeof e&&(s={id:e.id||"",alt:e.alt||"",src:e.src||null}),s.id&&(0,pe.isString)(s.id)&&!t[s.id]&&(t[s.id]=s)}),Object.values(t)})(e);if(0===r.length)return null;const n=(0,o.A)("wc-block-components-payment-method-icons",{"wc-block-components-payment-method-icons--align-left":"left"===t,"wc-block-components-payment-method-icons--align-right":"right"===t},s);return(0,c.jsx)("div",{className:n,children:r.map(e=>{const t={...e,...(s=e.id,Io.find(e=>e.id===s)||{})};var s;return(0,c.jsx)(Ao,{...t},"payment-method-icon-"+e.id)})})};s(9961);const To=({children:e,className:t,screenReaderLabel:s,showSpinner:r=!1,isLoading:n=!0})=>(0,c.jsxs)("div",{className:(0,o.A)(t,{"wc-block-components-loading-mask":n}),children:[n&&r&&(0,c.jsx)(zt.Spinner,{}),(0,c.jsx)("div",{className:(0,o.A)({"wc-block-components-loading-mask__children":n}),"aria-hidden":n,children:e}),n&&(0,c.jsx)("span",{className:"screen-reader-text",children:s||(0,f.__)("Loading…","woocommerce")})]});s(2405);const Mo=({tag:e="div",width:t="100%",height:s="8px",maxWidth:r="",className:n="",borderRadius:i="",isStatic:a=!1,ariaMessage:l})=>(0,c.jsx)(e,{className:(0,o.A)("wc-block-components-skeleton__element",{"wc-block-components-skeleton__element--static":a},n),...l?{"aria-live":"polite","aria-label":l}:{"aria-hidden":"true"},style:{width:t,height:s,borderRadius:i,maxWidth:r}}),Bo=(e="")=>{const{cartCoupons:t,cartIsLoading:s}=Me(),{applyCoupon:o,removeCoupon:r}=(0,_.useDispatch)(X.cartStore),{isApplyingCoupon:c,isRemovingCoupon:n,orderId:i}=(0,_.useSelect)(e=>({isApplyingCoupon:e(X.cartStore).isApplyingCoupon(),isRemovingCoupon:e(X.cartStore).isRemovingCoupon(),orderId:e(X.checkoutStore).getOrderId()}),[]),a=(0,d.useCallback)(e=>i&&i>0&&e?.data?.details?.checkout?e.data.details.checkout:e?.data?.details?.cart?e.data.details.cart:e.message,[i]);return{appliedCoupons:t,isLoading:s,applyCoupon:(0,d.useCallback)(t=>o(t).then(()=>((0,Ct.applyCheckoutFilter)({filterName:"showApplyCouponNotice",defaultValue:!0,arg:{couponCode:t,context:e}})&&(0,_.dispatch)("core/notices").createNotice("info",(0,f.sprintf)(/* translators: %s coupon code. */ /* translators: %s coupon code. */
(0,f.__)('Coupon code "%s" has been applied to your cart.',"woocommerce"),t),{id:"coupon-form",type:"snackbar",context:e}),Promise.resolve(!0))).catch(e=>{const t=a(e);return(0,_.dispatch)(X.validationStore).setValidationErrors({coupon:{message:(0,_e.decodeEntities)(t),hidden:!1}}),Promise.resolve(!1)}),[o,a,e]),removeCoupon:(0,d.useCallback)(t=>r(t).then(()=>((0,Ct.applyCheckoutFilter)({filterName:"showRemoveCouponNotice",defaultValue:!0,arg:{couponCode:t,context:e}})&&(0,_.dispatch)("core/notices").createNotice("info",(0,f.sprintf)(/* translators: %s coupon code. */ /* translators: %s coupon code. */
(0,f.__)('Coupon code "%s" has been removed from your cart.',"woocommerce"),(0,_e.decodeEntities)(t)),{id:"coupon-form",type:"snackbar",context:e}),Promise.resolve(!0))).catch(t=>((0,_.dispatch)("core/notices").createErrorNotice(t.message,{id:"coupon-form",type:"snackbar",context:e}),Promise.resolve(!1))),[r,e]),isApplyingCoupon:c,isRemovingCoupon:n}},Do=(e,t)=>{const s=[],o=(t,s)=>{const o=s+"_tax",r=(0,pe.objectHasProp)(e,s)&&(0,pe.isString)(e[s])?parseInt(e[s],10):0;return{key:s,label:t,value:r,valueWithTax:r+((0,pe.objectHasProp)(e,o)&&(0,pe.isString)(e[o])?parseInt(e[o],10):0)}};return s.push(o((0,f.__)("Subtotal:","woocommerce"),"total_items")),s.push(o((0,f.__)("Fees:","woocommerce"),"total_fees")),s.push(o((0,f.__)("Discount:","woocommerce"),"total_discount")),s.push({key:"total_tax",label:(0,f.__)("Taxes:","woocommerce"),value:parseInt(e.total_tax,10),valueWithTax:parseInt(e.total_tax,10)}),t&&s.push(o((0,f.__)("Shipping:","woocommerce"),"total_shipping")),s},Oo=()=>{const{onCheckoutBeforeProcessing:e,onCheckoutValidationBeforeProcessing:t,onCheckoutAfterProcessingWithSuccess:s,onCheckoutAfterProcessingWithError:o,onSubmit:r}=rt(),{onCheckoutValidation:c,onCheckoutSuccess:n,onCheckoutFail:i}=tt.checkoutEvents,{isCalculating:a,isComplete:l,isIdle:p,isProcessing:m,customerId:u}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore);return{isComplete:t.isComplete(),isIdle:t.isIdle(),isProcessing:t.isProcessing(),customerId:t.getCustomerId(),isCalculating:t.isCalculating()}},[]),{paymentIsIdle:h,paymentIsStarted:g,paymentIsProcessing:k,paymentHasError:b,paymentIsReady:w,paymentIsDoingExpressPayment:y,activePaymentMethod:v,shouldSavePayment:S}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{paymentIsIdle:t.isPaymentIdle(),paymentIsStarted:t.isExpressPaymentStarted(),paymentIsProcessing:t.isPaymentProcessing(),paymentHasError:t.hasPaymentError(),paymentIsReady:t.isPaymentReady(),paymentIsDoingExpressPayment:t.isExpressPaymentMethodActive(),activePaymentMethod:t.getActivePaymentMethod(),shouldSavePayment:t.getShouldSavePaymentMethod()}},[]),j={isIdle:h,isStarted:g,isProcessing:k,hasError:b,isReady:w,isDoingExpressPayment:y,get isPristine(){return G()("isPristine",{since:"9.6.0",alternative:"isIdle",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),h},get isFinished(){return G()("isFinished",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),b||w},get hasFailed(){return G()("hasFailed",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),b},get isSuccessful(){return G()("isSuccessful",{since:"9.6.0",plugin:"WooCommerce Blocks",link:"https://github.com/woocommerce/woocommerce-blocks/pull/8110"}),w}},{__internalSetExpressPaymentError:C}=(0,_.useDispatch)(X.paymentStore),{onPaymentProcessing:P,onPaymentSetup:E}=(0,d.useContext)(ee),{shippingErrorStatus:N,shippingErrorTypes:A,onShippingRateSuccess:I,onShippingRateFail:R,onShippingRateSelectSuccess:T,onShippingRateSelectFail:M}=Ke(),{shippingRates:B,isLoadingRates:D,selectedRates:O,isSelectingRate:L,selectShippingRate:F,needsShipping:V}=We(),{billingAddress:H,shippingAddress:$}=(0,_.useSelect)(e=>e(X.cartStore).getCustomerData(),[]),{setShippingAddress:z}=(0,_.useDispatch)(X.cartStore),{cartItems:U,cartFees:q,cartTotals:W,extensions:Y}=Me(),{appliedCoupons:J}=Bo(),K=(0,d.useRef)(Do(W,V)),Z=(0,d.useRef)({label:(0,f.__)("Total","woocommerce"),value:parseInt(W.total_price,10)});(0,d.useEffect)(()=>{K.current=Do(W,V),Z.current={label:(0,f.__)("Total","woocommerce"),value:parseInt(W.total_price,10)}},[W,V]);const Q=(0,d.useCallback)((e="")=>{G()("setExpressPaymentError should only be used by Express Payment Methods (using the provided onError handler).",{alternative:"",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4228"}),C(e)},[C]);return{activePaymentMethod:v,billing:{appliedCoupons:J,billingAddress:H,billingData:H,cartTotal:Z.current,cartTotalItems:K.current,currency:(0,fo.getCurrencyFromPriceResponse)(W),customerId:u,displayPricesIncludingTax:(0,x.getSetting)("displayCartPricesIncludingTax",!1)},cartData:{cartItems:U,cartFees:q,extensions:Y},checkoutStatus:{isCalculating:a,isComplete:l,isIdle:p,isProcessing:m},components:{LoadingMask:To,PaymentMethodIcons:Ro,PaymentMethodLabel:Eo,Skeleton:Mo,ValidationInputError:zt.ValidationInputError},emitResponse:{noticeContexts:me,responseTypes:pe.responseTypes},eventRegistration:{onCheckoutAfterProcessingWithError:o,onCheckoutAfterProcessingWithSuccess:s,onCheckoutBeforeProcessing:e,onCheckoutValidationBeforeProcessing:t,onCheckoutSuccess:n,onCheckoutFail:i,onCheckoutValidation:c,onPaymentProcessing:P,onPaymentSetup:E,onShippingRateFail:R,onShippingRateSelectFail:M,onShippingRateSelectSuccess:T,onShippingRateSuccess:I},onSubmit:r,paymentStatus:j,setExpressPaymentError:Q,shippingData:{isSelectingRate:L,needsShipping:V,selectedRates:O,setSelectedRates:F,setShippingAddress:z,shippingAddress:$,shippingRates:B,shippingRatesLoading:D},shippingStatus:{shippingErrorStatus:N,shippingErrorTypes:A},shouldSavePayment:S}};s(6882);const Lo=(0,d.forwardRef)((e,t)=>{const{className:s,children:r,variant:n="contained",removeTextWrap:i=!1,...a}=e,l=(0,o.A)("wc-block-components-button","wp-element-button",s,n);if("href"in e)return(0,c.jsx)(as.$,{render:(0,c.jsx)("a",{ref:t,href:e.href,children:(0,c.jsx)("div",{className:"wc-block-components-button__text",children:r})}),className:l,...a});const d=i?e.children:(0,c.jsx)("div",{className:"wc-block-components-button__text",children:e.children});return(0,c.jsx)(as.$,{ref:t,className:l,...a,children:d})});s(3793);const Fo=({label:e,fullWidth:t=!1,showPrice:s=!1,priceSeparator:r="·",CustomButtonComponent:n})=>{const{onSubmit:i,isCalculating:a,isDisabled:l,waitingForProcessing:d,waitingForRedirect:p}=(()=>{const{isCalculating:e,isBeforeProcessing:t,isProcessing:s,isAfterProcessing:o,isComplete:r,hasError:c}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore);return{isCalculating:t.isCalculating(),isBeforeProcessing:t.isBeforeProcessing(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isComplete:t.isComplete(),hasError:t.hasError()}}),{activePaymentMethod:n,isExpressPaymentMethodActive:i}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive()}}),{onSubmit:a}=rt(),{paymentMethods:l={}}=yo(!1),d=l[n]||{},p=s||o||t,m=r&&!c;return{paymentMethodButtonLabel:d.placeOrderButtonLabel,paymentMethodPlaceOrderButton:d.placeOrderButton,onSubmit:a,isCalculating:e,isDisabled:s||i,waitingForProcessing:p,waitingForRedirect:m}})(),m=Oo(),u=(0,Ct.useValidateCheckout)(),{isEditor:h,isPreview:g=!1}=b(),{cartTotals:k,cartIsLoading:w}=Me();return n?(0,c.jsx)(n,{waitingForProcessing:d,waitingForRedirect:p,disabled:a||l||d||p||w,isEditor:h,isPreview:g,validate:u,...m}):(0,c.jsxs)(Lo,{className:(0,o.A)("wc-block-components-checkout-place-order-button",{"wc-block-components-checkout-place-order-button--full-width":t},{"wc-block-components-checkout-place-order-button--loading":d||p}),onClick:i,disabled:a||l||d||p||w,children:[d&&(0,c.jsx)(zt.Spinner,{}),p&&(0,c.jsx)("svg",{className:"wc-block-components-checkout-place-order-button__icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,c.jsx)("path",{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})}),(0,c.jsxs)("div",{className:"wc-block-components-checkout-place-order-button__text",children:[e,s&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("style",{children:`.wp-block-woocommerce-checkout-actions-block {\n\t\t\t\t\t\t\t.wc-block-components-checkout-place-order-button__separator {\n\t\t\t\t\t\t\t\t&::after {\n\t\t\t\t\t\t\t\t\tcontent: "${r}";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}`}),(0,c.jsx)("div",{className:"wc-block-components-checkout-place-order-button__separator"}),(0,c.jsx)("div",{className:"wc-block-components-checkout-place-order-button__price",children:(0,c.jsx)(zt.FormattedMonetaryAmount,{value:k.total_price,currency:(0,fo.getCurrencyFromPriceResponse)(k)})})]})]})]})},Vo=JSON.parse('{"DD":"Actions","uK":{"lock":{"type":"object","default":{"remove":true,"move":true}},"cartPageId":{"type":"number","default":0},"showReturnToCart":{"type":"boolean","default":false},"className":{"type":"string","default":""},"priceSeparator":{"type":"string","default":"·"}},"XV":3}');s(7883);const Ho={apiVersion:Vo.XV,title:Vo.DD,example:{attributes:{showPrice:!0,placeOrderButtonLabel:(0,f.__)("Place Order","woocommerce"),showReturnToCart:!1}},icon:{src:(0,c.jsx)(i.A,{icon:mo.A,className:"wc-block-editor-components-block-icon"})},attributes:{...go,...Vo.uK},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()}),edit:({attributes:e,setAttributes:t})=>{const s=(0,l.useBlockProps)(),{cartPageId:r=0,showReturnToCart:n=!1,placeOrderButtonLabel:i,returnToCartButtonLabel:a}=e,{current:p}=(0,d.useRef)(r),m=(0,_.useSelect)(e=>p||e("core/editor").getCurrentPostId(),[p]),u=s.className.includes("is-style-with-price");return(0,c.jsxs)("div",{...s,children:[(0,c.jsxs)(l.InspectorControls,{children:[(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Options","woocommerce"),children:[(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)('Show a "Return to Cart" link',"woocommerce"),help:(0,f.__)("Recommended to enable only if there is no Cart link in the header.","woocommerce"),checked:n,onChange:()=>t({showReturnToCart:!n})}),u&&(0,c.jsx)(Ot.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,f.__)("Price separator","woocommerce"),id:"price-separator",value:e.priceSeparator,onChange:e=>{t({priceSeparator:e})}})]}),n&&!(m===j&&0===p)&&(0,c.jsx)(ko,{pageId:r,setPageId:e=>t({cartPageId:e}),labels:{title:(0,f.__)("Return to Cart button","woocommerce"),default:(0,f.__)("WooCommerce Cart Page","woocommerce")}})]}),(0,c.jsx)("div",{className:"wc-block-checkout__actions",children:(0,c.jsxs)("div",{className:(0,o.A)("wc-block-checkout__actions_row",{"wc-block-checkout__actions_row--justify-flex-end":!n}),children:[n&&(0,c.jsx)(wo,{element:"span",children:(0,c.jsx)(l.RichText,{multiline:!1,allowedFormats:[],value:a,placeholder:ho,onChange:e=>{t({returnToCartButtonLabel:e})}})}),(0,c.jsx)(Fo,{label:(0,c.jsx)(l.RichText,{multiline:!1,allowedFormats:[],value:i,onChange:e=>{t({placeOrderButtonLabel:e})}}),fullWidth:!n,showPrice:u,priceSeparator:e.priceSeparator})]})})]})}};(0,a.registerBlockType)("woocommerce/checkout-actions-block",Ho);const $o=()=>{const{additionalFields:e}=(0,_.useSelect)(e=>({additionalFields:e(X.checkoutStore).getAdditionalFields()}),[]),{isEditor:t}=b(),{setAdditionalFields:s}=(0,_.useDispatch)(X.checkoutStore),o={...e},r=t?Zt:d.Fragment;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(zt.StoreNoticesContainer,{context:me.ORDER_INFORMATION}),(0,c.jsx)(r,{children:(0,c.jsx)(Ns,{id:"order",addressType:"order",onChange:e=>{s(e)},fields:$,values:o})})]})},zo={...Ds({defaultTitle:(0,f.__)("Additional order information","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!1,remove:!0}}},Uo=JSON.parse('{"DD":"Additional information","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-additional-information-block",{apiVersion:Uo.XV,title:Uo.DD,attributes:zo,icon:{src:(0,c.jsx)(i.A,{icon:Fs.A,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:t})=>{const{defaultFields:s}=mt(),r=vs($,s,"order");return 0===r.length||r.every(e=>!!e.hidden)?null:(0,c.jsx)(qt,{setAttributes:t,attributes:e,className:(0,o.A)("wc-block-checkout__additional-information-fields",e?.className),children:(0,c.jsx)($o,{})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});var qo=s(3243);s(6443);const Wo=({disabled:e,onChange:t,placeholder:s,value:o})=>{const[r,n]=(0,d.useState)(""!==o),[i,a]=(0,d.useState)("");return(0,c.jsxs)("div",{className:"wc-block-checkout__add-note",children:[(0,c.jsx)(zt.CheckboxControl,{disabled:e,label:(0,f.__)("Add a note to your order","woocommerce"),checked:r,onChange:e=>{n(e),e?o!==i&&t(i):(t(""),a(o))}}),r&&(0,c.jsx)(zt.Textarea,{disabled:e,onTextChange:t,placeholder:s,value:o})]})},Xo=({className:e})=>{const{needsShipping:t}=We(),{isProcessing:s,orderNotes:r}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore);return{isProcessing:t.isProcessing(),orderNotes:t.getOrderNotes()}},[]),{__internalSetOrderNotes:n}=(0,_.useDispatch)(X.checkoutStore);return(0,c.jsx)(zt.FormStep,{id:"order-notes",showStepNumber:!1,className:(0,o.A)("wc-block-checkout__order-notes",e),disabled:s,children:(0,c.jsx)(Wo,{disabled:s,onChange:n,placeholder:t?(0,f.__)("Notes about your order, e.g. special notes for delivery.","woocommerce"):(0,f.__)("Notes about your order.","woocommerce"),value:r})})};s(9003);const Yo=JSON.parse('{"DD":"Order Note","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-order-note-block",{apiVersion:Yo.XV,title:Yo.DD,icon:{src:(0,c.jsx)(i.A,{icon:qo.A,className:"wc-block-editor-components-block-icon"})},edit:()=>{const e=(0,l.useBlockProps)();return(0,c.jsx)("div",{...e,children:(0,c.jsx)(Zt,{children:(0,c.jsx)(Xo,{})})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});const Go=(0,c.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M6 3.75h12c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H6c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,c.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.9 7.5A1.1 1.1 0 018 6.4h8a1.1 1.1 0 011.1 1.1v2a1.1 1.1 0 01-1.1 1.1H8a1.1 1.1 0 01-1.1-1.1v-2zm1.2.1v1.8h7.8V7.6H8.1z",clipRule:"evenodd"}),(0,c.jsx)("path",{fill:"currentColor",d:"M8.5 12h1v1h-1v-1zM8.5 14h1v1h-1v-1zM8.5 16h1v1h-1v-1zM11.5 12h1v1h-1v-1zM11.5 14h1v1h-1v-1zM11.5 16h1v1h-1v-1zM14.5 12h1v1h-1v-1zM14.5 14h1v1h-1v-1zM14.5 16h1v1h-1v-1z"})]});s(1962);const Jo=({instanceId:e,isLoading:t=!1,onSubmit:s,displayCouponForm:r=!1})=>{const[n,i]=(0,d.useState)(""),[a,l]=(0,d.useState)(r),p=`wc-block-components-totals-coupon__input-${e}`,{validationErrorId:m}=(0,_.useSelect)(t=>({validationErrorId:t(X.validationStore).getValidationErrorId(e)}),[e]),u=(0,d.useRef)(null);return(0,c.jsx)(zt.Panel,{className:"wc-block-components-totals-coupon",initialOpen:a,hasBorder:!1,headingLevel:2,title:(0,f.__)("Add coupons","woocommerce"),state:[a,l],children:(0,c.jsx)(To,{screenReaderLabel:(0,f.__)("Applying coupon…","woocommerce"),isLoading:t,showSpinner:!1,children:(0,c.jsxs)("div",{className:"wc-block-components-totals-coupon__content",children:[(0,c.jsxs)("form",{className:"wc-block-components-totals-coupon__form",id:"wc-block-components-totals-coupon__form",children:[(0,c.jsx)(zt.ValidatedTextInput,{id:p,errorId:"coupon",className:"wc-block-components-totals-coupon__input",label:(0,f.__)("Enter code","woocommerce"),value:n,ariaDescribedBy:m||"",onChange:e=>{i(e)},focusOnMount:!0,validateOnMount:!1,showError:!1,ref:u}),(0,c.jsxs)(Lo,{className:(0,o.A)("wc-block-components-totals-coupon__button",{"wc-block-components-totals-coupon__button--loading":t}),disabled:t||!n,onClick:e=>{e.preventDefault(),void 0!==s?s(n)?.then(e=>{e?(i(""),l(!1)):u.current?.focus&&u.current.focus()}):(i(""),l(!0))},type:"submit",children:[t&&(0,c.jsx)(zt.Spinner,{}),(0,f.__)("Apply","woocommerce")]})]}),(0,c.jsx)(zt.ValidationInputError,{propertyName:"coupon",elementId:e})]})})})};s(619);const Ko={context:"summary"},Zo=({cartCoupons:e=[],currency:t,isRemovingCoupon:s,removeCoupon:o,values:r,isLoading:n})=>{const{total_discount:i,total_discount_tax:a}=r,l=parseInt(i,10),d=(0,Ct.applyCheckoutFilter)({arg:Ko,filterName:"coupons",defaultValue:e});if(!l&&0===d.length)return null;const p=parseInt(a,10),m=(0,x.getSetting)("displayCartPricesIncludingTax",!1)?l+p:l;return(0,c.jsx)(zt.TotalsItem,{className:"wc-block-components-totals-discount",currency:t,description:0!==d.length&&(0,c.jsx)(To,{screenReaderLabel:(0,f.__)("Removing coupon…","woocommerce"),isLoading:s,showSpinner:!1,children:(0,c.jsx)("ul",{className:"wc-block-components-totals-discount__coupon-list",children:d.map(e=>(0,c.jsx)(zt.RemovableChip,{className:"wc-block-components-totals-discount__coupon-list-item",text:e.label,screenReaderText:(0,f.sprintf)(/* translators: %s Coupon code. */ /* translators: %s Coupon code. */
(0,f.__)("Coupon: %s","woocommerce"),e.label),disabled:s,onRemove:()=>{o(e.code)},radius:"large",ariaLabel:(0,f.sprintf)(/* translators: %s is a coupon code. */ /* translators: %s is a coupon code. */
(0,f.__)('Remove coupon "%s"',"woocommerce"),e.label)},"coupon-"+e.code))})}),label:m?(0,f.__)("Discount","woocommerce"):(0,f.__)("Coupons","woocommerce"),value:m?-1*m:"-",showSkeleton:n})},Qo=()=>{const{cartIsLoading:e,isLoadingRates:t,hasPendingItemsOperations:s}=Me(),{isApplyingCoupon:o,isRemovingCoupon:r}=Bo(),c=(0,_.useSelect)(e=>e(X.checkoutStore).isCalculating(),[]);return{isLoading:e||t||o||r||c||s}},er=({children:e,isLoading:t,skeleton:s})=>{const o=(0,p.useReducedMotion)(),[r,n]=(0,d.useState)(t),[i,a]=(0,d.useState)(null);return(0,d.useEffect)(()=>{if(o)return void n(t);let e;if(t)n(!0),a(Date.now());else if(i){const t=Date.now()-i,s=Math.max(0,2e3-t);e=setTimeout(()=>{n(!1),a(null)},s)}return()=>{e&&clearTimeout(e)}},[t,i,o]),(0,c.jsx)(c.Fragment,{children:r?s:e})};s(8413);const tr=({currency:e,values:t,className:s,isEstimate:r=!1})=>{const n=(0,x.getSetting)("taxesEnabled",!0)&&(0,x.getSetting)("displayCartPricesIncludingTax",!1),{total_price:i,total_tax:a,tax_lines:l}=t,{receiveCart:p,...m}=Me(),{isLoading:u}=Qo(),h=(0,Ct.applyCheckoutFilter)({filterName:"totalLabel",defaultValue:r?(0,f.__)("Estimated total","woocommerce"):(0,f.__)("Total","woocommerce"),extensions:m.extensions,arg:{cart:m}}),g=(0,Ct.applyCheckoutFilter)({filterName:"totalValue",defaultValue:"<price/>",extensions:m.extensions,arg:{cart:m},validation:Ct.productPriceValidation}),_=(0,c.jsx)(zt.FormattedMonetaryAmount,{className:"wc-block-components-totals-footer-item-tax-value",currency:e,value:parseInt(i,10)}),k=(0,d.createInterpolateElement)(g,{price:_}),b=parseInt(a,10),w=l&&l.length>0?(0,f.sprintf)(/* translators: %s is a list of tax rates */ /* translators: %s is a list of tax rates */
(0,f.__)("Including %s","woocommerce"),l.map(({name:t,price:s})=>`${(0,fo.formatPrice)(s,e)} ${t}`).join(", ")):(0,f.__)("Including <TaxAmount/> in taxes","woocommerce"),y=Fe(m.shippingRates),v=m.cartNeedsShipping,S=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{children:(0,f.__)("Including","woocommerce")}),(0,c.jsx)(Mo,{height:"1em",width:"45px",tag:"span",ariaMessage:(0,f.__)("Loading price… ","woocommerce")})]});return(0,c.jsx)(zt.TotalsItem,{className:(0,o.A)("wc-block-components-totals-footer-item",s),currency:e,label:h,value:k,description:(0,c.jsxs)(c.Fragment,{children:[n&&0!==b&&(0,c.jsx)("p",{className:"wc-block-components-totals-footer-item-tax",children:(0,c.jsx)(er,{isLoading:u,skeleton:S,children:(0,c.jsx)(c.Fragment,{children:(0,d.createInterpolateElement)(w,{TaxAmount:(0,c.jsx)(zt.FormattedMonetaryAmount,{className:"wc-block-components-totals-footer-item-tax-value",currency:e,value:b})})})})}),r&&!y&&v&&(0,c.jsx)("p",{className:"wc-block-components-totals-footer-item-shipping",children:(0,f.__)("Shipping will be calculated at checkout","woocommerce")})]}),showSkeleton:u})},sr=()=>{const{shippingRates:e}=Me(),t=Ve(e);return t?(0,c.jsx)("div",{className:"wc-block-components-totals-shipping__via",children:(0,_e.decodeEntities)(t.filter((e,s)=>t.indexOf(e)===s).join(", "))}):null},or=e=>{const t=(e=>(0,x.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.total_shipping,10)+parseInt(e.total_shipping_tax,10):parseInt(e.total_shipping,10))(e);return 0===t?(0,c.jsx)("strong",{children:(0,f.__)("Free","woocommerce")}):t};s(6562);const rr=({label:e=(0,f.__)("Shipping","woocommerce"),placeholder:t=null,collaterals:s=null,shippingRates:o})=>{const{cartTotals:r,shippingRates:n}=Me(),{isLoading:i}=Qo(),a=o??n,l=Fe(a),d=Ve(a),p=a.flatMap(e=>e.shipping_rates.map(e=>e.name).filter(Boolean));let m=[];d.length>0?m=d:1===p.length&&(m=p);const u=d.length>1||p.length>1,h=0===m.length||u?e:m[0];return(0,c.jsx)("div",{className:"wc-block-components-totals-shipping",children:(0,c.jsx)(zt.TotalsItem,{label:h,value:l?or(r):t,description:(0,c.jsxs)(c.Fragment,{children:[u&&(0,c.jsx)(sr,{}),s&&(0,c.jsx)("div",{className:"wc-block-components-totals-shipping__collaterals",children:s})]}),currency:(0,fo.getCurrencyFromPriceResponse)(r),showSkeleton:i})})};var cr=s(9911);const nr=()=>{const{extensions:e,receiveCart:t,...s}=Me(),o={extensions:e,cart:s,context:"woocommerce/checkout"};return(0,c.jsx)(Ct.ExperimentalOrderMeta.Slot,{...o})},{Fill:ir,Slot:ar}=(0,Ct.createSlotFill)("checkoutOrderSummaryActionArea"),lr=JSON.parse('{"DD":"Order Summary","xY":{"align":false,"html":false,"multiple":false,"reusable":false,"inserter":false,"lock":false},"uK":{"lock":{"type":"object","default":{"remove":true}}},"XV":3}'),dr=[{attributes:lr.uK,save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(l.InnerBlocks.Content,{})}),supports:lr.xY,migrate:({attributes:e})=>[e,[(0,a.createBlock)("woocommerce/checkout-order-summary-cart-items-block",{},[]),(0,a.createBlock)("woocommerce/checkout-order-summary-coupon-form-block",{},[]),(0,a.createBlock)("woocommerce/checkout-order-summary-totals-block",{},[(0,a.createBlock)("woocommerce/checkout-order-summary-subtotal-block",{},[]),(0,a.createBlock)("woocommerce/checkout-order-summary-fee-block",{},[]),(0,a.createBlock)("woocommerce/checkout-order-summary-discount-block",{},[]),(0,a.createBlock)("woocommerce/checkout-order-summary-shipping-block",{},[]),(0,a.createBlock)("woocommerce/checkout-order-summary-taxes-block",{},[])])]],isEligible:(e,t)=>!t.some(e=>"woocommerce/checkout-order-summary-totals-block"===e.name)}],pr=dr;s(6229),(0,a.registerBlockType)("woocommerce/checkout-order-summary-block",{apiVersion:lr.XV,title:lr.DD,icon:{src:(0,c.jsx)(i.A,{icon:Go,className:"wc-block-editor-components-block-icon"})},attributes:{className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},edit:({clientId:e})=>{const t=(0,l.useBlockProps)(),{cartTotals:s}=Me(),r=(0,fo.getCurrencyFromPriceResponse)(s),n=parseInt(s.total_price,10),i=Bt(Ct.innerBlockAreas.CHECKOUT_ORDER_SUMMARY),{isLarge:a}=u(),[p,m]=(0,d.useState)(!1),h=(0,d.useId)(),g=a?{}:{role:"button",onClick:()=>m(!p),"aria-expanded":p,"aria-controls":h,tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||m(!p)}},_=[["woocommerce/checkout-order-summary-cart-items-block",{},[]],["woocommerce/checkout-order-summary-coupon-form-block",{},[]],["woocommerce/checkout-order-summary-totals-block",{},[]]];return Dt({clientId:e,registeredBlocks:i,defaultTemplate:_}),(0,c.jsxs)("div",{...t,children:[(0,c.jsxs)("div",{className:"wc-block-components-checkout-order-summary__title",...g,children:[(0,c.jsx)("p",{className:"wc-block-components-checkout-order-summary__title-text",role:"heading","aria-level":2,children:(0,f.__)("Order summary","woocommerce")}),(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:r,value:n,className:"wc-block-components-checkout-order-summary__title-price"}),(0,c.jsx)("span",{className:"wc-block-components-checkout-order-summary__title-icon",children:(0,c.jsx)(Ot.Icon,{icon:p?cr.A:Qt.A})})]}),(0,c.jsxs)("div",{className:(0,o.A)("wc-block-components-checkout-order-summary__content",{"is-open":p}),id:h,children:[(0,c.jsx)(l.InnerBlocks,{allowedBlocks:i,template:_}),(0,c.jsx)("div",{className:"wc-block-components-totals-wrapper",children:(0,c.jsx)(tr,{currency:r,values:s})}),(0,c.jsx)(nr,{})]})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(l.InnerBlocks.Content,{})}),deprecated:pr});var mr=s(3907);const ur={warning:"#F0B849",error:"#CC1818",success:"#46B450",info:"#0073AA"},hr=({status:e="warning",...t})=>(0,c.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t,children:[(0,c.jsx)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",stroke:ur[e],strokeWidth:"1.5"}),(0,c.jsx)("path",{d:"M13 7H11V13H13V7Z",fill:ur[e]}),(0,c.jsx)("path",{d:"M13 15H11V17H13V15Z",fill:ur[e]})]});s(4459);const gr=({href:e,title:t,description:s,warning:o})=>(0,c.jsxs)("a",{href:e,className:"wc-block-editor-components-external-link-card",target:"_blank",rel:"noreferrer",children:[(0,c.jsxs)("span",{className:"wc-block-editor-components-external-link-card__content",children:[(0,c.jsx)("strong",{className:"wc-block-editor-components-external-link-card__title",children:t}),s&&(0,c.jsx)("span",{className:"wc-block-editor-components-external-link-card__description",dangerouslySetInnerHTML:{__html:(0,us.sanitizeHTML)(s)}}),o?(0,c.jsxs)("span",{className:"wc-block-editor-components-external-link-card__warning",children:[(0,c.jsx)(i.A,{icon:(0,c.jsx)(hr,{status:"error"})}),(0,c.jsx)("span",{children:o})]}):null]}),(0,c.jsx)(Ot.VisuallyHidden,{as:"span",children:/* translators: accessibility text */ /* translators: accessibility text */
(0,f.__)("(opens in a new tab)","woocommerce")}),(0,c.jsx)(i.A,{icon:mr.A,className:"wc-block-editor-components-external-link-card__icon"})]}),_r=window.wp.autop,kr=e=>e.replace(/<\/?[a-z][^>]*?>/gi,""),br=(e,t)=>e.replace(/[\s|\.\,]+$/i,"")+t,wr=(e,t,s="&hellip;",o=!0)=>{const r=kr(e),c=r.split(" ").splice(0,t).join(" ");return c===r?o?(0,_r.autop)(r):r:o?(0,_r.autop)(br(c,s)):br(c,s)},yr=(e,t,s=!0,o="&hellip;",r=!0)=>{const c=kr(e),n=c.slice(0,t);if(n===c)return r?(0,_r.autop)(c):c;if(s)return(0,_r.autop)(br(n,o));const i=n.match(/([\s]+)/g),a=i?i.length:0,l=c.slice(0,t+a);return r?(0,_r.autop)(br(l,o)):br(l,o)};s(9249);const xr=()=>(0,c.jsxs)("div",{className:"wc-block-components-skeleton wc-block-components-skeleton--checkout-payment","aria-live":"polite","aria-label":(0,f.__)("Loading payment options… ","woocommerce"),children:[(0,c.jsxs)("div",{className:"wc-block-components-skeleton--checkout-payment-container",children:[(0,c.jsx)(Mo,{height:"20px",width:"20px",borderRadius:"100%"}),(0,c.jsx)(Mo,{height:"20px",maxWidth:"148px"})]}),(0,c.jsx)(Mo,{height:"20px"})]});var fr=s(9254),vr=(s(7575),s(4650)),Sr=s(7051),jr=s(3816);const Cr=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},Pr=e=>{switch(e){case"success":return vr.A;case"warning":case"info":case"error":return Sr.A;default:return jr.A}};var Er=s(195);const Nr=({className:e,status:t="default",children:s,spokenMessage:r=s,onRemove:n=()=>{},isDismissible:a=!0,politeness:l=Cr(t),summary:p})=>(((e,t)=>{const s="string"==typeof e?e:(0,d.renderToString)(e);(0,d.useEffect)(()=>{s&&(0,Er.speak)(s,t)},[s,t])})(r,l),(0,c.jsxs)("div",{className:(0,o.A)(e,"wc-block-components-notice-banner","is-"+t,{"is-dismissible":a}),children:[(0,c.jsx)(i.A,{icon:Pr(t)}),(0,c.jsxs)("div",{className:"wc-block-components-notice-banner__content",children:[p&&(0,c.jsx)("p",{className:"wc-block-components-notice-banner__summary",children:p}),s]}),!!a&&(0,c.jsx)(Lo,{className:"wc-block-components-notice-banner__dismiss","aria-label":(0,f.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof e?.preventDefault&&e.preventDefault&&e.preventDefault(),n()},removeTextWrap:!0,children:(0,c.jsx)(i.A,{icon:fr.A})})]}));s(4147);const Ar=()=>(0,c.jsx)(Nr,{isDismissible:!1,className:"wc-block-checkout__no-payment-methods-notice",status:"error",children:(0,f.__)("There are no payment methods available. Please contact us for help placing your order.","woocommerce")});s(5193);const Ir=()=>(0,c.jsx)(Nr,{isDismissible:!1,className:"wc-block-checkout__only-express-payments-notice",status:"info",children:(0,f.__)("Only express payment methods are available for this order. Please select one to continue.","woocommerce")});class Rr extends d.Component{state={errorMessage:"",hasError:!1};static getDerivedStateFromError(e){return{errorMessage:e.message,hasError:!0}}render(){const{hasError:e,errorMessage:t}=this.state,{isEditor:s}=this.props;if(e){let e=(0,f.__)("We are experiencing difficulties with this payment method. Please contact us for assistance.","woocommerce");(s||x.CURRENT_USER_IS_ADMIN)&&(e=t||(0,f.__)("There was an error with this payment method. Please verify it's configured correctly.","woocommerce"));const o=[{id:"0",content:e,isDismissible:!1,status:"error"}];return(0,c.jsx)(zt.StoreNoticesContainer,{additionalNotices:o,context:me.PAYMENTS})}return this.props.children}}const Tr=Rr,Mr=({children:e,showSaveOption:t})=>{const{isEditor:s}=b(),{shouldSavePaymentMethod:o,customerId:r,shouldCreateAccount:n}=(0,_.useSelect)(e=>{const t=e(X.paymentStore),s=e(X.checkoutStore);return{shouldSavePaymentMethod:t.getShouldSavePaymentMethod(),customerId:s.getCustomerId(),shouldCreateAccount:s.getShouldCreateAccount()}},[]),{__internalSetShouldSavePaymentMethod:i}=(0,_.useDispatch)(X.paymentStore),a=(0,x.getSetting)("checkoutAllowsGuest",!1),l=r>0||n||!a;return(0,d.useEffect)(()=>{!l&&o&&i(!1)},[l,o,i]),(0,c.jsxs)(Tr,{isEditor:s,children:[e,l&&t&&(0,c.jsx)(zt.CheckboxControl,{className:"wc-block-components-payment-methods__save-card-info",label:(0,f.__)("Save payment information to my account for future purchases.","woocommerce"),checked:o,onChange:()=>i(!o)})]})},Br=()=>{const{activeSavedToken:e,activePaymentMethod:t,isExpressPaymentMethodActive:s,availablePaymentMethods:o}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{activeSavedToken:t.getActiveSavedToken(),activePaymentMethod:t.getActivePaymentMethod(),isExpressPaymentMethodActive:t.isExpressPaymentMethodActive(),availablePaymentMethods:t.getAvailablePaymentMethods()}}),{__internalSetActivePaymentMethod:r}=(0,_.useDispatch)(X.paymentStore),n=(0,st.getPaymentMethods)(),{...i}=Oo(),{removeNotice:a}=(0,_.useDispatch)("core/notices"),{dispatchCheckoutEvent:l}=qe(),{isEditor:p}=b(),m=Object.keys(o).map(e=>{const{edit:t,content:s,label:o,supports:a}=n[e],l=p?t:s;return{value:e,label:"string"==typeof o?o:(0,d.cloneElement)(o,{components:i.components}),name:`wc-saved-payment-method-token-${e}`,content:(0,c.jsx)(Mr,{showSaveOption:a.showSaveOption,children:(0,d.cloneElement)(l,{__internalSetActivePaymentMethod:r,...i})})}}),u=(0,d.useCallback)(e=>{r(e),a("wc-payment-error",me.PAYMENTS),l("set-active-payment-method",{paymentMethodSlug:e})},[l,a,r]);return s?null:(0,c.jsx)(zt.RadioControlAccordion,{highlightChecked:!0,id:"wc-payment-method-options",selected:e?null:t,onChange:u,options:m})},Dr="wc/store/cart",Or=((0,f.__)("Unable to get cart data from the API.","woocommerce"),[]),Lr=[],Fr={},Vr={};V.forEach(e=>{Vr[e]=""});const Hr={};V.forEach(e=>{Hr[e]=""}),Hr.email="";const $r={cartItemsPendingQuantity:[],cartItemsPendingDelete:[],productsPendingAdd:[],cartData:{coupons:[],shippingRates:[],shippingAddress:Vr,billingAddress:Hr,items:[],itemsCount:0,itemsWeight:0,crossSells:[],needsShipping:!0,needsPayment:!1,hasCalculatedShipping:!0,fees:[],totals:{currency_code:"",currency_symbol:"",currency_minor_unit:2,currency_decimal_separator:".",currency_thousand_separator:",",currency_prefix:"",currency_suffix:"",total_items:"0",total_items_tax:"0",total_fees:"0",total_fees_tax:"0",total_discount:"0",total_discount_tax:"0",total_shipping:"0",total_shipping_tax:"0",total_price:"0",total_tax:"0",tax_lines:[]},errors:Or,paymentMethods:[],paymentRequirements:[],extensions:Fr},metaData:{updatingCustomerData:!1,updatingAddressFieldsForShippingRates:!1,updatingSelectedRate:!1,applyingCoupon:"",removingCoupon:"",isCartDataStale:!1},errors:Lr},zr=({method:e,expires:t})=>(0,f.sprintf)(/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card, %3$s is referring to the expiry date.  */ /* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card, %3$s is referring to the expiry date.  */
(0,f.__)("%1$s ending in %2$s (expires %3$s)","woocommerce"),e?.display_brand??e?.networks?.preferred??e.brand,e.last4,t),Ur=({method:e})=>e.brand&&e.last4?(0,f.sprintf)(/* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */ /* translators: %1$s is referring to the payment method brand, %2$s is referring to the last 4 digits of the payment card. */
(0,f.__)("%1$s ending in %2$s","woocommerce"),e.brand,e.last4):(0,f.sprintf)(/* translators: %s is the name of the payment method gateway. */ /* translators: %s is the name of the payment method gateway. */
(0,f.__)("Saved token for %s","woocommerce"),e.gateway),qr=()=>{const{activeSavedToken:e,activePaymentMethod:t,savedPaymentMethods:s}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{activeSavedToken:t.getActiveSavedToken(),activePaymentMethod:t.getActivePaymentMethod(),savedPaymentMethods:t.getSavedPaymentMethods()}}),{__internalSetActivePaymentMethod:o}=(0,_.useDispatch)(X.paymentStore),r=(()=>{let e;if((0,_.select)("core/editor")){const t={cartCoupons:St.coupons,cartItems:St.items,crossSellsProducts:St.cross_sells,cartFees:St.fees,cartItemsCount:St.items_count,cartItemsWeight:St.items_weight,cartNeedsPayment:St.needs_payment,cartNeedsShipping:St.needs_shipping,cartItemErrors:Or,cartTotals:St.totals,cartIsLoading:!1,cartErrors:Lr,billingData:$r.cartData.billingAddress,billingAddress:$r.cartData.billingAddress,shippingAddress:$r.cartData.shippingAddress,extensions:Fr,shippingRates:St.shipping_rates,isLoadingRates:!1,cartHasCalculatedShipping:St.has_calculated_shipping,paymentRequirements:St.payment_requirements,receiveCart:()=>{}};e={cart:t,cartTotals:t.cartTotals,cartNeedsShipping:t.cartNeedsShipping,billingData:t.billingAddress,billingAddress:t.billingAddress,shippingAddress:t.shippingAddress,selectedShippingMethods:He(t.shippingRates),paymentMethods:St.payment_methods,paymentRequirements:t.paymentRequirements}}else{const t=(0,_.select)(Dr),s=t.getCartData(),o=t.getCartErrors(),r=t.getCartTotals(),c=!t.hasFinishedResolution("getCartData"),n=t.isAddressFieldsForShippingRatesUpdating(),i=He(s.shippingRates);e={cart:{cartCoupons:s.coupons,cartItems:s.items,crossSellsProducts:s.crossSells,cartFees:s.fees,cartItemsCount:s.itemsCount,cartItemsWeight:s.itemsWeight,cartNeedsPayment:s.needsPayment,cartNeedsShipping:s.needsShipping,cartItemErrors:s.errors,cartTotals:r,cartIsLoading:c,cartErrors:o,billingData:xe(s.billingAddress),billingAddress:xe(s.billingAddress),shippingAddress:xe(s.shippingAddress),extensions:s.extensions,shippingRates:s.shippingRates,isLoadingRates:n,cartHasCalculatedShipping:s.hasCalculatedShipping,paymentRequirements:s.paymentRequirements,receiveCart:(0,_.dispatch)(Dr).receiveCart},cartTotals:s.totals,cartNeedsShipping:s.needsShipping,billingData:s.billingAddress,billingAddress:s.billingAddress,shippingAddress:s.shippingAddress,selectedShippingMethods:i,paymentMethods:s.paymentMethods,paymentRequirements:s.paymentRequirements}}return e})(),n=(0,st.getPaymentMethods)(),i=Oo(),{removeNotice:a}=(0,_.useDispatch)("core/notices"),{dispatchCheckoutEvent:l}=qe(),p=(0,d.useMemo)(()=>{const e=Object.keys(s),t=new Set(e.flatMap(e=>s[e].map(e=>e.method.gateway))),c=Array.from(t).filter(e=>n[e]?.canMakePayment(r));return e.flatMap(e=>s[e].map(t=>{if(!c.includes(t.method.gateway))return;const s="cc"===e||"echeck"===e,r=t.method.gateway;return{name:`wc-saved-payment-method-token-${r}`,label:s?zr(t):Ur(t),value:t.tokenId.toString(),onChange:e=>{const t=`wc-${r}-payment-token`;o(r,{token:e,payment_method:r,[t]:e.toString(),isSavedToken:!0}),a("wc-payment-error",me.PAYMENTS),l("set-active-payment-method",{paymentMethodSlug:r})}}})).filter(e=>void 0!==e)},[s,n,o,a,l,r]),m=e&&n[t]&&void 0!==n[t]?.savedTokenComponent&&!(0,pe.isNull)(n[t].savedTokenComponent)?(0,d.cloneElement)(n[t].savedTokenComponent,{token:e,...i}):null;return p.length>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(zt.RadioControl,{highlightChecked:!0,id:"wc-payment-method-saved-tokens",selected:e,options:p,onChange:()=>{}}),m]}):null};s(9725),s(7215);const Wr=({noPaymentMethods:e=(0,c.jsx)(Ar,{}),onlyExpressPayments:t=(0,c.jsx)(Ir,{})})=>{const{paymentMethodsInitialized:s,expressPaymentMethodsInitialized:o,availablePaymentMethods:r,availableExpressPaymentMethods:n,savedPaymentMethods:i}=(0,_.useSelect)(e=>{const t=e(X.paymentStore);return{paymentMethodsInitialized:t.paymentMethodsInitialized(),expressPaymentMethodsInitialized:t.expressPaymentMethodsInitialized(),availablePaymentMethods:t.getAvailablePaymentMethods(),availableExpressPaymentMethods:t.getAvailableExpressPaymentMethods(),savedPaymentMethods:t.getSavedPaymentMethods()}}),a=Object.keys(r).length>0,l=Object.keys(n).length>0;if(s&&o){if(!a&&!l)return e;if(l&&!a)return t}return(0,c.jsxs)(er,{isLoading:!s||!o,skeleton:(0,c.jsx)(xr,{}),children:[(0,c.jsx)(qr,{}),Object.keys(i).length>0&&(0,c.jsx)(zt.Label,{label:(0,f.__)("Use another payment method.","woocommerce"),screenReaderLabel:(0,f.__)("Other available payment methods","woocommerce"),wrapperElement:"p",wrapperProps:{className:"wc-block-components-checkout-step__description-payments-aligned"}}),(0,c.jsx)(Br,{})]})},Xr=({noPaymentMethods:e})=>(0,c.jsx)(Wr,{noPaymentMethods:e});var Yr=s(7327),Gr=s(5194);const Jr=({label:e,description:t,buttonLabel:s,buttonHref:o,icon:r=Yr.A})=>(0,c.jsxs)(Ot.Placeholder,{icon:(0,c.jsx)(i.A,{icon:r}),label:e,className:"wc-block-checkout__configure-placeholder",children:[(0,c.jsx)("span",{className:"wc-block-checkout__configure-placeholder-description",children:t}),(0,c.jsx)(Ot.Button,{variant:"primary",href:o,target:"_blank",rel:"noopener noreferrer",style:{backgroundColor:Gr.T.fN2,color:Gr.T.cai,pointerEvents:"all"},children:s})]}),Kr={...Ds({defaultTitle:(0,f.__)("Payment options","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},Zr=JSON.parse('{"DD":"Payment Options","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-payment-block",{apiVersion:Zr.XV,title:Zr.DD,icon:{src:(0,c.jsx)(i.A,{icon:Co.A,className:"wc-block-editor-components-block-icon"})},attributes:Kr,edit:({attributes:e,setAttributes:t})=>{const s=(0,x.getSetting)("globalPaymentMethods"),r=(0,_.select)(X.paymentStore).getIncompatiblePaymentMethods(),n=(0,f.__)("Incompatible with block-based checkout","woocommerce"),i=v.wordCountType;return(0,c.jsxs)(qt,{attributes:e,setAttributes:t,className:(0,o.A)("wc-block-checkout__payment-method",e?.className),children:[(0,c.jsx)(l.InspectorControls,{children:s.length>0&&(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Methods","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("You currently have the following payment integrations active.","woocommerce")}),s.map(e=>{const t=!!r[e.id];let s;return s="words"===i?wr(e.description,30,void 0,!1):yr(e.description,30,"characters_including_spaces"===i,void 0,!1),(0,c.jsx)(gr,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=checkout&section=${e.id}`,title:e.title,description:s,...t?{warning:n}:{}},e.id)}),(0,c.jsx)(Ot.ExternalLink,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=checkout`,children:(0,f.__)("Manage payment methods","woocommerce")})]})}),(0,c.jsx)(Zt,{children:(0,c.jsx)(Xr,{noPaymentMethods:(0,c.jsx)(Jr,{icon:Co.A,label:(0,f.__)("Payment options","woocommerce"),description:(0,f.__)("Your store does not have any payment methods that support the Checkout block. Once you have configured a compatible payment method it will be displayed here.","woocommerce"),buttonLabel:(0,f.__)("Configure Payment Options","woocommerce"),buttonHref:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=checkout`})})}),(0,c.jsx)(Wt,{block:Ct.innerBlockAreas.PAYMENT_METHODS})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(Xt,{})})});const Qr=(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{stroke:"#1E1E1E",strokeLinejoin:"round",strokeWidth:"1.5",d:"M18.25 12a6.25 6.25 0 1 1-12.5 0 6.25 6.25 0 0 1 12.5 0Z"}),(0,c.jsx)("path",{fill:"#1E1E1E",d:"M10 3h4v3h-4z"}),(0,c.jsx)("rect",{width:"1.5",height:"5",x:"11.25",y:"8",fill:"#1E1E1E",rx:".75"}),(0,c.jsx)("path",{fill:"#1E1E1E",d:"m15.7 4.816 1.66 1.078-1.114 1.718-1.661-1.078z"})]}),ec=["height","borderRadius"],tc=e=>{const t=(0,_.select)(X.paymentStore).getAvailableExpressPaymentMethods();return Object.values(t).reduce((t,s)=>t||s?.supportsStyle.some(t=>e.includes(t)),!1)},sc=({attributes:e,setAttributes:t})=>{const{buttonHeight:s,buttonBorderRadius:o}=e;return(0,c.jsxs)(c.Fragment,{children:[tc(["height"])&&(0,c.jsx)(Ot.RadioControl,{label:(0,f.__)("Button height","woocommerce"),selected:s,options:[{label:(0,f.__)("Small (40px)","woocommerce"),value:"40"},{label:(0,f.__)("Medium (48px)","woocommerce"),value:"48"},{label:(0,f.__)("Large (55px)","woocommerce"),value:"55"}],onChange:e=>t({buttonHeight:e})}),tc(["borderRadius"])&&(0,c.jsx)("div",{className:"border-radius-control-container",children:(0,c.jsx)(l.HeightControl,{label:(0,f.__)("Button border radius","woocommerce"),value:o,onChange:e=>{const s=e.replace("px","");t({buttonBorderRadius:s})}})})]})},oc=({attributes:e,setAttributes:t})=>e.showButtonStyles?(0,c.jsx)(sc,{attributes:e,setAttributes:t}):null,rc=()=>{const e=(0,_.select)(X.paymentStore).getAvailableExpressPaymentMethods();return Object.entries(e).length<1?(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("You currently have no express payment integrations active.","woocommerce")}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("You currently have the following express payment integrations active.","woocommerce")}),Object.values(e).map(e=>(0,c.jsx)(gr,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=checkout&section=${encodeURIComponent(e.gatewayId)}`,title:e.title,description:e.description},e.name))]})},cc=(0,c.jsxs)(c.Fragment,{children:[(0,f.__)("Apply uniform styles","woocommerce")," ",(0,c.jsx)("span",{className:"express-payment-styles-beta-badge",children:"Beta"})]}),nc=({attributes:e,setAttributes:t})=>(0,c.jsxs)(l.InspectorControls,{children:[tc(ec)&&(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Button Settings","woocommerce"),className:"express-payment-button-settings",children:[(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:cc,checked:e.showButtonStyles,onChange:()=>t({showButtonStyles:!e.showButtonStyles}),help:(0,f.__)("Sets a consistent style for express payment buttons.","woocommerce")}),(0,c.jsxs)(Ot.Notice,{status:"warning",isDismissible:!1,className:"wc-block-checkout__notice express-payment-styles-notice",children:[(0,c.jsxs)("strong",{children:[(0,f.__)("Note","woocommerce"),":"]})," ",(0,f.__)("Some payment methods might not yet support all style controls","woocommerce")]}),(0,c.jsx)(oc,{attributes:e,setAttributes:t})]}),(0,c.jsx)(Ot.PanelBody,{title:(0,f.__)("Express Payment Methods","woocommerce"),children:(0,c.jsx)(rc,{})})]}),ic="wc/store/payment",ac=(0,d.createContext)({showButtonStyles:!1,buttonHeight:"48",buttonBorderRadius:"4"}),lc=()=>{const{isEditor:e}=b(),{showButtonStyles:t,buttonHeight:s,buttonBorderRadius:r}=(0,d.useContext)(ac),n=t?{height:s,borderRadius:r}:void 0,{activePaymentMethod:i,paymentMethodData:a}=(0,_.useSelect)(e=>{const t=e(ic);return{activePaymentMethod:t.getActivePaymentMethod(),paymentMethodData:t.getPaymentMethodData()}}),{__internalSetActivePaymentMethod:l,__internalSetExpressPaymentStarted:p,__internalSetPaymentIdle:m,__internalSetPaymentError:u,__internalSetPaymentMethodData:h,__internalSetExpressPaymentError:g}=(0,_.useDispatch)(ic),{paymentMethods:k}=xo(),w=Oo(),y=(0,d.useRef)(i),x=(0,d.useRef)(a),v=Object.entries(k),{expressPaymentWrapperRef:S,focusedExpressPaymentMethod:j}=(e=>{const t=(0,d.useRef)(null),s=(0,d.useRef)(null),[o,r]=(0,d.useState)(null),c=(0,d.useCallback)(()=>{s.current&&(clearInterval(s.current),s.current=null)},[]),n=(0,d.useCallback)(()=>{const e=t.current,s=e?.ownerDocument.activeElement;if(!(e&&s instanceof Element))return{focusedPaymentMethod:null,isExpressPaymentIframe:!1};const o=s.closest('[id^="express-payment-method-"]'),r=s instanceof HTMLIFrameElement&&e.contains(s);return o&&e.contains(o)?{focusedPaymentMethod:o.id.replace("express-payment-method-",""),isExpressPaymentIframe:r}:{focusedPaymentMethod:null,isExpressPaymentIframe:!1}},[]),i=(0,d.useCallback)(()=>{const{focusedPaymentMethod:e,isExpressPaymentIframe:t}=n();r(e),t?s.current||(s.current=setInterval(()=>{const{focusedPaymentMethod:e,isExpressPaymentIframe:t}=n();r(e),t||c()},100)):c()},[n,c]);return(0,d.useEffect)(()=>{if(!e)return r(null),void c();const s=t.current;if(!s)return;const o=s.ownerDocument,n=o.defaultView,a=()=>{setTimeout(i,0)};return o.addEventListener("focusin",i),o.addEventListener("focusout",a),n?.addEventListener("blur",i),n?.addEventListener("focus",a),()=>{c(),o.removeEventListener("focusin",i),o.removeEventListener("focusout",a),n?.removeEventListener("blur",i),n?.removeEventListener("focus",a)}},[e,c,i]),{expressPaymentWrapperRef:t,focusedExpressPaymentMethod:o}})(!e&&v.length>0),C=(0,d.useCallback)(e=>()=>{y.current=i,x.current=a,p(),l(e)},[i,a,l,p]),P=(0,d.useCallback)(()=>{m(),l(y.current,x.current)},[l,m]),E=(0,d.useCallback)(e=>{u(),h(e),g(e),l(y.current,x.current)},[l,u,h,g]),N=(0,d.useCallback)((e="")=>{G()("Express Payment Methods should use the provided onError handler instead.",{alternative:"onError",plugin:"woocommerce-gutenberg-products-block",link:"https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4228"}),e?E(e):g("")},[g,E]),A=v.length>1?"ul":"div",I=v.length>1?"li":"div",R=v.length>0?v.map(([t,s])=>{const r=e?s.edit:s.content;return(0,d.isValidElement)(r)?(0,c.jsx)(I,{id:`express-payment-method-${t}`,className:(0,o.A)({"wc-block-components-express-payment__event-button--focused":j===t}),children:(0,d.cloneElement)(r,{...w,onClick:C(t),onClose:P,onError:E,setExpressPaymentError:N,buttonAttributes:n})},t):null}):(0,c.jsx)("div",{children:(0,f.__)("No registered Payment Methods","woocommerce")},"noneRegistered");return(0,c.jsx)(Tr,{isEditor:e,children:(0,c.jsx)(A,{className:"wc-block-components-express-payment__event-buttons",ref:S,children:R})})};s(2831);const dc=()=>{const{isCalculating:e,isProcessing:t,isAfterProcessing:s,isBeforeProcessing:r,isComplete:n,hasError:i,availableExpressPaymentMethods:a={},expressPaymentMethodsInitialized:l,isExpressPaymentMethodActive:d,registeredExpressPaymentMethods:p={}}=(0,_.useSelect)(e=>{const t=e(X.checkoutStore),s=e(X.paymentStore);return{isCalculating:t.isCalculating(),isProcessing:t.isProcessing(),isAfterProcessing:t.isAfterProcessing(),isBeforeProcessing:t.isBeforeProcessing(),isComplete:t.isComplete(),hasError:t.hasError(),availableExpressPaymentMethods:s.getAvailableExpressPaymentMethods(),expressPaymentMethodsInitialized:s.expressPaymentMethodsInitialized(),isExpressPaymentMethodActive:s.isExpressPaymentMethodActive(),registeredExpressPaymentMethods:s.getRegisteredExpressPaymentMethods()}},[]),{isEditor:m}=b(),{hasRegisteredExpressPaymentMethods:u,hasRegisteredNotInitializedExpressPaymentMethods:h,hasNoValidRegisteredExpressPaymentMethods:g,availableExpressPaymentsCount:k}=(({availableExpressPaymentMethods:e={},expressPaymentMethodsInitialized:t=!1,registeredExpressPaymentMethods:s={}})=>{const o=Object.keys(s||{}),r=Object.keys(e||{}),c=o.length,n=r.length,i=c>0;return{hasRegisteredExpressPaymentMethods:i,hasRegisteredNotInitializedExpressPaymentMethods:!t&&i,hasNoValidRegisteredExpressPaymentMethods:t&&i&&!n,availableExpressPaymentsCount:n||2}})({availableExpressPaymentMethods:a,expressPaymentMethodsInitialized:l,registeredExpressPaymentMethods:p});if(!u||g)return m||x.CURRENT_USER_IS_ADMIN?(0,c.jsx)(zt.StoreNoticesContainer,{context:me.EXPRESS_PAYMENTS}):null;const w=t||s||r||n&&!i||d,y=!d&&(e||h);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:(0,o.A)("wc-block-components-express-payment","wc-block-components-express-payment--checkout",{"wc-block-components-express-payment--disabled":w}),"aria-disabled":w,"aria-live":"polite",...w&&{"aria-busy":!0,"aria-label":(0,f.__)("Processing express checkout","woocommerce")},children:[(0,c.jsx)("div",{className:"wc-block-components-express-payment__title-container",children:(0,c.jsx)("h2",{className:"wc-block-components-express-payment__title",children:h?(0,c.jsx)(Mo,{width:"127px",height:"20px",ariaMessage:(0,f.__)("Loading express payment area…","woocommerce")}):(0,f.__)(" Express Checkout","woocommerce")})}),(0,c.jsxs)("div",{className:"wc-block-components-express-payment__content",children:[(0,c.jsx)(zt.StoreNoticesContainer,{context:me.EXPRESS_PAYMENTS}),y?(0,c.jsx)("ul",{className:"wc-block-components-express-payment__event-buttons",children:Array.from({length:k}).map((e,t)=>(0,c.jsx)("li",{children:(0,c.jsx)(Mo,{height:"48px",ariaMessage:(0,f.__)("Loading express payment method…","woocommerce")})},t))}):(0,c.jsx)(lc,{})]})]}),(0,c.jsx)("div",{className:"wc-block-components-express-payment-continue-rule wc-block-components-express-payment-continue-rule--checkout",children:(0,f.__)("Or continue below","woocommerce")})]})},pc=({className:e})=>{const{cartNeedsPayment:t}=Me();return t?(0,c.jsx)("div",{className:e,children:(0,c.jsx)(dc,{})}):null};s(6715);const mc=JSON.parse('{"DD":"Express Checkout","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-express-payment-block",{apiVersion:mc.XV,title:mc.DD,icon:{src:(0,c.jsx)(i.A,{style:{fill:"none"},icon:Qr,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:t})=>{const{paymentMethods:s,isInitialized:r}=xo(),n=Object.keys(s).length>0,i=(0,l.useBlockProps)({className:(0,o.A)({"wp-block-woocommerce-checkout-express-payment-block--has-express-payment-methods":n},e?.className),attributes:e});if(!r||!n)return null;const{buttonHeight:a,buttonBorderRadius:d,showButtonStyles:p}=e;return(0,c.jsxs)("div",{...i,children:[(0,c.jsx)(nc,{attributes:e,setAttributes:t}),(0,c.jsx)(ac.Provider,{value:{showButtonStyles:p,buttonHeight:a,buttonBorderRadius:d},children:(0,c.jsx)(pc,{})})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});var uc=s(8402),hc=s(1607);const gc=({minRate:e,maxRate:t,multiple:s=!1})=>{if(void 0===e||void 0===t)return null;const o=(0,x.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10),r=(0,x.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(t.price,10)+parseInt(t.taxes,10):parseInt(t.price,10),n=0===o&&0===r?(0,c.jsx)("em",{children:(0,f.__)("free","woocommerce")}):(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:(0,fo.getCurrencyFromPriceResponse)(e),value:o});return(0,c.jsx)("span",{className:"wc-block-checkout__shipping-method-option-price",children:o!==r||s?(0,d.createInterpolateElement)(0===o&&0===r?"<price />":(0,f.__)("from <price />","woocommerce"),{price:n}):n})};function _c(e){return e?{min:e.reduce((e,t)=>Le(t.method_id)?e:void 0===e||parseInt(t.price,10)<parseInt(e.price,10)?t:e,void 0),max:e.reduce((e,t)=>Le(t.method_id)?e:void 0===e||parseInt(t.price,10)>parseInt(e.price,10)?t:e,void 0)}:{min:void 0,max:void 0}}function kc(e){return e?{min:e.reduce((e,t)=>Le(t.method_id)&&(void 0===e||t.price<e.price)?t:e,void 0),max:e.reduce((e,t)=>Le(t.method_id)&&(void 0===e||t.price>e.price)?t:e,void 0)}:{min:void 0,max:void 0}}s(6336);const bc=(0,f.__)("Pickup","woocommerce"),wc=(0,f.__)("Ship","woocommerce"),yc=({checked:e,rate:t,showPrice:s,showIcon:r,toggleText:n,setAttributes:a,onClick:d})=>(0,c.jsxs)(as.$,{render:(0,c.jsx)("div",{}),className:(0,o.A)("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"pickup"===e}),onClick:d,children:[!0===r&&(0,c.jsx)(i.A,{icon:hc.A,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,c.jsx)(l.RichText,{value:n,placeholder:bc,tagName:"span",className:"wc-block-checkout__shipping-method-option-title",onChange:e=>a({localPickupText:e}),__unstableDisableFormats:!0,preserveWhiteSpace:!0}),!0===s&&(0,c.jsx)(gc,{minRate:t.min,maxRate:t.max})]}),xc=({checked:e,rate:t,showPrice:s,showIcon:r,toggleText:n,setAttributes:a,onClick:d})=>{const p=void 0===t.min?(0,c.jsx)("span",{className:"wc-block-checkout__shipping-method-option-price",children:(0,f.__)("calculated with an address","woocommerce")}):(0,c.jsx)(gc,{minRate:t.min,maxRate:t.max});return(0,c.jsxs)(as.$,{render:(0,c.jsx)("div",{}),className:(0,o.A)("wc-block-checkout__shipping-method-option",{"wc-block-checkout__shipping-method-option--selected":"shipping"===e}),onClick:d,children:[!0===r&&(0,c.jsx)(i.A,{icon:uc.A,size:28,className:"wc-block-checkout__shipping-method-option-icon"}),(0,c.jsx)(l.RichText,{value:n,placeholder:wc,tagName:"span",className:"wc-block-checkout__shipping-method-option-title",onChange:e=>a({shippingText:e}),__unstableDisableFormats:!0,preserveWhiteSpace:!0}),!0===s&&p]})},fc={...Ds({defaultTitle:(0,f.__)("Delivery","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},showIcon:{type:"boolean",default:!0},showPrice:{type:"boolean",default:!1},localPickupText:{type:"string",default:bc},shippingText:{type:"string",default:wc},lock:{type:"object",default:{move:!0,remove:!0}}},vc=JSON.parse('{"DD":"Delivery","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-shipping-method-block",{apiVersion:vc.XV,title:vc.DD,icon:{src:(0,c.jsx)(i.A,{icon:uc.A,className:"wc-block-editor-components-block-icon"})},attributes:fc,edit:({attributes:e,setAttributes:t})=>{(0,d.useEffect)(()=>{const s=(0,x.getSetting)("localPickupText",e.localPickupText);t({localPickupText:s})},[t]);const{setPrefersCollection:s}=(0,_.useDispatch)(X.checkoutStore),{prefersCollection:r}=(0,_.useSelect)(e=>({prefersCollection:e(X.checkoutStore).prefersCollection()})),{showPrice:n,showIcon:i,className:a,localPickupText:p,shippingText:m}=e,{shippingRates:u,needsShipping:h,hasCalculatedShipping:g,isCollectable:k}=We();if(!(h&&g&&u&&k&&A))return null;const b=e=>{s("pickup"===e)};return(0,c.jsxs)(qt,{attributes:e,setAttributes:t,className:(0,o.A)("wc-block-checkout__shipping-method",a),children:[(0,c.jsxs)(l.InspectorControls,{children:[(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Appearance","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("Choose how this block is displayed to your customers.","woocommerce")}),(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Show icon","woocommerce"),checked:i,onChange:()=>t({showIcon:!i})}),(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Show costs","woocommerce"),checked:n,onChange:()=>t({showPrice:!n})})]}),(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Shipping Methods","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("Methods can be made managed in your store settings.","woocommerce")}),(0,c.jsx)(gr,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=shipping`,title:(0,f.__)("Shipping","woocommerce"),description:(0,f.__)("Manage your shipping zones, methods, and rates.","woocommerce")},"shipping_methods"),(0,c.jsx)(gr,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&section=pickup_location`,title:(0,f.__)("Pickup","woocommerce"),description:(0,f.__)("Allow customers to choose a local pickup location during checkout.","woocommerce")},"pickup_location")]})]}),(0,c.jsxs)("div",{id:"shipping-method",className:"wc-block-checkout__shipping-method-container",role:"radiogroup",children:[(0,c.jsx)(xc,{checked:r?"pickup":"shipping",rate:_c(u[0]?.shipping_rates),onClick:()=>{b("shipping")},showPrice:n,showIcon:i,setAttributes:t,toggleText:m}),(0,c.jsx)(yc,{checked:r?"pickup":"shipping",rate:kc(u[0]?.shipping_rates),showPrice:n,onClick:()=>{b("pickup")},showIcon:i,setAttributes:t,toggleText:p})]}),(0,c.jsx)(Wt,{block:Ct.innerBlockAreas.SHIPPING_METHOD})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(Xt,{})})}),s(1215);const Sc=()=>(0,c.jsxs)("div",{className:"wc-block-components-skeleton wc-block-components-skeleton--checkout-shipping","aria-live":"polite","aria-label":(0,f.__)("Loading shipping options…","woocommerce"),children:[(0,c.jsx)(Mo,{height:"20px",width:"20px",borderRadius:"100%"}),(0,c.jsx)(Mo,{height:"20px",maxWidth:"148px"}),(0,c.jsx)(Mo,{height:"20px",width:"50px"})]}),jc=({packageData:e})=>(0,c.jsx)("ul",{className:"wc-block-components-shipping-rates-control__package-items",children:Object.values(e.items).map(e=>{const t=(0,_e.decodeEntities)(e.name),s=e.quantity;return(0,c.jsx)("li",{className:"wc-block-components-shipping-rates-control__package-item",children:(0,c.jsx)(zt.Label,{label:s>1?`${t} × ${s}`:`${t}`,allowHTML:!0,screenReaderLabel:(0,f.sprintf)(/* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */ /* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
(0,f._n)("%1$s (%2$d unit)","%1$s (%2$d units)",s,"woocommerce"),t,s)})},e.key)})}),Cc=({image:e={},fallbackAlt:t="",width:s,height:o})=>{const r=e.alt||t;let n;e.thumbnail_srcset&&(n=s?`${s}px`:"100px");const i=e.thumbnail?{src:e.thumbnail,alt:r?(0,_e.decodeEntities)(r):"Product Image",srcSet:e.thumbnail_srcset||void 0,sizes:n}:{src:x.PLACEHOLDER_IMG_SRC,alt:"",srcSet:void 0,sizes:void 0};return(0,c.jsx)("img",{src:i.src,alt:i.alt,srcSet:i.srcSet,sizes:i.sizes,width:s,height:o})},Pc=({packageItem:e,cartItems:t=[]})=>{const s=t?.find(t=>t.key===e.key),o=s?.images||[];return(0,c.jsx)(Cc,{image:o.length?o[0]:{},fallbackAlt:s?.name||""})},Ec=e=>{const t=(0,x.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);let s=(0,c.jsxs)(c.Fragment,{children:[Number.isFinite(t)&&(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:(0,fo.getCurrencyFromPriceResponse)(e),value:t}),(0,c.jsxs)("span",{className:"wc-block-components-shipping-rates-control__package__delivery_time",children:[Number.isFinite(t)&&e.delivery_time?" — ":null,(0,_e.decodeEntities)(e.delivery_time)]})]});return 0===t&&(s=(0,c.jsxs)("span",{className:"wc-block-components-shipping-rates-control__package__description--free",children:[(0,f.__)("Free","woocommerce"),(0,c.jsx)("span",{className:"wc-block-components-shipping-rates-control__package__delivery_time",children:e.delivery_time&&" — "+(0,_e.decodeEntities)(e.delivery_time)})]})),{label:(0,_e.decodeEntities)(e.name),value:e.rate_id,description:s}},Nc=({className:e="",noResultsMessage:t,onSelectRate:s,rates:o,renderOption:r=Ec,selectedRate:n,disabled:i=!1,highlightChecked:a=!1})=>{const l=n?.rate_id,[p,m]=(0,d.useState)(l??o[0]?.rate_id);return(0,d.useEffect)(()=>{p&&s(p)},[]),(0,d.useEffect)(()=>{l&&l!==p&&m(l)},[l]),0===o.length?t:(0,c.jsx)(zt.RadioControl,{className:e,onChange:e=>{m(e),s(e)},highlightChecked:a,disabled:i,selected:p??"",options:o.map(r),descriptionStackingDirection:"column"})};s(2793);const Ac=({packageId:e,className:t="",noResultsMessage:s,renderOption:r,packageData:n,collapsible:i,showItems:a,highlightChecked:l=!1})=>{const{selectShippingRate:p,shippingRates:m}=We(),{cartItems:u}=Me(),h=m?.length||1,[g,_]=(0,d.useState)(0),k=h>1||g>1;(0,d.useEffect)(()=>{const e=()=>{_(document.querySelectorAll(".wc-block-components-shipping-rates-control__package").length)};e();const t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),()=>{t.disconnect()}},[]);const b=a??k,w=i??k,y=(0,d.useMemo)(()=>n?.shipping_rates?.find(e=>e?.selected),[n?.shipping_rates]);let x=null;if((w||b)&&(x=(0,c.jsxs)("div",{className:"wc-block-components-shipping-rates-control__package-header",children:[(0,c.jsx)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:(0,us.sanitizeHTML)(String(n.name??""))}}),w&&(0,c.jsx)("div",{className:"wc-block-components-totals-shipping__via",children:(0,_e.decodeEntities)(y?.name)}),b&&(0,c.jsx)(jc,{packageData:n})]}),k)){const e=n.items||[];x=(0,c.jsxs)("div",{className:"wc-block-components-shipping-rates-control__package-container",children:[x,(0,c.jsx)("div",{className:"wc-block-components-shipping-rates-control__package-thumbnails",children:e.slice(0,3).map(e=>(0,c.jsx)(Pc,{packageItem:e,cartItems:u},e.key))})]})}const f=(0,d.useCallback)(t=>{p(t,e)},[e,p]),v={className:t,noResultsMessage:s,rates:n.shipping_rates,onSelectRate:f,selectedRate:n.shipping_rates.find(e=>e.selected),renderOption:r,highlightChecked:l};return w?(0,c.jsx)(zt.Panel,{className:(0,o.A)("wc-block-components-shipping-rates-control__package",k&&"wc-block-components-shipping-rates-control__package--multiple",t),initialOpen:!1,title:x,children:(0,c.jsx)(Nc,{...v})}):(0,c.jsxs)("div",{className:(0,o.A)("wc-block-components-shipping-rates-control__package",k&&"wc-block-components-shipping-rates-control__package--multiple",t),children:[x,(0,c.jsx)(Nc,{...v})]})},Ic=({packages:e,showItems:t,collapsible:s,noResultsMessage:o,renderOption:r,context:n=""})=>e.length?(0,c.jsx)(c.Fragment,{children:e.map(({package_id:e,...i})=>(0,c.jsx)(Ac,{highlightChecked:"woocommerce/cart"!==n,packageId:e,packageData:i,collapsible:s,showItems:t,noResultsMessage:o,renderOption:r},e))}):null,Rc=({shippingRates:e,isLoadingRates:t,className:s,collapsible:o,showItems:r,noResultsMessage:n=(0,c.jsx)(c.Fragment,{}),renderOption:i,context:a})=>{const l=(e=>e.reduce(function(e,t){return e+t.shipping_rates.length},0))(e),p=Be(e),m=Qe(l),u=Qe(p);(0,d.useEffect)(()=>{var e,s;t||m===l&&u===p||(s=l,1===(e=p)?(0,Er.speak)((0,f.sprintf)(/* translators: %d number of shipping options found. */ /* translators: %d number of shipping options found. */
(0,f._n)("%d shipping option was found.","%d shipping options were found.",s,"woocommerce"),s)):(0,Er.speak)((0,f.sprintf)(/* translators: %d number of shipping packages packages. */ /* translators: %d number of shipping packages packages. */
(0,f._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",e,"woocommerce"),e)+" "+(0,f.sprintf)(/* translators: %d number of shipping options available. */ /* translators: %d number of shipping options available. */
(0,f._n)("%d shipping option was found","%d shipping options were found",s,"woocommerce"),s)))},[t,l,p,m,u]);const{extensions:h,receiveCart:g,..._}=Me(),k={className:s,collapsible:o,showItems:r,noResultsMessage:n,renderOption:i,extensions:h,cart:_,components:{ShippingRatesControlPackage:Ac},context:a},{isEditor:w}=b(),{hasSelectedLocalPickup:y,selectedRates:x}=We(),v=(0,pe.isObject)(x)?Object.values(x):[],S=v.every(e=>e===v[0]);return t?(0,c.jsx)(Sc,{}):(0,c.jsxs)(To,{isLoading:t,screenReaderLabel:(0,f.__)("Loading shipping rates…","woocommerce"),showSpinner:!0,children:[y&&"woocommerce/cart"===a&&e.length>1&&!S&&!w&&(0,c.jsx)(Nr,{className:"wc-block-components-notice",isDismissible:!1,status:"warning",children:(0,f.__)("Multiple shipments must have the same pickup location","woocommerce")}),(0,c.jsx)(Ct.ExperimentalOrderShippingPackages.Slot,{...k}),(0,c.jsx)(Ct.ExperimentalOrderShippingPackages,{children:(0,c.jsx)(Ic,{packages:e,noResultsMessage:n,renderOption:i})})]})};function Tc(e){let t,s,o,r=[];for(let c=0;c<e.length;c++)t=e.substring(c),s=t.match(/^&[a-z0-9#]+;/),s?(o=s[0],r.push(o),c+=o.length-1):r.push(e[c]);return r}const Mc=(e,t,s="...")=>{const o=function(e,t){const s=(t=t||{}).limit||100,o=void 0===t.preserveTags||t.preserveTags,r=void 0!==t.wordBreak&&t.wordBreak,c=t.suffix||"...",n=t.moreLink||"",i=t.moreText||"»",a=t.preserveWhiteSpace||!1,l=e.replace(/</g,"\n<").replace(/>/g,">\n").replace(/\n\n/g,"\n").replace(/^\n/g,"").replace(/\n$/g,"").split("\n");let d,p,m,u,h,g,_=0,k=[],b=!1;for(let e=0;e<l.length;e++){if(d=l[e],u=a?d:d.replace(/[ ]+/g," "),!d.length)continue;const t=Tc(u);if("<"!==d[0])if(_>=s)d="";else if(_+t.length>=s){if(p=s-_," "===t[p-1])for(;p&&(p-=1," "===t[p-1]););else m=t.slice(p).indexOf(" "),r||(-1!==m?p+=m:p=d.length);if(d=t.slice(0,p).join("")+c,n){const e=document.createElement("a");e.href=n,e.style.display="inline",e.textContent=i,d+=e.outerHTML}_=s,b=!0}else _+=t.length;else if(o){if(_>=s)if(h=d.match(/[a-zA-Z]+/),g=h?h[0]:"",g)if("</"!==d.substring(0,2))k.push(g),d="";else{for(;k[k.length-1]!==g&&k.length;)k.pop();k.length&&(d=""),k.pop()}else d=""}else d="";l[e]=d}return{html:l.join("\n").replace(/\n/g,""),more:b}}(e,{suffix:s,limit:t});return o.html},Bc=(e,t,s)=>(t<=s?e.start=e.middle+1:e.end=e.middle-1,e),Dc=(e,t,s,o)=>{const r=((e,t,s)=>{let o={start:0,middle:0,end:e.length};for(;o.start<=o.end;)o.middle=Math.floor((o.start+o.end)/2),t.innerHTML=Mc(e,o.middle),o=Bc(o,t.clientHeight,s);return o.middle})(e,t,s);return Mc(e,r-o.length,o)},Oc={className:"read-more-content",ellipsis:"&hellip;",lessText:(0,f.__)("Read less","woocommerce"),maxLines:3,moreText:(0,f.__)("Read more","woocommerce")};class Lc extends d.Component{static defaultProps=Oc;constructor(e){super(e),this.state={isExpanded:!1,clampEnabled:null,content:e.children,summary:"."},this.reviewContent=(0,d.createRef)(),this.reviewSummary=(0,d.createRef)(),this.getButton=this.getButton.bind(this),this.onClick=this.onClick.bind(this)}componentDidMount(){this.setSummary()}componentDidUpdate(e){e.maxLines===this.props.maxLines&&e.children===this.props.children||this.setState({clampEnabled:null,summary:"."},this.setSummary)}setSummary(){if(this.props.children){const{maxLines:e,ellipsis:t}=this.props;if(!this.reviewSummary.current||!this.reviewContent.current)return;const s=(this.reviewSummary.current.clientHeight+1)*e+1,o=this.reviewContent.current.clientHeight+1>s;this.setState({clampEnabled:o}),o&&this.setState({summary:Dc(this.reviewContent.current.innerHTML,this.reviewSummary.current,s,t)})}}getButton(){const{isExpanded:e}=this.state,{className:t,lessText:s,moreText:o}=this.props,r=e?s:o;if(r)return(0,c.jsx)("a",{href:"#more",className:t+"__read_more",onClick:this.onClick,"aria-expanded":!e,role:"button",children:r})}onClick(e){e.preventDefault();const{isExpanded:t}=this.state;this.setState({isExpanded:!t})}render(){const{className:e}=this.props,{content:t,summary:s,clampEnabled:o,isExpanded:r}=this.state;return t?!1===o?(0,c.jsx)("div",{className:e,children:(0,c.jsx)("div",{ref:this.reviewContent,children:t})}):(0,c.jsxs)("div",{className:e,children:[(!r||null===o)&&(0,c.jsx)("div",{ref:this.reviewSummary,"aria-hidden":r,dangerouslySetInnerHTML:{__html:s}}),(r||null===o)&&(0,c.jsx)("div",{ref:this.reviewContent,"aria-hidden":!r,children:t}),this.getButton()]}):null}}const Fc=Lc,Vc=e=>{const t=(0,x.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10),s=e?.selected,o=0===t?(0,c.jsx)("span",{className:"wc-block-checkout__shipping-option--free",children:(0,f.__)("Free","woocommerce")}):(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:(0,fo.getCurrencyFromPriceResponse)(e),value:t});return{label:(0,_e.decodeEntities)(e.name),value:e.rate_id,description:(0,_e.decodeEntities)(e.delivery_time),secondaryLabel:o,secondaryDescription:s&&e.description?(0,c.jsx)(Fc,{maxLines:2,children:(0,_e.decodeEntities)(e.description)}):void 0}},Hc=()=>(0,c.jsx)("p",{role:"status","aria-live":"polite",className:"wc-block-components-shipping-rates-control__no-shipping-address-message",children:(0,f.__)("Enter a shipping address to view shipping options.","woocommerce")}),$c=({noShippingPlaceholder:e=null})=>{const{isEditor:t}=b(),{shippingRates:s,needsShipping:o,isLoadingRates:r,hasCalculatedShipping:n,isCollectable:i}=We(),{shippingAddress:a}=pt(),l=(0,d.useMemo)(()=>i?s.map(e=>({...e,shipping_rates:e.shipping_rates.filter(e=>!Le(e.method_id))})):s,[s,i]);if(!o)return null;const p=Be(s);if(!n&&!p)return(0,c.jsx)(Hc,{});const m=fe(a);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(zt.StoreNoticesContainer,{context:me.SHIPPING_METHODS}),t&&!p?e:(0,c.jsx)(Rc,{noResultsMessage:(0,c.jsx)(c.Fragment,{children:m?(0,c.jsx)(Nr,{isDismissible:!1,className:"wc-block-components-shipping-rates-control__no-results-notice",status:"warning",children:(0,f.__)("No shipping options are available for this address. Please verify the address is correct or try a different address.","woocommerce")}):(0,c.jsx)(Hc,{})}),renderOption:Vc,collapsible:!1,shippingRates:l,isLoadingRates:r,context:"woocommerce/checkout"})]})};s(1393);const zc={...Ds({defaultTitle:(0,f.__)("Shipping options","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},Uc=JSON.parse('{"DD":"Shipping Options","XV":3}');s(7693),(0,a.registerBlockType)("woocommerce/checkout-shipping-methods-block",{apiVersion:Uc.XV,title:Uc.DD,icon:{src:(0,c.jsx)(i.A,{icon:uc.A,className:"wc-block-editor-components-block-icon"})},attributes:zc,edit:({attributes:e,setAttributes:t})=>{const s=(0,x.getSetting)("globalShippingMethods"),r=(0,x.getSetting)("activeShippingZones"),{showShippingMethods:n}=mt();return n?(0,c.jsxs)(qt,{attributes:e,setAttributes:t,className:(0,o.A)("wc-block-checkout__shipping-option",e?.className),children:[(0,c.jsxs)(l.InspectorControls,{children:[(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Shipping Calculations","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("Options that control shipping can be managed in your store settings.","woocommerce")}),(0,c.jsx)(Ot.ExternalLink,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&section=options`,children:(0,f.__)("Manage shipping options","woocommerce")})," "]}),s.length>0&&(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Methods","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("The following shipping integrations are active on your store.","woocommerce")}),s.map(e=>(0,c.jsx)(gr,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&section=${e.id}`,title:e.title,description:e.description},e.id)),(0,c.jsx)(Ot.ExternalLink,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=shipping`,children:(0,f.__)("Manage shipping methods","woocommerce")})]}),r.length&&(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Shipping Zones","woocommerce"),children:[(0,c.jsx)("p",{className:"wc-block-checkout__controls-text",children:(0,f.__)("Shipping Zones can be made managed in your store settings.","woocommerce")}),r.map(e=>(0,c.jsx)(gr,{href:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=shipping&zone_id=${e.id}`,title:e.title,description:e.description},e.id))]})]}),(0,c.jsx)(Zt,{children:(0,c.jsx)($c,{noShippingPlaceholder:(0,c.jsx)(Jr,{icon:uc.A,label:(0,f.__)("Shipping options","woocommerce"),description:(0,f.__)("Your store does not have any Shipping Options configured. Once you have added your Shipping Options they will appear here.","woocommerce"),buttonLabel:(0,f.__)("Configure Shipping Options","woocommerce"),buttonHref:`${x.ADMIN_URL}admin.php?page=wc-settings&tab=shipping`})})}),(0,c.jsx)(Wt,{block:Ct.innerBlockAreas.SHIPPING_METHODS})]}):null},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(Xt,{})})}),s(1817);const qc=({title:e,packageData:t,showItems:s,selectedOption:r,pickupLocations:n,renderPickupLocation:i,packageCount:a,onChange:l})=>{const{shippingRates:d}=We(),{cartItems:p}=Me(),m=(d?.length||1)>1||document.querySelectorAll(".wc-block-components-local-pickup-select .wc-block-components-radio-control").length>1,u=s??m;let h=m&&e&&(0,c.jsx)("div",{children:e});if((m||u)&&t&&(h=(0,c.jsxs)("div",{className:"wc-block-components-shipping-rates-control__package-header",children:[(0,c.jsx)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:(0,us.sanitizeHTML)(String(t.name??""))}}),u&&(0,c.jsx)(jc,{packageData:t})]}),m)){const e=t.items||[];h=(0,c.jsxs)("div",{className:"wc-block-components-shipping-rates-control__package-container",children:[h,(0,c.jsx)("div",{className:"wc-block-components-shipping-rates-control__package-thumbnails",children:e.slice(0,3).map(e=>(0,c.jsx)(Pc,{packageItem:e,cartItems:p},e.key))})]})}return(0,c.jsxs)("div",{className:(0,o.A)("wc-block-components-local-pickup-select",m&&"wc-block-components-local-pickup-select--multiple"),children:[h,(0,c.jsx)(zt.RadioControl,{onChange:l,highlightChecked:!0,selected:r,options:n.map(e=>i(e,a,r))})]})},Wc=(e,t,s="")=>{const o=(0,x.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10),r=(e=>{if(e?.meta_data){const t=e.meta_data.find(e=>"pickup_location"===e.key);return t?t.value:""}return""})(e),n=(e=>{if(e?.meta_data){const t=e.meta_data.find(e=>"pickup_address"===e.key);return t?t.value:""}return""})(e),a=(e=>{if(e?.meta_data){const t=e.meta_data.find(e=>"pickup_details"===e.key);return t?t.value:""}return""})(e);let l=(0,c.jsx)("em",{children:(0,f.__)("free","woocommerce")});return o>0&&(l=1===t?(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:(0,fo.getCurrencyFromPriceResponse)(e),value:o}):(0,d.createInterpolateElement)(/* translators: <price/> is the price of the package, <packageCount/> is the number of packages. These must appear in the translated string. */ /* translators: <price/> is the price of the package, <packageCount/> is the number of packages. These must appear in the translated string. */
(0,f._n)("<price/> x <packageCount/> package","<price/> x <packageCount/> packages",t,"woocommerce"),{price:(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:(0,fo.getCurrencyFromPriceResponse)(e),value:o}),packageCount:(0,c.jsx)(c.Fragment,{children:t})})),{value:e.rate_id,label:r?(0,_e.decodeEntities)(r):(0,_e.decodeEntities)(e.name),secondaryLabel:l,description:n?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(i.A,{icon:$t.A,className:"wc-block-editor-components-block-icon",width:16,height:16}),(0,_e.decodeEntities)(n)]}):void 0,secondaryDescription:s===e?.rate_id&&a?(0,c.jsx)(Fc,{maxLines:2,children:(0,_e.decodeEntities)(a)}):void 0}},Xc=()=>{const{shippingRates:e,selectShippingRate:t}=We(),s=(0,d.useMemo)(()=>(e[0]?.shipping_rates||[]).filter(Oe),[e]),[o,r]=(0,d.useState)(()=>s.find(e=>e.selected)?.rate_id??s[0]?.rate_id),n=(0,d.useCallback)(e=>{r(e),t(e)},[r,t]);(0,d.useEffect)(()=>{o&&t(o)},[]),(0,d.useEffect)(()=>{const e=s.find(e=>e.selected),t=e?.rate_id;t&&t!==o&&r(t)},[s]);const{extensions:i,receiveCart:a,...l}=Me(),p={extensions:i,cart:l,components:{ShippingRatesControlPackage:Ac,LocalPickupSelect:qc},renderPickupLocation:Wc},m=e[0]||null;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Ct.ExperimentalOrderLocalPickupPackages.Slot,{...p}),(0,c.jsx)(Ct.ExperimentalOrderLocalPickupPackages,{children:(0,c.jsx)(qc,{title:m?.name,packageData:m,selectedOption:o??"",renderPickupLocation:Wc,pickupLocations:s,packageCount:Be(e),onChange:e=>n(e)})})]})},Yc={...Ds({defaultTitle:(0,f.__)("Pickup locations","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},Gc=JSON.parse('{"DD":"Pickup Method","XV":3}');s(5991),(0,a.registerBlockType)("woocommerce/checkout-pickup-options-block",{apiVersion:Gc.XV,title:Gc.DD,icon:{src:(0,c.jsx)(i.A,{icon:hc.A,className:"wc-block-editor-components-block-icon"})},attributes:Yc,edit:({attributes:e,setAttributes:t})=>{const{prefersCollection:s}=(0,_.useSelect)(e=>({prefersCollection:e(X.checkoutStore).prefersCollection()})),{className:r}=e;return s&&A?(0,c.jsxs)(qt,{attributes:e,setAttributes:t,className:(0,o.A)("wc-block-checkout__shipping-method",r),children:[(0,c.jsx)(Ot.Disabled,{children:(0,c.jsx)(Xc,{})}),(0,c.jsx)(Wt,{block:Ct.innerBlockAreas.PICKUP_LOCATION})]}):null},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(Xt,{})})});const Jc=({className:e=""})=>{const{cartTotals:t}=Me(),{isLoading:s}=Qo(),o=(0,fo.getCurrencyFromPriceResponse)(t);return(0,c.jsx)(zt.TotalsWrapper,{className:e,children:(0,c.jsx)(zt.Subtotal,{currency:o,values:t,showSkeleton:s})})},Kc=JSON.parse('{"DD":"Subtotal","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-order-summary-subtotal-block",{apiVersion:Kc.XV,title:Kc.DD,icon:{src:(0,c.jsx)(i.A,{icon:Go,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,s=(0,l.useBlockProps)();return(0,c.jsx)("div",{...s,children:(0,c.jsx)(Jc,{className:t})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});const Zc=({className:e=""})=>{const{cartFees:t,cartTotals:s}=Me(),o=(0,fo.getCurrencyFromPriceResponse)(s);return(0,c.jsx)(zt.TotalsWrapper,{className:e,children:(0,c.jsx)(zt.TotalsFees,{currency:o,cartFees:t})})};(0,a.registerBlockType)("woocommerce/checkout-order-summary-fee-block",{apiVersion:3,title:"Fees",icon:{src:(0,c.jsx)(i.A,{icon:Go,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,s=(0,l.useBlockProps)();return(0,c.jsx)("div",{...s,children:(0,c.jsx)(Zc,{className:t})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});const Qc=()=>{const{extensions:e,receiveCart:t,...s}=Me(),o={extensions:e,cart:s,context:"woocommerce/checkout"};return(0,c.jsx)(Ct.ExperimentalDiscountsMeta.Slot,{...o})},en=({className:e=""})=>{const{cartTotals:t,cartCoupons:s}=Me(),{removeCoupon:o,isRemovingCoupon:r}=Bo("wc/checkout"),{isLoading:n}=Qo(),i=(0,fo.getCurrencyFromPriceResponse)(t);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(zt.TotalsWrapper,{className:e,children:(0,c.jsx)(Zo,{cartCoupons:s,currency:i,isRemovingCoupon:r,removeCoupon:o,values:t,isLoading:n})}),(0,c.jsx)(Qc,{})]})},tn=JSON.parse('{"DD":"Discount","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-order-summary-discount-block",{apiVersion:tn.XV,title:tn.DD,icon:{src:(0,c.jsx)(i.A,{icon:Go,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,s=(0,l.useBlockProps)();return(0,c.jsx)("div",{...s,children:(0,c.jsx)(en,{className:t})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});const sn=({className:e=""})=>{const{cartNeedsShipping:t,shippingRates:s,shippingAddress:o}=Me(),r=(0,_.useSelect)(e=>e(X.checkoutStore).prefersCollection());if(!t)return null;const n=((e,t)=>e.map(e=>({...e,shipping_rates:e.shipping_rates.filter(e=>{const s=Le(e.method_id);return t?s:!s})})))(s,r??!1),i=fe(o);return(0,c.jsx)(Ct.TotalsWrapper,{className:e,children:(0,c.jsx)(rr,{shippingRates:n,label:r?(0,f.__)("Pickup","woocommerce"):(0,f.__)("Delivery","woocommerce"),placeholder:(0,c.jsx)("span",{className:"wc-block-components-shipping-placeholder__value",children:i?(0,f.__)("No available delivery option","woocommerce"):(0,f.__)("Enter address to calculate","woocommerce")})})})},on=JSON.parse('{"DD":"Shipping","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-order-summary-shipping-block",{apiVersion:on.XV,title:on.DD,icon:{src:(0,c.jsx)(i.A,{icon:Go,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,s=(0,l.useBlockProps)();return(0,c.jsx)("div",{...s,children:(0,c.jsx)(Zt,{children:(0,c.jsx)(sn,{className:t})})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});var rn=s(7230);const cn=({className:e=""})=>{const t=(0,x.getSetting)("couponsEnabled",!0),{applyCoupon:s,isApplyingCoupon:o}=Bo("wc/checkout");return t?(0,c.jsx)(zt.TotalsWrapper,{className:e,children:(0,c.jsx)(Jo,{onSubmit:s,isLoading:o,instanceId:"coupon"})}):null},nn=JSON.parse('{"DD":"Coupon Form","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-order-summary-coupon-form-block",{apiVersion:nn.XV,title:nn.DD,icon:{src:(0,c.jsx)(i.A,{icon:rn.A,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e})=>{const{className:t}=e,s=(0,l.useBlockProps)();return(0,c.jsx)("div",{...s,children:(0,c.jsx)(Zt,{children:(0,c.jsx)(cn,{className:t})})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});const an=({className:e,showRateAfterTaxName:t})=>{const{cartTotals:s}=Me(),{isLoading:o}=Qo();if((0,x.getSetting)("displayCartPricesIncludingTax",!1)||parseInt(s.total_tax,10)<=0)return null;const r=(0,fo.getCurrencyFromPriceResponse)(s);return(0,c.jsx)(zt.TotalsWrapper,{className:e,children:(0,c.jsx)(zt.TotalsTaxes,{showRateAfterTaxName:t,currency:r,values:s,showSkeleton:o})})},ln={showRateAfterTaxName:{type:"boolean",default:(0,x.getSetting)("displayCartPricesIncludingTax",!1)},lock:{type:"object",default:{remove:!0,move:!0}}},dn=JSON.parse('{"DD":"Taxes","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-order-summary-taxes-block",{apiVersion:dn.XV,title:dn.DD,icon:{src:(0,c.jsx)(i.A,{icon:Go,className:"wc-block-editor-components-block-icon"})},attributes:ln,edit:({attributes:e,setAttributes:t})=>{const{className:s,showRateAfterTaxName:o}=e,r=(0,l.useBlockProps)(),n=(0,x.getSetting)("taxesEnabled"),i=(0,x.getSetting)("displayItemizedTaxes",!1),a=(0,x.getSetting)("displayCartPricesIncludingTax",!1);return(0,c.jsxs)("div",{...r,children:[(0,c.jsx)(l.InspectorControls,{children:n&&i&&!a&&(0,c.jsx)(Ot.PanelBody,{title:(0,f.__)("Taxes","woocommerce"),children:(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Show rate after tax name","woocommerce"),help:(0,f.__)("Show the percentage rate alongside each tax line in the summary.","woocommerce"),checked:o,onChange:()=>t({showRateAfterTaxName:!o})})})}),(0,c.jsx)(an,{className:s,showRateAfterTaxName:o})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});const pn=(0,c.jsxs)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,c.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,c.jsx)("path",{d:"M15.55 13c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.37-.66-.11-1.48-.87-1.48H5.21l-.94-2H1v2h2l3.6 7.59-1.35 2.44C4.52 15.37 5.48 17 7 17h12v-2H7l1.1-2h7.45zM6.16 6h12.15l-2.76 5H8.53L6.16 6zM7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"})]});s(359),s(7826),s(2336);const mn=({rows:e=2})=>(0,c.jsx)("div",{className:"wc-block-components-order-summary","aria-live":"polite","aria-label":(0,f.__)("Loading products in cart…","woocommerce"),children:(0,c.jsx)("div",{className:"wc-block-components-skeleton wc-block-components-skeleton--cart-line-items-checkout wc-block-components-order-summary__content",children:Array.from({length:e}).map((e,t)=>(0,c.jsxs)("div",{className:"wc-block-components-order-summary-item",children:[(0,c.jsx)("div",{className:"wc-block-components-order-summary-item__image",children:(0,c.jsx)(Mo,{width:"48px",height:"48px"})}),(0,c.jsxs)("div",{className:"wc-block-components-order-summary-item__description",children:[(0,c.jsx)(Mo,{width:"90%",maxWidth:"173px",height:".875em"}),(0,c.jsx)(Mo,{width:"50%",maxWidth:"85px",height:".875em"})]}),(0,c.jsx)("div",{className:"wc-block-components-order-summary-item__total-price",children:(0,c.jsx)(Mo,{width:"45px",height:".875em"})})]},t))})});s(8501);const un=({currency:e,maxPrice:t,minPrice:s,priceClassName:r,priceStyle:n={}})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"screen-reader-text",children:(0,f.sprintf)(/* translators: %1$s min price, %2$s max price */ /* translators: %1$s min price, %2$s max price */
(0,f.__)("Price between %1$s and %2$s","woocommerce"),(0,fo.formatPrice)(s),(0,fo.formatPrice)(t))}),(0,c.jsxs)("span",{"aria-hidden":!0,children:[(0,c.jsx)(zt.FormattedMonetaryAmount,{className:(0,o.A)("wc-block-components-product-price__value",r),currency:e,value:s,style:n})," — ",(0,c.jsx)(zt.FormattedMonetaryAmount,{className:(0,o.A)("wc-block-components-product-price__value",r),currency:e,value:t,style:n})]})]}),hn=({currency:e,regularPriceClassName:t,regularPriceStyle:s,regularPrice:r,priceClassName:n,priceStyle:i,price:a})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"screen-reader-text",children:(0,f.__)("Previous price:","woocommerce")}),(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.jsx)("del",{className:(0,o.A)("wc-block-components-product-price__regular",t),style:s,translate:"no",children:e}),value:r}),(0,c.jsx)("span",{className:"screen-reader-text",children:(0,f.__)("Discounted price:","woocommerce")}),(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:e,renderText:e=>(0,c.jsx)("ins",{className:(0,o.A)("wc-block-components-product-price__value","is-discounted",n),style:i,translate:"no",children:e}),value:a})]}),gn=({align:e,className:t,currency:s,format:r="<price/>",maxPrice:n,minPrice:i,price:a,priceClassName:l,priceStyle:p,regularPrice:m,regularPriceClassName:u,regularPriceStyle:h,style:g})=>{const _=(0,o.A)(t,"price","wc-block-components-product-price",{[`wc-block-components-product-price--align-${e}`]:e});r.includes("<price/>")||(r="<price/>",console.error("Price formats need to include the `<price/>` tag."));const k=void 0!==m&&void 0!==a&&a<m;let b=(0,c.jsx)("span",{className:(0,o.A)("wc-block-components-product-price__value",l)});return k?b=(0,c.jsx)(hn,{currency:s,price:a,priceClassName:l,priceStyle:p,regularPrice:m,regularPriceClassName:u,regularPriceStyle:h}):void 0!==i&&void 0!==n?b=(0,c.jsx)(un,{currency:s,maxPrice:n,minPrice:i,priceClassName:l,priceStyle:p}):(a||0===a)&&(b=(0,c.jsx)(zt.FormattedMonetaryAmount,{className:(0,o.A)("wc-block-components-product-price__value",l),currency:s,value:a,style:p})),(0,c.jsx)("span",{className:_,style:g,children:(0,d.createInterpolateElement)(r,{price:b})})};s(959);const kn=({className:e="",disabled:t=!1,name:s,permalink:r="",target:n,rel:i,style:a,onClick:l,disabledTagName:d="span",...p})=>{const m=(0,o.A)("wc-block-components-product-name",e),u=d;if(t){const e=p;return(0,c.jsx)(u,{className:m,...e,dangerouslySetInnerHTML:{__html:s}})}return(0,c.jsx)("a",{className:m,href:r,target:n,...p,dangerouslySetInnerHTML:{__html:s},style:a})};var bn=s(5754),wn=s(5341),yn=s(2892);s(7605);const xn=({children:e,className:t})=>(0,c.jsx)("div",{className:(0,o.A)("wc-block-components-product-badge",t),children:e}),fn=()=>(0,c.jsx)(xn,{className:"wc-block-components-product-backorder-badge",children:(0,f.__)("Available on backorder","woocommerce")});var vn=s(7356);s(3692);const Sn=["a","b","em","i","strong","br","abbr","span"],jn=["target","href","rel","name","download","class","title"],Cn=({details:e=[]})=>{if(!Array.isArray(e))return null;const t=e.filter(e=>!e.hidden);return 0===t.length?null:(0,c.jsx)("div",{className:"wc-block-components-product-details",children:t.map((e,s)=>{const o=e?.key||e.name||"",r=document.createElement("div");r.innerHTML=o;const n=r.textContent||r.innerText||"",i=e?.className||(n?`wc-block-components-product-details__${(0,vn.c)(n)}`:""),a=s===t.length-1;return(0,c.jsxs)("span",{className:i,children:[o&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"wc-block-components-product-details__name",dangerouslySetInnerHTML:{__html:(0,us.sanitizeHTML)(o,{tags:Sn,attr:jn})+":"}})," "]}),(0,c.jsx)("span",{className:"wc-block-components-product-details__value",dangerouslySetInnerHTML:{__html:(0,us.sanitizeHTML)(e.display||e.value,{tags:Sn,attr:jn})}}),!a&&(0,c.jsx)("span",{"aria-hidden":"true",children:" / "})]},o+(e.display||e.value))})})},Pn=window.wp.wordcount,En=["a","b","em","i","strong","p","br","ul","ol","li","h1","h2","h3","h4","h5","h6","pre","blockquote","img"],Nn=["target","href","rel","name","download","src","class","alt","style"],An=({source:e,maxLength:t=15,countType:s="words",className:o="",style:r={}})=>{const n=(0,d.useMemo)(()=>((e,t=15,s="words")=>{const o=(0,_r.autop)(e);if((0,Pn.count)(o,s)<=t)return o;const r=(e=>{const t=e.indexOf("</p>");return-1===t?e:e.substr(0,t+4)})(o);return(0,Pn.count)(r,s)<=t?r:"words"===s?wr(r,t):yr(r,t,"characters_including_spaces"===s)})(e,t,s),[e,t,s]);return(0,c.jsx)(d.RawHTML,{style:r,className:o,children:(0,us.sanitizeHTML)(n,{tags:En,attr:Nn})})},In=({className:e,shortDescription:t="",fullDescription:s=""})=>{const o=t||s;return o?(0,c.jsx)(An,{className:e,source:o,maxLength:15,countType:v.wordCountType||"words"}):null};s(8879);const Rn=({shortDescription:e="",fullDescription:t="",itemData:s=[],variation:o=[]})=>(0,c.jsxs)("div",{className:"wc-block-components-product-metadata",children:[(0,c.jsx)(In,{className:"wc-block-components-product-metadata__description",shortDescription:e,fullDescription:t}),(0,c.jsx)(Cn,{details:s}),(0,c.jsx)(Cn,{details:o.map(({attribute:e="",value:t})=>({key:e,value:t}))})]}),Tn=({currency:e,saleAmount:t,format:s="<price/>"})=>{if(!t||t<=0)return null;s.includes("<price/>")||(s="<price/>",console.error("Price formats need to include the `<price/>` tag."));const o=(0,f.sprintf)(/* translators: %s will be replaced by the discount amount */ /* translators: %s will be replaced by the discount amount */
(0,f.__)("Save %s","woocommerce"),s);return(0,c.jsx)(xn,{className:"wc-block-components-sale-badge",children:(0,d.createInterpolateElement)(o,{price:(0,c.jsx)(zt.FormattedMonetaryAmount,{currency:e,value:t})})})},Mn=({cartItem:e,disableProductDescriptions:t})=>{const{images:s,show_backorder_badge:r,name:n,permalink:i,prices:a,quantity:l,short_description:p,description:m,item_data:u,variation:h,totals:g,extensions:_}=e,{receiveCart:k,...b}=Me(),w=(0,d.useMemo)(()=>({context:"summary",cartItem:e,cart:b}),[e,b]),y=(0,fo.getCurrencyFromPriceResponse)(a),v=(0,Ct.applyCheckoutFilter)({filterName:"itemName",defaultValue:n,extensions:_,arg:w}),S=(0,pe.isString)(a.raw_prices.precision)?parseInt(a.raw_prices.precision,10):a.raw_prices.precision,j=(0,wn.i)((0,wn.n)((0,bn.uE)({amount:parseInt(a.raw_prices.regular_price,10),currency:yn.B3,scale:S}),y.minorUnit)).amount,C=(0,wn.i)((0,wn.n)((0,bn.uE)({amount:parseInt(a.raw_prices.price,10),currency:yn.B3,scale:S}),y.minorUnit)).amount,P=(0,fo.getCurrencyFromPriceResponse)(g);let E=parseInt(g.line_subtotal,10);(0,x.getSetting)("displayCartPricesIncludingTax",!1)&&(E+=parseInt(g.line_subtotal_tax,10));const N=(0,wn.i)((0,bn.uE)({amount:E,currency:yn.B3,scale:P.minorUnit})).amount,A=function(e,t){const s="string"==typeof e.raw_prices.precision?parseInt(e.raw_prices.precision,10):e.raw_prices.precision,o=(0,bn.uE)({amount:parseInt(e.raw_prices.regular_price,10),currency:yn.B3,scale:s}),r=(0,bn.uE)({amount:parseInt(e.raw_prices.price,10),currency:yn.B3,scale:s});return(0,wn.i)((0,wn.n)((0,wn.o)(o,r),t)).amount}(a,y.minorUnit),I=(0,Ct.applyCheckoutFilter)({filterName:"subtotalPriceFormat",defaultValue:"<price/>",extensions:_,arg:w,validation:Ct.productPriceValidation}),R=(0,Ct.applyCheckoutFilter)({filterName:"saleBadgePriceFormat",defaultValue:"<price/>",extensions:_,arg:w,validation:Ct.productPriceValidation}),T=(0,Ct.applyCheckoutFilter)({filterName:"cartItemPrice",defaultValue:"<price/>",extensions:_,arg:w,validation:Ct.productPriceValidation}),M=(0,f._n)("Total price for <quantity/> <productName/> item: <price/>","Total price for <quantity/> <productName/> items: <price/>",l,"woocommerce"),B=(0,Ct.applyCheckoutFilter)({filterName:"cartItemScreenReaderPrice",defaultValue:M,extensions:_,arg:w,validation:Ct.productPriceScreenReaderValidation}).replace(/<(quantity|productName|price)\/>/g,(e,t)=>{switch(t){case"quantity":return String(l);case"productName":return v;case"price":return(0,fo.formatPrice)(N,P)}return""}),D=(0,Ct.applyCheckoutFilter)({filterName:"cartItemClass",defaultValue:"",extensions:_,arg:w}),O=t?{itemData:u,variation:h}:{itemData:u,variation:h,shortDescription:p,fullDescription:m};return(0,c.jsxs)("div",{className:(0,o.A)("wc-block-components-order-summary-item",D),children:[(0,c.jsxs)("div",{className:"wc-block-components-order-summary-item__image",children:[(0,c.jsx)("div",{className:"wc-block-components-order-summary-item__quantity",children:(0,c.jsx)(zt.Label,{label:l.toString(),screenReaderLabel:(0,f.sprintf)(/* translators: %d number of products of the same type in the cart */ /* translators: %d number of products of the same type in the cart */
(0,f._n)("%d item","%d items",l,"woocommerce"),l)})}),(0,c.jsx)(Cc,{image:s.length?s[0]:{},fallbackAlt:v,width:48,height:48})]}),(0,c.jsxs)("div",{className:"wc-block-components-order-summary-item__description",children:[(0,c.jsx)(kn,{disabled:!0,name:v,permalink:i,disabledTagName:"h3"}),(0,c.jsx)("div",{className:"wc-block-cart-item__prices",children:(0,c.jsx)(gn,{currency:y,price:C,regularPrice:j,className:"wc-block-components-order-summary-item__individual-prices",priceClassName:"wc-block-components-order-summary-item__individual-price",regularPriceClassName:"wc-block-components-order-summary-item__regular-individual-price",format:I})}),r&&(0,c.jsx)(fn,{}),(0,c.jsx)(Rn,{...O})]}),(0,c.jsx)("span",{className:"screen-reader-text",children:B}),(0,c.jsx)("div",{className:"wc-block-components-order-summary-item__total-price","aria-hidden":"true",children:(0,c.jsxs)("div",{className:"wc-block-cart-item__total-price-and-sale-badge-wrapper",children:[(0,c.jsx)(gn,{currency:P,format:T,price:N}),(0,c.jsx)(Tn,{currency:y,saleAmount:A*l,format:R})]})})]})};s(6161);const Bn=({cartItems:e=[],disableProductDescriptions:t=!1})=>{const{isLarge:s}=u(),{cartIsLoading:r,hasPendingItemsOperations:n}=Me(),i=r||n;return(0,c.jsx)(er,{isLoading:i,skeleton:(0,c.jsx)(mn,{rows:e?.length||2}),children:(0,c.jsx)("div",{className:(0,o.A)("wc-block-components-order-summary",{"is-large":s}),children:(0,c.jsx)("div",{className:"wc-block-components-order-summary__content",children:e.map(e=>(0,c.jsx)(Mn,{disableProductDescriptions:t,cartItem:e},e.key))})})})},Dn=({className:e="",disableProductDescriptions:t=!1})=>{const{cartItems:s}=Me();return(0,c.jsx)(zt.TotalsWrapper,{className:e,children:(0,c.jsx)(Bn,{cartItems:s,disableProductDescriptions:t})})},On=JSON.parse('{"DD":"Cart Items","XV":3}');(0,a.registerBlockType)("woocommerce/checkout-order-summary-cart-items-block",{apiVersion:On.XV,title:On.DD,icon:{src:(0,c.jsx)(i.A,{icon:pn,className:"wc-block-editor-components-block-icon"})},edit:({attributes:e,setAttributes:t})=>{const{className:s="",disableProductDescriptions:o=!1}=e,r=(0,l.useBlockProps)();return(0,c.jsxs)("div",{...r,children:[z()&&(0,c.jsx)(l.InspectorControls,{children:(0,c.jsx)(Ot.PanelBody,{title:(0,f.__)("Settings","woocommerce"),children:(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Disable product descriptions","woocommerce"),help:(0,f.__)("Disable display of product descriptions.","woocommerce"),checked:o,onChange:()=>t({disableProductDescriptions:!o})})})}),(0,c.jsx)(Dn,{disableProductDescriptions:o,className:s})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save()})});const Ln=JSON.parse('{"DD":"Totals","XV":3}');s(2739),(0,a.registerBlockType)("woocommerce/checkout-order-summary-totals-block",{apiVersion:Ln.XV,title:Ln.DD,icon:{src:(0,c.jsx)(i.A,{icon:Go,className:"wc-block-editor-components-block-icon"})},edit:({clientId:e})=>{const t=(0,l.useBlockProps)(),s=Bt(Ct.innerBlockAreas.CHECKOUT_ORDER_SUMMARY_TOTALS),o=[["woocommerce/checkout-order-summary-subtotal-block",{},[]],["woocommerce/checkout-order-summary-fee-block",{},[]],["woocommerce/checkout-order-summary-discount-block",{},[]],["woocommerce/checkout-order-summary-shipping-block",{},[]],["woocommerce/checkout-order-summary-taxes-block",{},[]]];return Dt({clientId:e,registeredBlocks:s,defaultTemplate:o}),(0,c.jsx)("div",{...t,children:(0,c.jsx)(l.InnerBlocks,{allowedBlocks:s,template:o})})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save(),children:(0,c.jsx)(l.InnerBlocks.Content,{})})}),s(4259);var Fn=s(8558);const Vn=(e,t=!0)=>{t?window.document.body.classList.add(e):window.document.body.classList.remove(e)},Hn=({attributes:e,setAttributes:t})=>{const{hasDarkControls:s,showFormStepNumbers:o}=e;return(0,c.jsx)(l.InspectorControls,{children:(0,c.jsxs)(Ot.PanelBody,{title:(0,f.__)("Style","woocommerce"),children:[(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Show form step numbers","woocommerce"),checked:o,onChange:()=>t({showFormStepNumbers:!o})}),(0,c.jsx)(Ot.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,f.__)("Dark mode inputs","woocommerce"),help:(0,f.__)("Inputs styled specifically for use on dark background colors.","woocommerce"),checked:s,onChange:()=>t({hasDarkControls:!s})})]})})},$n="core/editor";function zn({block:e}){const t="checkout"===e?j:E,s="checkout"===e?"woocommerce_checkout_page_id":"woocommerce_cart_page_id",{saveEntityRecord:o}=(0,_.useDispatch)(Et.store),{editPost:r,savePost:n}=(0,_.useDispatch)($n),{slug:i,postPublished:a,currentPostId:l}=(0,_.useSelect)(s=>{const{getEntityRecord:o}=s(Et.store),r=s($n);return{slug:o("postType","page",t)?.slug||e,postPublished:r?.isCurrentPostPublished?.()??!1,currentPostId:r?.getCurrentPostId?.()??0}},[]),[p,m]=(0,d.useState)("pristine"),u=(0,d.useCallback)(()=>{m("updating"),Promise.resolve().then(()=>it()({path:`/wc/v3/settings/advanced/${s}`,method:"GET"})).catch(e=>{"rest_setting_setting_invalid"===e.code&&m("error")}).then(()=>{if(!a)return r({status:"publish"}),n()}).then(()=>it()({path:`/wc/v3/settings/advanced/${s}`,method:"POST",data:{value:l.toString()}})).then(()=>{if(0!==t)return o("postType","page",{id:t,slug:`${i}-2`})}).then(()=>r({slug:i})).then(()=>n()).then(()=>m("updated"))},[a,r,n,s,l,t,o,i]);let h;return h="checkout"===e?(0,d.createInterpolateElement)((0,f.__)("If you would like to use this block as your default checkout, <a>update your page settings</a>.","woocommerce"),{a:(0,c.jsx)("a",{href:"#",onClick:u,children:(0,f.__)("update your page settings","woocommerce")})}):(0,d.createInterpolateElement)((0,f.__)("If you would like to use this block as your default cart, <a>update your page settings</a>.","woocommerce"),{a:(0,c.jsx)("a",{href:"#",onClick:u,children:(0,f.__)("update your page settings","woocommerce")})}),"string"==typeof pagenow&&"site-editor"===pagenow||l===t||"dismissed"===p?null:(0,c.jsx)(Ot.Notice,{className:"wc-default-page-notice",status:"updated"===p?"success":"info",onRemove:()=>m("dismissed"),spokenMessage:"updated"===p?(0,f.__)("Page settings updated","woocommerce"):h,children:"updated"===p?(0,f.__)("Page settings updated","woocommerce"):(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("p",{children:h})})})}s(3650);const Un=[],qn=e=>{const[t,s,o]=(()=>{const e={};(0,x.getSetting)("incompatibleExtensions")&&(0,x.getSetting)("incompatibleExtensions").forEach(t=>{e[t.id]=t.title});const t=Object.keys(e),s=t.length;return[e,t,s]})(),[r,c,n]=(()=>{const{incompatiblePaymentMethods:e}=(0,_.useSelect)(e=>{const{getIncompatiblePaymentMethods:t}=e(X.paymentStore);return{incompatiblePaymentMethods:t()}},[]),t=Object.keys(e);return[e,t,t.length]})(),i={...t,...r},a=[...s,...c],l=o+n,[p,m]=((e,t)=>{const[s,o]=(0,d.useState)(()=>{const s=window.localStorage.getItem(e);if(s)try{return JSON.parse(s)}catch{console.error(`Value for key '${e}' could not be retrieved from localStorage because it can't be parsed.`)}return t});return(0,d.useEffect)(()=>{try{window.localStorage.setItem(e,JSON.stringify(s))}catch{console.error(`Value for key '${e}' could not be saved in localStorage because it can't be converted into a string.`)}},[e,s]),[s,o]})("wc-blocks_dismissed_incompatible_extensions_notices",Un),[u,h]=(0,d.useState)(!1),g=p.some(t=>{return Object.keys(t).includes(e)&&(s=t[e],o=a,s.length===o.length&&new Set([...s,...o]).size===s.length);var s,o}),k=0===l||g;return(0,d.useEffect)(()=>{h(!k),k||g||m(t=>t.reduce((t,s)=>(Object.keys(s).includes(e)||t.push(s),t),[]))},[k,g,m,e]),[u,()=>{const t=new Set(p);t.add({[e]:a}),m([...t])},(b=i,Object.fromEntries(Object.entries(b).sort(([,e],[,t])=>e.localeCompare(t)))),l];var b};var Wn=s(1512),Xn=s.n(Wn);Xn()("wc-admin:tracks:stats");const Yn=Xn()("wc-admin:tracks");function Gn(e,t){if(Yn("recordevent %s %o","wcadmin_"+e,t,{_tqk:window._tkq,shouldRecord:!!window._tkq&&!!window.wcTracks&&!!window.wcTracks.isEnabled}),!window.wcTracks||"function"!=typeof window.wcTracks.recordEvent)return!1;window.wcTracks.recordEvent(e,t)}const Jn=({blocks:e,findCondition:t})=>{for(const s of e){if(t(s))return s;if(s.innerBlocks){const e=Jn({blocks:s.innerBlocks,findCondition:t});if(e)return e}}},Kn=({blockType:e="woocommerce/cart"})=>"woocommerce/cart"===e?(0,c.jsx)("p",{children:(0,f.__)("If you continue, the cart block will be replaced with the classic experience powered by shortcodes. This means that you may lose customizations that you made to the cart block.","woocommerce")}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,f.__)("If you continue, the checkout block will be replaced with the classic experience powered by shortcodes. This means that you may lose:","woocommerce")}),(0,c.jsxs)("ul",{className:"cross-list",children:[(0,c.jsx)("li",{children:(0,f.__)("Customizations and updates to the block","woocommerce")}),(0,c.jsx)("li",{children:(0,f.__)("Additional local pickup options created for the new checkout","woocommerce")})]})]});function Zn({block:e,clientId:t,type:s}){const{createInfoNotice:o}=(0,_.useDispatch)(et.store),{replaceBlock:r,selectBlock:n}=(0,_.useDispatch)(l.store),[i,p]=(0,d.useState)(!1),m=()=>p(!1),{undo:u}=(0,_.useDispatch)(Et.store),[,,h,g]=qn(e),k="woocommerce/cart"===e,b=k?(0,f.__)("Switch to classic cart","woocommerce"):(0,f.__)("Switch to classic checkout","woocommerce"),w=k?(0,f.__)("Switched to classic cart.","woocommerce"):(0,f.__)("Switched to classic checkout.","woocommerce"),y=k?"cart":"checkout",x={shortcode:y,notice:"incompatible"===s?"incompatible_notice":"generic_notice",incompatible_extensions_count:g,incompatible_extensions_names:JSON.stringify(h)},{getBlocks:v}=(0,_.useSelect)(e=>({getBlocks:e(l.store).getBlocks}),[]),S=()=>{u(),Gn("switch_to_classic_shortcode_undo",x)};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Ot.Button,{variant:"secondary",onClick:()=>{Gn("switch_to_classic_shortcode_click",x),p(!0)},children:b}),i&&(0,c.jsxs)(Ot.Modal,{size:"medium",title:b,onRequestClose:m,className:"wc-blocks-switch-to-classic-shortcode-modal-content",children:[(0,c.jsx)(Kn,{blockType:e}),(0,c.jsxs)(Ot.TabbableContainer,{className:"wc-blocks-switch-to-classic-shortcode-modal-actions",children:[(0,c.jsx)(Ot.Button,{variant:"primary",isDestructive:!0,onClick:()=>{r(t,(0,a.createBlock)("woocommerce/classic-shortcode",{shortcode:y})),Gn("switch_to_classic_shortcode_confirm",x),(()=>{const e=Jn({blocks:v(),findCondition:e=>"woocommerce/classic-shortcode"===e.name});e&&n(e.clientId)})(),o(w,{actions:[{label:(0,f.__)("Undo","woocommerce"),onClick:S}],type:"snackbar"}),m()},children:(0,f.__)("Switch","woocommerce")})," ",(0,c.jsx)(Ot.Button,{variant:"secondary",onClick:()=>{Gn("switch_to_classic_shortcode_cancel",x),m()},children:(0,f.__)("Cancel","woocommerce")})]})]})]})}function Qn({block:e,clientId:t}){const[s,o,r,n]=qn(e);if(!s)return null;const a=(0,c.jsx)(c.Fragment,{children:n>1?(0,d.createInterpolateElement)((0,f.__)("Some active extensions do not yet support this block. This may impact the shopper experience. <a>Learn more</a>","woocommerce"),{a:(0,c.jsx)(Ot.ExternalLink,{href:"https://woocommerce.com/document/woocommerce-store-editing/customizing-cart-and-checkout/#incompatible-extensions/"})}):(0,d.createInterpolateElement)((0,f.sprintf)(
// translators: %s is the name of the extension.
// translators: %s is the name of the extension.
(0,f.__)("<strong>%s</strong> does not yet support this block. This may impact the shopper experience. <a>Learn more</a>","woocommerce"),Object.values(r)[0]),{strong:(0,c.jsx)("strong",{}),a:(0,c.jsx)(Ot.ExternalLink,{href:"https://woocommerce.com/document/woocommerce-store-editing/customizing-cart-and-checkout/#incompatible-extensions/"})})}),l=Object.entries(r),p=l.length-2;return(0,c.jsx)(Ot.Notice,{className:"wc-blocks-incompatible-extensions-notice",status:"warning",onRemove:o,spokenMessage:a,children:(0,c.jsxs)("div",{className:"wc-blocks-incompatible-extensions-notice__content",children:[(0,c.jsx)(i.A,{className:"wc-blocks-incompatible-extensions-notice__warning-icon",icon:(0,c.jsx)(hr,{})}),(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:a}),n>1&&(0,c.jsx)("ul",{children:l.slice(0,2).map(([e,t])=>(0,c.jsx)("li",{className:"wc-blocks-incompatible-extensions-notice__element",children:t},e))}),l.length>2&&(0,c.jsxs)("details",{children:[(0,c.jsxs)("summary",{children:[(0,c.jsx)("span",{children:(0,f.sprintf)(
// translators: %s is the number of incompatible extensions.
// translators: %s is the number of incompatible extensions.
(0,f._n)("%s more incompatibility","%s more incompatibilities",p,"woocommerce"),p)}),(0,c.jsx)(i.A,{icon:Qt.A})]}),(0,c.jsx)("ul",{children:l.slice(2).map(([e,t])=>(0,c.jsx)("li",{className:"wc-blocks-incompatible-extensions-notice__element",children:t},e))})]}),(0,c.jsx)(Zn,{block:e,clientId:t,type:"incompatible"})]})]})})}s(4490),s(6342);var ei=s(9863);s(4268);const ti=({text:e,title:t=(0,f.__)("Feedback?","woocommerce"),url:s})=>{const[o,r]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{r(!0)},[]),(0,c.jsx)(c.Fragment,{children:o&&(0,c.jsxs)("div",{className:"wc-block-feedback-prompt",children:[(0,c.jsx)(i.A,{icon:ei.A}),(0,c.jsx)("h2",{className:"wc-block-feedback-prompt__title",children:t}),(0,c.jsx)("p",{className:"wc-block-feedback-prompt__text",children:e}),(0,c.jsxs)("a",{href:s,className:"wc-block-feedback-prompt__link",rel:"noreferrer noopener",target:"_blank",children:[(0,f.__)("Give us your feedback.","woocommerce"),(0,c.jsx)(i.A,{icon:mr.A,size:16})]})]})})},si=()=>(0,c.jsx)(ti,{text:(0,f.__)("We are currently working on improving our cart and checkout blocks to provide merchants with the tools and customization options they need.","woocommerce"),url:"https://github.com/woocommerce/woocommerce/discussions/new?category=checkout-flow&labels=type%3A+product%20feedback"}),oi=({clientId:e})=>{const{isCart:t,isCheckout:s,parentId:o}=(0,_.useSelect)(t=>{const{getBlockParentsByBlockName:s,getBlockName:o}=t(l.store),r=s(e,["woocommerce/cart","woocommerce/checkout"]).reduce((e,t)=>(e[o(t)]=t,e),{}),c=o(e),n=Object.keys(r).includes("woocommerce/cart"),i=Object.keys(r).includes("woocommerce/checkout"),a="woocommerce/cart"===c||n,d=a?"woocommerce/cart":"woocommerce/checkout";return{isCart:a,isCheckout:"woocommerce/checkout"===c||i,parentId:c===d?e:r[d]}},[e]);return(t||s)&&(0,c.jsxs)(l.InspectorControls,{children:[(0,c.jsx)(Qn,{block:t?"woocommerce/cart":"woocommerce/checkout",clientId:o}),(0,c.jsx)(zn,{block:s?"checkout":"cart"}),(0,c.jsx)(si,{})]})},ri=(0,p.createHigherOrderComponent)(e=>t=>{const{clientId:s,name:o,isSelected:r}=t;return(0,c.jsxs)(c.Fragment,{children:[o.startsWith("woocommerce/")&&r&&(0,c.jsx)(oi,{clientId:s}),(0,c.jsx)(e,{...t},"edit")]})},"withSidebarNotices");(0,Ue.hasFilter)("editor.BlockEdit","woocommerce/add/sidebar-compatibility-notice")||(0,Ue.addFilter)("editor.BlockEdit","woocommerce/add/sidebar-compatibility-notice",ri,11),(0,Ue.hasFilter)("blocks.registerBlockType","core/lock/addAttribute")||(0,_.subscribe)(()=>{const e=(0,_.select)(l.store);if(!e)return;const t=e.getSelectedBlock();t&&(Vn("wc-lock-selected-block--remove",!!t?.attributes?.lock?.remove),Vn("wc-lock-selected-block--move",!!t?.attributes?.lock?.move))});const ci=["woocommerce/checkout-fields-block","woocommerce/checkout-totals-block"],ni={hasDarkControls:{type:"boolean",default:(0,x.getSetting)("hasDarkEditorStyleSupport",!1)},showRateAfterTaxName:{type:"boolean",default:(0,x.getSetting)("displayCartPricesIncludingTax",!1)}},ii={showOrderNotes:{type:"boolean",default:!0},showPolicyLinks:{type:"boolean",default:!0},showReturnToCart:{type:"boolean",default:!0},cartPageId:{type:"number",default:0},showCompanyField:{type:"boolean",default:!1},requireCompanyField:{type:"boolean",default:!1},showApartmentField:{type:"boolean",default:!0},requireApartmentField:{type:"boolean",default:!1},showPhoneField:{type:"boolean",default:!0},requirePhoneField:{type:"boolean",default:!1}},ai=JSON.parse('{"name":"woocommerce/checkout","version":"1.0.0","title":"Checkout","description":"Display a checkout form so your customers can submit orders.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"align":["wide"],"html":false,"multiple":false},"example":{"viewportWidth":800},"attributes":{"align":{"type":"string","default":"wide"},"showFormStepNumbers":{"type":"boolean","default":false}},"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),li={icon:{src:(0,c.jsx)(i.A,{icon:n,className:"wc-block-editor-components-block-icon"})},attributes:{...ai.attributes,...ni,...ii},edit:({clientId:e,attributes:t,setAttributes:s})=>{const{showOrderNotes:r,showPolicyLinks:n,showReturnToCart:i,showRateAfterTaxName:p,cartPageId:m,showFormStepNumbers:u=!1,hasDarkControls:h=!1}=t,k=(0,_.useSelect)(e=>e(Et.store).getEditedEntityRecord("root","site"),[]),b={...x.defaultFields,...Object.fromEntries(Object.entries({phone:"optional",company:"hidden",address_2:"optional"}).map(([e,t])=>{const s=k[`woocommerce_checkout_${e}_field`]||t;return[e,{...x.defaultFields[e],required:"required"===s,hidden:"hidden"===s}]}))},y=(0,d.useRef)((0,Pt.getQueryArg)(window.location.href,"focus"));(0,d.useEffect)(()=>{"checkout"!==y.current||(0,_.select)("core/block-editor").hasSelectedBlock()||((0,_.dispatch)("core/block-editor").selectBlock(e),(0,_.dispatch)("core/interface").enableComplementaryArea("core/edit-site","edit-site/block-inspector"))},[e]);const f=((e={})=>{const t=(0,d.useRef)(),s=(0,l.useBlockProps)({ref:t,...e});return(({ref:e})=>{const t=(0,Ue.hasFilter)("blocks.registerBlockType","core/lock/addAttribute"),s=e.current;(0,d.useEffect)(()=>{if(s&&!t)return s.addEventListener("keydown",e,{capture:!0,passive:!1}),()=>{s.removeEventListener("keydown",e,{capture:!0})};function e(e){const{keyCode:t,target:s}=e;if(!(s instanceof HTMLElement))return;if(t!==Fn.BACKSPACE&&t!==Fn.DELETE)return;if((0,Gt.isTextField)(s))return;const o=s;if(void 0===o.dataset.block)return;const r=(e=>{if(!e)return!1;const{getBlock:t}=(0,_.select)(l.store),s=t(e);if("boolean"==typeof s?.attributes?.lock?.remove)return s.attributes.lock.remove;const o=(0,a.getBlockType)(s.name);return"boolean"==typeof o?.attributes?.lock?.default?.remove&&o?.attributes?.lock?.default?.remove})(o.dataset.block);r&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation())}},[s,t])})({ref:t}),s})();return(0,c.jsxs)("div",{...f,children:[(0,c.jsx)(l.InspectorControls,{children:(0,c.jsx)(Hn,{attributes:t,setAttributes:s})}),(0,c.jsx)(w,{previewData:{previewCart:St,previewSavedPaymentMethods:jt,defaultFields:b},children:(0,c.jsx)(Ct.SlotFillProvider,{children:(0,c.jsx)(ht,{children:(0,c.jsx)(g,{className:(0,o.A)("wc-block-checkout",{"has-dark-controls":h}),children:(0,c.jsx)(Rt.Provider,{value:{showOrderNotes:r,showPolicyLinks:n,showReturnToCart:i,cartPageId:m,showRateAfterTaxName:p,showFormStepNumbers:u,defaultFields:b},children:(0,c.jsx)(l.InnerBlocks,{allowedBlocks:ci,template:[["woocommerce/checkout-totals-block",{},[]],["woocommerce/checkout-fields-block",{},[]]],templateLock:"insert"})})})})})})]})},save:()=>(0,c.jsx)("div",{...l.useBlockProps.save({className:"wc-block-checkout is-loading"}),children:(0,c.jsx)(l.InnerBlocks.Content,{})}),transforms:{to:[{type:"block",blocks:["woocommerce/classic-shortcode"],transform:e=>(0,a.createBlock)("woocommerce/classic-shortcode",{shortcode:"checkout",align:e.align},[])}]},deprecated:[{attributes:{...ai.attributes,...ni,...ii},save:({attributes:e})=>(0,c.jsx)("div",{className:(0,o.A)("is-loading",e.className)}),migrate:e=>{const{showOrderNotes:t,showPolicyLinks:s,showReturnToCart:o,cartPageId:r}=e;return[e,[(0,a.createBlock)("woocommerce/checkout-fields-block",{},[(0,a.createBlock)("woocommerce/checkout-express-payment-block",{},[]),(0,a.createBlock)("woocommerce/checkout-contact-information-block",{},[]),(0,a.createBlock)("woocommerce/checkout-shipping-address-block",{},[]),(0,a.createBlock)("woocommerce/checkout-billing-address-block",{},[]),(0,a.createBlock)("woocommerce/checkout-shipping-methods-block",{},[]),(0,a.createBlock)("woocommerce/checkout-payment-block",{},[]),(0,a.createBlock)("woocommerce/checkout-additional-information-block",{},[]),!!t&&(0,a.createBlock)("woocommerce/checkout-order-note-block",{},[]),!!s&&(0,a.createBlock)("woocommerce/checkout-terms-block",{},[]),(0,a.createBlock)("woocommerce/checkout-actions-block",{showReturnToCart:o,cartPageId:r},[])].filter(Boolean)),(0,a.createBlock)("woocommerce/checkout-totals-block",{})]]},isEligible:(e,t)=>!t.some(e=>"woocommerce/checkout-fields-block"===e.name)},{save:({attributes:e})=>(0,c.jsx)("div",{className:(0,o.A)("is-loading",e.className)}),isEligible:(e,t)=>{const s=t.find(e=>"woocommerce/checkout-fields-block"===e.name);return!!s&&!s.innerBlocks.some(e=>"woocommerce/checkout-additional-information-block"===e.name)},migrate:(e,t)=>{const s=t.findIndex(e=>"woocommerce/checkout-fields-block"===e.name);if(-1===s)return!1;const o=t[s],r=o.innerBlocks.findIndex(e=>"wp-block-woocommerce-checkout-payment-block"===e.name);return-1!==r&&(t[s]=o.innerBlocks.slice(0,r).concat((0,a.createBlock)("woocommerce/checkout-additional-information-block",{},[])).concat(t.slice(r+1,t.length)),[e,t])}}]};(0,a.registerBlockType)(ai,li)},5893:()=>{},6882:()=>{},7308:()=>{},359:()=>{},2770:()=>{},1817:()=>{},6161:()=>{},6713:()=>{},6983:()=>{},9287:()=>{},3793:()=>{},7605:()=>{},3692:()=>{},8879:()=>{},2840:()=>{},2793:()=>{},1962:()=>{},619:()=>{},8413:()=>{},6562:()=>{},4249:()=>{},9961:()=>{},7575:()=>{},959:()=>{},8501:()=>{},8306:()=>{},9163:()=>{},2336:()=>{},9249:()=>{},1215:()=>{},2405:()=>{},2831:()=>{},4147:()=>{},5193:()=>{},9725:()=>{},7215:()=>{},7826:()=>{},8796:()=>{},1121:()=>{},2862:()=>{},7883:()=>{},6715:()=>{},4793:()=>{},9003:()=>{},6229:()=>{},2739:()=>{},5991:()=>{},6336:()=>{},1393:()=>{},7693:()=>{},6223:()=>{},5763:()=>{},6811:()=>{},6443:()=>{},4259:()=>{},3650:()=>{},4459:()=>{},4268:()=>{},6342:()=>{},4490:()=>{},1609:e=>{"use strict";e.exports=window.React},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},195:e=>{"use strict";e.exports=window.wp.a11y},9491:e=>{"use strict";e.exports=window.wp.compose},4040:e=>{"use strict";e.exports=window.wp.deprecated},8107:e=>{"use strict";e.exports=window.wp.dom},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},923:e=>{"use strict";e.exports=window.wp.isShallowEqual},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives}},r={};function c(e){var t=r[e];if(void 0!==t)return t.exports;var s=r[e]={exports:{}};return o[e](s,s.exports,c),s.exports}c.m=o,e=[],c.O=(t,s,o,r)=>{if(!s){var n=1/0;for(d=0;d<e.length;d++){for(var[s,o,r]=e[d],i=!0,a=0;a<s.length;a++)(!1&r||n>=r)&&Object.keys(c.O).every(e=>c.O[e](s[a]))?s.splice(a--,1):(i=!1,r<n&&(n=r));if(i){e.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[s,o,r]},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},s=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);c.r(r);var n={};t=t||[null,s({}),s([]),s(s)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=s(i))Object.getOwnPropertyNames(i).forEach(t=>n[t]=()=>e[t]);return n.default=()=>e,c.d(r,n),r},c.d=(e,t)=>{for(var s in t)c.o(t,s)&&!c.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.j=251,(()=>{var e={251:0};c.O.j=t=>0===e[t];var t=(t,s)=>{var o,r,[n,i,a]=s,l=0;if(n.some(t=>0!==e[t])){for(o in i)c.o(i,o)&&(c.m[o]=i[o]);if(a)var d=a(c)}for(t&&t(s);l<n.length;l++)r=n[l],c.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return c.O(d)},s=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var n=c.O(void 0,[94],()=>c(6794));n=c.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{}).checkout=n})();

Directory Contents

Dirs: 125 × Files: 553
Name Size Perms Modified Actions
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
cart-link DIR
- drwxr-xr-x 2026-09-26 10:16:49
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
checkout DIR
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
dropdown DIR
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
- drwxr-xr-x 2026-08-11 10:05:45
Edit Download
mini-cart DIR
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-09-26 10:16:49
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-09-26 10:16:49
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-09-26 10:16:49
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
wishlist DIR
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
- drwxr-xr-x 2026-08-11 10:05:46
Edit Download
11.16 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
2.63 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
204 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
6.12 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
9.44 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
203 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
203 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.08 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
167 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
167 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.56 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
348 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
17.71 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
9.69 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
381 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
14.09 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
381 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
9.69 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
17.31 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
260 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
11.23 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
212 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
212 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
3.64 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
2.69 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
237 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
237 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
2.69 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
4.49 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
320 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
320 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
12.13 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
181 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
3.93 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
198 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
3.59 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
3.54 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
4.35 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
204 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
322 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
322 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
203 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
12.01 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
3.81 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
330 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
15.68 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
3.71 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
548 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
29.19 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
25.59 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
560 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
560 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
25.57 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
117.86 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
11.78 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
340 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
340 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
11.78 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
28.13 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
429 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
21.61 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
28.96 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
448 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
121 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
18.18 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
448 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
28.94 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
35.16 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
109 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
1.63 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
500 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
2.81 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
388 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
2.59 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
199.89 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
218 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
220 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
220 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
217 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
4.36 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
671 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
39.49 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
1.15 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
1.15 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
8.80 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
76.45 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
703 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
703 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
76.41 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
151.60 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.05 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
220 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
220 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.64 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
251 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
251 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
7.80 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
645 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
58.78 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
163.63 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
672 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
631 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
163.54 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
207.13 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
177 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
234 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
234 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
176 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
11.19 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
1.80 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
1.80 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.76 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
246 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
246 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
11.73 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
224 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
10.21 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
3.15 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
195 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
4.63 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
228 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
228 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
1.88 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.39 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
420 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
420 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.39 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
48.43 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.83 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
420 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
420 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
5.83 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
48.95 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
511 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
13.17 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
220 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
8.25 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
336 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
336 B lrw-r--r-- 2026-08-11 10:05:45
Edit Download
26.01 KB lrw-r--r-- 2026-08-11 10:05:45
Edit Download
11.93 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
354 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
265 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
265 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
353 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
21.24 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
559 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
20.47 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
43.20 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
565 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
546 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
43.19 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
62.80 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
242 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.80 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.83 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
357 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
297 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.83 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
19.63 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.13 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
143 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
142 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.04 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.13 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.23 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
265 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
264 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.57 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.88 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.88 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.72 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.39 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
270 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.98 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
8.98 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
306 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
306 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
8.97 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
12.69 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.64 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.59 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.64 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.53 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.44 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.44 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.73 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.42 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
887 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
887 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.78 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
976 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
254 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
254 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
975 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.60 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.07 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
228 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.05 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
228 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.07 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.36 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
46.28 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
436 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.22 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
46.25 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
207 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.95 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
528 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
527 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.36 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
320 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
20.85 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
17.74 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
370 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
16.99 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
370 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
17.71 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
23.08 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
112 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.59 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.30 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.48 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
25.61 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
13.26 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.84 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.84 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
14.83 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.78 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
245 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
245 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.78 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
7.41 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
29.48 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.83 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
439 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
102.12 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
230 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
230 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
7.17 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.22 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
277 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
277 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.22 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
10.82 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.01 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.14 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
303 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
303 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.14 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
18.91 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
209 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
9.25 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
224 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
9.48 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
156 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
155 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.33 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
214 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
7.37 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
290 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
9.20 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
872 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
313 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
313 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
870 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
12.66 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
233 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
233 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
7.12 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
948 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
303 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
303 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
946 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.96 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
872 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
319 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
319 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
870 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
17.04 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
224 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
7.55 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
161 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
161 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.60 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
150 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.04 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
234 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
234 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
8.57 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
267 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
8.44 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.87 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
471 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
260 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
470 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.94 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.94 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
7.62 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
27.69 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
27.59 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.24 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.74 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.73 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.53 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
507 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
359 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
359 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
505 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
37.73 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.10 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.28 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.07 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
280 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.98 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.90 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.89 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.18 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
279 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.27 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
175 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
192 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
174 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.84 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
135 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
222 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
222 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
134 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.62 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
206 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
225 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
225 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
205 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.10 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
128 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
222 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
222 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
127 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.46 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
253 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.95 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
206 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
206 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.91 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
611 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
262 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
262 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
609 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.79 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.80 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
167 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
167 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.65 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
178 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.82 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.45 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
206 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
206 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.45 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.52 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
139 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
253 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
253 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
138 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.82 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
214 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.95 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.60 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
733 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
732 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.80 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1021 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
247 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
247 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1019 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
7.76 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.21 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
428 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
427 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.41 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
134 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
248 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
248 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
132 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
9.28 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.54 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
173 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
172 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.02 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.47 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.44 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.44 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.67 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
330 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
330 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
27.40 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
314 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
314 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
15.69 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.48 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.66 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.66 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.07 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
327 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
27.11 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
359 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
359 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
29.18 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
409 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
18.39 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
29.82 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
428 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
121 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
14.20 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
428 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
29.80 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
18.18 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.78 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
364 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
364 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.78 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
42.20 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.78 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
385 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
385 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
11.78 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
46.77 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
297 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
21.13 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
224 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.62 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
596 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
590 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
590 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
595 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
35.59 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
429 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
18.86 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
27.84 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
448 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
121 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
14.83 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
448 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
27.82 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
19.95 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.16 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
212 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
212 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.16 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
5.66 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
353 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
85.14 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
52.49 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
52.42 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
97 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
88.29 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
120 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.02 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
123 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.53 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
187 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
17.82 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
13.69 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
132 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
2.36 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
241 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
3.24 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
171 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
97 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
96.18 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
171 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
13.69 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.50 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
97 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
217.44 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
97 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
115.53 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
150 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
1.70 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
215 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
654 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
215 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
651 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
215 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
883 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
251 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.57 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
97 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
126.89 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
121 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.28 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
277 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
82.27 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
97 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
4.38 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
224 B lrw-r--r-- 2026-08-11 10:05:46
Edit Download
6.17 KB lrw-r--r-- 2026-08-11 10:05:46
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 0xNothings — Secure File Manager. All rights reserved. Built with ❤️ & Tailwind x Dark UI