PageSourceSearch

https://merchant.vatcompliance.co/static/js/832.6258b63b.chunk.js

js vatcompliance.co collected 2026-09-24 09:46:53 UTC 12,135 bytes, 2 lines download raw bytes

1(self.webpackChunklappa_app=self.webpackChunklappa_app||[]).push([[832],{4757:(e,t,r)=>{var a=r(56552);e.exports=function(){return a.Date.now()}},9812:(e,t,r)=>{var a=r(56552).Symbol;e.exports=a},9954:(e,t,r)=>{"use strict";r.d(t,{w:()=>k});var a=r(65043),n=r(13228),l=r(4321),o=r(9106),i=r(71616);function s(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase();return e.charAt(0).toUpperCase()+e.slice(1)}var c=r(73116),u=r(46404),d=r(87759),p=r(1544);const f=["dragover","dragenter","drop"];function g(e,t){return"application/x-moz-file"===e.type||function(e,t){if(e&&t){const r=e.name||"",a=e.type||"",n=a.replace(/\/.*$/,"");return(Array.isArray(t)?t:t.split(",")).some((e=>{const t=e.trim();return t.startsWith(".")?r.toLowerCase().endsWith(t.toLowerCase()):t.endsWith("/*")?n===t.replace(/\/.*$/,""):a===t}))}return!0}(e,t)}function m(e){if(function(e){return f.indexOf(e.type)>0}(e)&&e.dataTransfer){const t=e.dataTransfer;if(t.files&&t.files.length)return Array.from(t.files);if(t.items&&t.items.length)return Array.from(t.items)}else if(function(e){return Object.prototype.hasOwnProperty.call(e,"target")}(e)&&e.target.files)return Array.from(e.target.files);return[]}const v=!0;function b(e){return e?"allowMultiple":"single"}const y=(0,a.createContext)({disabled:!1,focused:!1,size:"extraLarge",type:"file",measuring:!1,allowMultiple:v});
1var h={DropZone:"Polaris-DropZone",focused:"Polaris-DropZone--focused",noOutline:"Polaris-DropZone--noOutline",hasOutline:"Polaris-DropZone--hasOutline",isDisabled:"Polaris-DropZone--isDisabled",isDragging:"Polaris-DropZone--isDragging",sizeLarge:"Polaris-DropZone--sizeLarge",sizeMedium:"Polaris-DropZone--sizeMedium",sizeSmall:"Polaris-DropZone--sizeSmall",measuring:"Polaris-DropZone--measuring",Container:"Polaris-DropZone__Container",Overlay:"Polaris-DropZone__Overlay",hasError:"Polaris-DropZone--hasError"},D={FileUpload:"Polaris-DropZone-FileUpload",large:"Polaris-DropZone-FileUpload--large",small:"Polaris-DropZone-FileUpload--small",ActionTitle:"Polaris-DropZone-FileUpload__ActionTitle","ActionTitle-disabled":"Polaris-DropZone-FileUpload__ActionTitle--disabled","ActionTitle-focused":"Polaris-DropZone-FileUpload__ActionTitle--focused",UploadIcon:"Polaris-DropZone-FileUpload__UploadIcon",disabled:"Polaris-DropZone-FileUpload--disabled"},E=r(87382),P=r(18943),T=r(24256),x=r(13397),Z=r(26699);var O=r(25078);const k=function(e){let{dropOnPage:t,label:r,labelAction:f,labelHidden:D,children:x,disabled:k=!1,outline:S=!0,accept:w,active:j,overlay:F=!0,allowMultiple:N=v,overlayText:A,errorOverlayText:_,id:M,type:U="file",onClick:z,error:L,openFileDialog:$,variableHeight:W,onFileDialogClose:I,customValidator:B,onDrop:R,onDropAccepted:H,onDropRejected:V,onDragEnter:q,onDragOver:G,onDragLeave:J}=e;const K=(0,a.useRef)(null),Q=(0,a.useRef)(null),X=(0,a.useRef)([]),Y=(0,a.useCallback)((0,o.s)((()=>{if(!K.current)return;if(W)return void ue(!1);let e="large";const t=K.current.getBoundingClientRect().width;t<100?e="small":t<160&&(e="medium"),se(e),ce&&ue(!1)}),50,{trailing:!0}),[]),[ee,te]=(0,a.useState)(!1),[re,ae]=(0,a.useState)(!1),{value:ne,setTrue:le,setFalse:oe}=(0,d.e)(!1),[ie,se]=(0,a.useState)("large"),[ce,ue]=(0,a.useState)(!0),de=(0,E.s)(),pe=(0,a.useCallback)((e=>{const t=[],r=[];return Array.from(e).forEach((e=>{!g(e,w)||B&&!B(e)?r.push(e):t.push(e)})),N||(t.splice(1,t.length),r.push(...t.slice(1))),{files:e,acceptedFiles:t,rejectedFiles:r}}),[w,N,B]),fe=(0,a.useCallback)((e=>{if(C(e),k)return;const t=m(e),{files:r,acceptedFiles:a,rejectedFiles:n}=pe(t);X.current=[],te(!1),ae(n.length>0),R&&R(r,a,n),H&&a.length&&H(a),V&&n.length&&V(n),e.target&&"value"in e.target&&(e.target.value="")}),[k,pe,R,H,V]),ge=(0,a.useCallback)((e=>{if(C(e),k)return;const t=m(e);if(e.target&&!X.current.includes(e.target)&&X.current.push(e.target),ee)return;const{rejectedFiles:r}=pe(t);te(!0),ae(r.length>0),q&&q()}),[k,ee,pe,q]),me=(0,a.useCallback)((e=>{C(e),k||G&&G()}),[k,G]),ve=c.S?null:K.current?.ownerDocument||globalThis.document,be=(0,a.useCallback)((e=>{e.preventDefault(),k||(X.current=X.current.filter((r=>{const a=t&&!c.S?ve:K.current;return r!==e.target&&a&&a.contains(r)})),X.current.length>0||(te(!1),ae(!1),J&&J()))}),[k,J,t,ve]),ye=t&&!c.S?ve:K.current;(0,p.M)("drop",fe,ye),(0,p.M)("dragover",me,ye),(0,p.M)("dragenter",ge,ye),(0,p.M)("dragleave",be,ye),(0,u.B)((()=>{Y()})),(0,a.useEffect)((()=>{if(!K.current)return;const e=new ResizeObserver(Y);return e.observe(K.current),()=>{e.disconnect()}}),[Y]);const he=(0,a.useId)(),De=M??he,Ee=s(U),Pe=b(N),Te=void 0===A?de.translate(`Polaris.DropZone.${Pe}.overlayText${Ee}`):A,xe=void 0===_?de.translate(`Polaris.DropZone.errorOverlayText${Ee}`):_,Ze=r||de.translate(`Polaris.DropZone.${Pe}.label${Ee}`),Oe=!r||D,ke=(0,i.xW)(h.DropZone,S&&h.hasOutline,!S&&h.noOutline,ne&&h.focused,(j||ee)&&h.isDragging,k&&h.isDisabled,(re||L)&&h.hasError,!W&&h[(0,i.Ny)("size",ie)],ce&&h.measuring),Ce=(j||ee)&&!re&&!L&&F&&Ne(n.S,Te),Se=ee&&(re||L)&&Ne(l.S,xe,"critical"),we=(0,a.useMemo)((()=>({disabled:k,focused:ne,size:ie,type:U||"file",measuring:ce,allowMultiple:N})),[k,ne,ce,ie,U,N]),je=(0,a.useCallback)((()=>{Q.current&&Q.current.click()}),[Q]),Fe=(0,a.useCallback)((()=>{je(),I?.()}),[je,I]);function Ne(e,t,r){return a.createElement("div",{className:h.Overlay},a.createElement(T.a,{gap:"200",inlineAlign:"center"},"small"===ie&&a.createElement(P.I,{source:e,tone:r}),("medium"===ie||"large"===ie)&&a.createElement(Z.E,{variant:"bodySm",as:"p",fontWeight:"bold"},t)))}return(0,a.useEffect)((()=>{$&&Fe()}),[$,Fe]),a.createElement(y.Provider,{value:we},a.createElement(O.ks,{id:De,label:Ze,action:f,labelHidden:Oe},a.createElement("div",{ref:K,className:ke,"aria-disabled":k,onClick:function(e){if(!k)return z?z(e):je()},onDragStart:C},Ce,Se,a.createElement(Z.E,{variant:"bodySm",as:"span",visuallyHidden:!0},a.createElement("input",{id:De,accept:w,disabled:k,multiple:N,onChange:fe,onFocus:le,onBlur:oe,type:"file",ref:Q,autoComplete:"off"})),a.createElement("div",{className:h.Container},x))))};function C(e){e.preventDefault(),e.stopPropagation()}k.FileUpload=function(e){const t=(0,E.s)(),{size:r,measuring:l,type:o,disabled:c,allowMultiple:u}=(0,a.useContext)(y),d=s(o),p=b(u),{actionTitle:f=t.translate(`Polaris.DropZone.${p}.actionTitle${d}`),actionHint:g}=e,m=a.createElement(x.$,{disabled:c},f),v=(0,i.xW)(D.FileUpload,l&&D.measuring,"large"===r&&D.large,"small"===r&&D.small),h=g&&a.createElement(Z.E,{variant:"bodySm",as:"p",tone:"subdued"},g);let O;switch(r){case"large":case"medium":O=a.createElement(T.a,{inlineAlign:"center",gap:"200"},m,h);break;case"small":O=a.createElement("div",{className:(0,i.xW)(D.UploadIcon,c&&D.disabled)},a.createElement(P.I,{source:n.S}))}return a.createElement("div",{className:v},O)}},10143:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},13228:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});var a=r(65043),n=function(e){return a.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),a.createElement("path",{d:"M16.5 6.26a.75.75 0 0 1-1.5 0v-.51a.75.75 0 0 0-.75-.75h-8.5a.75.75 0 0 0-.75.75v.51a.75.75 0 0 1-1.5 0v-.51a2.25 2.25 0 0 1 2.25-2.25h8.5a2.25 2.25 0 0 1 2.25 2.25v.51Z"}),a.createElement("path",{d:"M10.75 16.01a.75.75 0 0 1-1.5 0v-6.69l-1.72 1.72a.75.75 0 1 1-1.06-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 1 1-1.06 1.06l-1.72-1.72v6.69Z"}))};n.displayName="UploadIcon"},16095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},16913:(e,t,r)=>{var a=r(9812),n=r(34552),l=r(16095),o=a?a.toStringTag:void 0;
1e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):l(e)}},19841:(e,t,r)=>{var a=r(16913),n=r(22761);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==a(e)}},22761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},34552:(e,t,r)=>{var a=r(9812),n=Object.prototype,l=n.hasOwnProperty,o=n.toString,i=a?a.toStringTag:void 0;e.exports=function(e){var t=l.call(e,i),r=e[i];try{e[i]=void 0;var a=!0}catch(s){}var n=o.call(e);return a&&(t?e[i]=r:delete e[i]),n}},37105:(e,t,r)=>{var a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=a},40801:(e,t,r)=>{var a=r(61141),n=r(46686),l=r(19841),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(l(e))return NaN;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var r=i.test(e);return r||s.test(e)?c(e.slice(2),r?2:8):o.test(e)?NaN:+e}},46686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},50701:(e,t,r)=>{"use strict";r.d(t,{v:()=>d});var a=r(65043),n=r(97814),l=r(71616),o=r(85659),i={Tag:"Polaris-Tag",disabled:"Polaris-Tag--disabled",clickable:"Polaris-Tag--clickable",linkable:"Polaris-Tag--linkable",removable:"Polaris-Tag--removable",Button:"Polaris-Tag__Button",Link:"Polaris-Tag__Link",segmented:"Polaris-Tag--segmented",Text:"Polaris-Tag__Text",sizeLarge:"Polaris-Tag--sizeLarge",overlay:"Polaris-Tag--overlay"},s=r(87382),c=r(26699),u=r(18943);function d(e){let{children:t,disabled:r=!1,onClick:d,onRemove:p,accessibilityLabel:f,url:g,size:m}=e;const v=(0,s.s)(),b=p&&g,y=(0,l.xW)(i.Tag,r&&i.disabled,d&&i.clickable,p&&i.removable,g&&!r&&i.linkable,b&&i.segmented,m&&i[(0,l.Ny)("size",m)]);let h=f;h||(h="string"===typeof t?t:void 0);const D=a.createElement(c.E,{as:"span",variant:"bodySm",truncate:!0},a.createElement("span",{title:h,className:i.Text},t));if(d)return a.createElement("button",{type:"button",disabled:r,className:y,onClick:d},D);const E=v.translate("Polaris.Tag.ariaLabel",{children:h||""}),P=p?a.createElement("button",{type:"button","aria-label":E,className:(0,l.xW)(i.Button,b&&i.segmented),onClick:p,onMouseUp:o.bh,disabled:r},a.createElement(u.I,{source:n.S})):null,T=g&&!r?a.createElement("a",{className:(0,l.xW)(i.Link,b&&i.segmented),href:g},D):D;return a.createElement("span",{className:y,"aria-disabled":r},T,"large"===m&&a.createElement("span",{className:i.overlay}),P)}},56552:(e,t,r)=>{var a=r(37105),n="object"==typeof self&&self&&self.Object===Object&&self,l=a||n||Function("return this")();e.exports=l},57824:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});var a=r(65043),n=function(e){return a.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),a.createElement("path",{fillRule:"evenodd",d:"M10 3.5a.75.75 0 0 1 .75.75v9.69l2.72-2.72a.75.75 0 0 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 1.06-1.06l2.72 2.72v-9.69a.75.75 0 0 1 .75-.75Z"}))};n.displayName="ArrowDownIcon"},61141:(e,t,r)=>{var a=r(10143),n=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(n,""):e}},70963:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});var a=r(65043),n=function(e){return a.createElement("svg",Object.assign({viewBox:"0 0 20 20"},e),a.createElement("path",{fillRule:"evenodd",d:"M10 16.5a.75.75 0 0 1-.75-.75v-9.69l-2.72 2.72a.75.75 0 1 1-1.06-1.06l4-4a.75.75 0 0 1 1.06 0l4 4a.75.75 0 1 1-1.06 1.06l-2.72-2.72v9.69a.75.75 0 0 1-.75.75Z"}))};n.displayName="ArrowUpIcon"},93950:(e,t,r)=>{var a=r(46686),n=r(4757),l=r(40801),o=Math.max,i=Math.min;e.exports=function(e,t,r){var s,c,u,d,p,f,g=0,m=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=s,a=c;return s=c=void 0,g=t,d=e.apply(a,r)}function h(e){var r=e-f;return void 0===f||r>=t||r<0||v&&e-g>=u}function D(){var e=n();if(h(e))return E(e);p=setTimeout(D,function(e){var r=t-(e-f);return v?i(r,u-(e-g)):r}(e))}function E(e){return p=void 0,b&&s?y(e):(s=c=void 0,d)}function P(){var e=n(),r=h(e);if(s=arguments,c=this,f=e,r){if(void 0===p)return function(e){return g=e,p=setTimeout(D,t),m?y(e):d}(f);if(v)return clearTimeout(p),p=setTimeout(D,t),y(f)}return void 0===p&&(p=setTimeout(D,t)),d}return t=l(t)||0,a(r)&&(m=!!r.leading,u=(v="maxWait"in r)?o(l(r.maxWait)||0,t):u,b="trailing"in r?!!r.trailing:b),P.cancel=function(){void 0!==p&&clearTimeout(p),g=0,s=f=c=p=void 0},P.flush=function(){return void 0===p?d:E(n())},P}}}]);
2//# sourceMappingURL=832.6258b63b.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.