PageSourceSearch

https://www.olhos.it/web-static/4066c6b401081bc7aea567c4e3dacb62ae…/global-imports-6e6b50e10acb43f3.js

js olhos.it collected 2026-10-09 02:01:51 UTC 28,301 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1506,3105,5283,6456,7429],{1480:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"}))})},3894:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876),n=r(89596),a=r(49335),l=r(88868);function i({title:e,subtitle:t,onCancel:r,onConfirm:o,labelCancella:c=a.A.lbl("Annulla"),labelConferma:d=a.A.lbl("Conferma"),children:u}){return(0,n.A)(!0),(0,s.jsx)("div",{className:"fixed bg-gray-600/75 z-50 inset-0 flex items-center justify-center",role:"dialog",children:(0,s.jsx)("form",{onSubmit:o,children:(0,s.jsx)("div",{className:"bg-white shadow-xl rounded-lg p-6",children:(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"bg-primary-100 rounded-full w-10 h-10 flex items-center justify-center text-primary-600",children:(0,s.jsx)(l.A,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-lg font-medium",children:e}),t&&(0,s.jsx)("div",{className:"text-sm text-gray-500 mt-2",children:t}),u,(0,s.jsxs)("div",{className:"mt-4 flex items-center justify-end gap-3",children:[(0,s.jsx)("button",{type:"button",className:"fe-button",onClick:r,children:c}),(0,s.jsx)("button",{type:"submit",className:"fe-button fe-button-primary",children:d})]})]})]})})})})}},4687:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(8106).v)(e=>({userMode:"loggedIn",onlyActiveElements:!1,setStore:t=>e(t)}))},4763:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(72254);let n=function(e){(0,s.A)(function(){e()})}},6193:(e,t,r)=>{"use strict";let s;r.r(t),r.d(t,{__N_SSP:()=>k,default:()=>A});var n=r(37876),a=r(44609),l=r(77328),i=r.n(l),o=r(48230),c=r.n(o),d=r(14232),u=r(21792),h=r(64578),m=r(54610),x=r(51324),f=r(96347),p=r(23139),g=r(93105),v=r(47940),j=r(15094),w=r(7282);let b=({items:e,isOpen:t,onClose:r})=>(0,n.jsx)(j.e,{show:t,as:d.Fragment,children:(0,n.jsxs)(w.lG,{as:"div",className:"relative z-50",onClose:r,children:[(0,n.jsx)(j._,{as:d.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,n.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,n.jsx)("div",{className:"fixed inset-0 z-10 flex items-center justify-center",children:(0,n.jsx)("div",{className:"w-full h-full max-h-full grow overflow-hidden overflow-y-auto relative",children:(0,n.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center",children:(0,n.jsx)(j._,{as:d.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,n.jsxs)(w.Lj,{className:"transform overflow-clip rounded-lg bg-white text-left shadow-xl transition-all max-w-none w-full sm:w-full sm:max-w-4xl",children:[(0,n.jsx)("div",{className:"h-full w-full inline-flex items-center gap-2 p-2 text-lg bg-gray-200",children:(0,n.jsx)("span",{className:"font-medium",children:"Import items details"})}),(0,n.jsx)("div",{className:"table p-0 border-0",children:(0,n.jsxs)("table",{children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{width:"30%"}),(0,n.jsx)("col",{width:"30%"}),(0,n.jsx)("col",{width:"40%"})]}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"sticky top-0",children:[(0,n.jsx)("th",{children:"TYPE"}),(0,n.jsx)("th",{children:"CODE"}),(0,n.jsx)("th",{children:"ERRORS"})]})}),(0,n.jsx)("tbody",{children:e.map((e,t)=>(0,n.jsxs)("tr",{className:"hover:bg-neutral-50",children:[(0,n.jsx)("td",{children:e.type}),(0,n.jsx)("td",{children:e.code}),(0,n.jsx)("td",{children:e.errors&&e.errors.length>0?(0,n.jsx)("ol",{className:"text-red-700 ",children:e.errors.map((e,t)=>(0,n.jsx)("li",{className:"!list-disc ml-5",children:e},t))}):(0,n.jsx)("em",{className:"text-neutral-300",children:"no errors"})})]},t))})]})}),(0,n.jsx)("div",{className:"sm:flex sm:flex-row-reverse bg-gray-50 p-3",children:(0,n.jsx)("button",{tabIndex:1,type:"button",className:"btn w-full sm:w-auto",onClick:r,children:"Close"})})]})})})})})]})}),y={page:0,result:{currentPage:0,totalPages:0,totalItems:0,results:[]},state:{searching:!1,error:null}},C=e=>{if(!e)return null;let t=new Date(e);return(0,n.jsxs)("span",{className:"inline-flex gap-1 text-sm whitespace-nowrap",children:[(0,n.jsx)("span",{children:t.toLocaleDateString(void 0,{year:"numeric",month:"2-digit",day:"2-digit"})}),(0,n.jsx)("span",{children:t.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})})]})},N=({row:e})=>e.complete?(0,n.jsx)("div",{className:`inline-block rounded-full w-5 h-5 border border-gray-50 ${e.successful?"bg-green-700":"bg-orange-600"}`}):(0,n.jsx)(a.A,{className:"w-5 h-5 text-neutral-400 inline-block"});var k=!0;let A=({user:e,session:t})=>{let[r,a]=(0,d.useState)(!0),[l,o]=(0,u.e)({...y}),[j,w]=(0,d.useState)(-1),[k,A]=(0,d.useState)(!1),{confirm:L,DialogConfirm:E}=(0,p.A)(),{popup:I,showPopup:M}=(()=>{let e=()=>{r(e=>({...e,items:[],isOpen:!1}))},[t,r]=(0,d.useState)({isOpen:!1,items:[],onClose:e});return{popup:(0,n.jsx)(b,{...t}),hidePopup:e,showPopup:e=>{r({isOpen:!0,items:e,onClose:()=>{r(t=>({...t,items:[...e],isOpen:!1}))}})}}})(),S=l.state.searching&&0===l.page,T=(0,d.useMemo)(()=>!!l.result?.results.find(e=>!e.complete),[l.result]),O=async()=>{s&&s.abort(),s=new AbortController,o(e=>{e.state.searching=!0});let r=`/data/v1/externalrepo/${t.tenantID}/import?page=${l.page}`;try{let t=await g.A.get(r,{user:e,signal:s.signal});o(e=>{e.result={...t,results:0===e.page?[...t.results]:[...e.result.results,...t.results]},e.state.searching=!1}),"number"==typeof t.allItemsCount&&w(t.allItemsCount)}catch(e){"AbortError"!==e.name&&o(t=>{t.state.error=e.data,t.state.searching=!1})}},R=()=>{w(-1),0!==l.page?o(e=>{e.page=0}):O()},D=async()=>
1{if(await L("Confirm new import",`Do you want to start a new import for tenant "${t.tenantID}"?`))try{A(!0),await g.A.post(`/data/v1/externalrepo/${t.tenantID}/import`,{},{user:e}),v.A.success("Import started"),R()}catch(e){v.A.error(e.message||"Failed to start import")}finally{A(!1)}};return(0,d.useEffect)(()=>{if(r){O(),a(!1);return}},[]),(0,d.useEffect)(()=>{r||O()},[l.page]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"Global imports management"})}),(0,n.jsx)("div",{className:"fixed top-0 left-0 right-0 z-10",children:(0,n.jsx)(m.default,{user:e,session:t,showLoggedin:!1})}),(0,n.jsx)(h.A,{children:(0,n.jsxs)(c(),{href:`/${t.tenantID}`,target:"_blank",className:"hover:underline",children:[(0,n.jsx)("strong",{children:t.tenantID})," -"," ",t.tenantInfo?.tenant?.title,t.tenantInfo?.tenant?.extratitle&&` - ${t.tenantInfo.tenant.extratitle}`]})}),(0,n.jsxs)("div",{className:"container pt-4 pb-8 space-y-7",children:[(0,n.jsxs)("div",{className:"w-full flex flex-row items-center gap-4 flex-wrap",children:[(0,n.jsxs)("h1",{className:"text-xl font-bold",children:["Global imports management"," ",l.result?.totalItems?(0,n.jsxs)(n.Fragment,{children:["(",l.result?.totalItems," of"," ",j>-1?j:l.result.totalItems,")"]}):null]}),(0,n.jsx)("button",{type:"button",className:"btn",onClick:D,disabled:k,children:"Start new import"}),T&&(0,n.jsxs)("span",{children:["Pending operation in progress..."," ",(0,n.jsx)("button",{type:"button",className:"underline",onClick:R,children:"Reload view"})]})]}),(0,n.jsx)("div",{className:"table",children:(0,n.jsxs)("table",{children:[(0,n.jsxs)("colgroup",{children:[(0,n.jsx)("col",{width:"30%"}),(0,n.jsx)("col",{width:"20%"}),(0,n.jsx)("col",{width:"20%"}),(0,n.jsx)("col",{width:"15%"}),(0,n.jsx)("col",{width:"15%"})]}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"ADMIN USER"}),(0,n.jsx)("th",{children:"START DATE/TIME"}),(0,n.jsx)("th",{children:"END DATE/TIME"}),(0,n.jsx)("th",{className:"text-center",children:"STATUS"}),(0,n.jsx)("th",{className:"text-center",children:"ITEMS"})]})}),!S&&(0,n.jsxs)("tbody",{children:[l.result?.results.map((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsxs)("td",{className:"break-words",children:[(0,n.jsxs)("span",{className:"font-medium",children:[e.creatorFirstname," ",e.creatorSurname]}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-xs",children:e.creatorUserId})]}),(0,n.jsx)("td",{children:C(e.start)}),(0,n.jsx)("td",{children:e.complete?C(e.complete):(0,n.jsx)("span",{className:"text-gray-400",children:"—"})}),(0,n.jsx)("td",{className:"text-center",children:(0,n.jsx)(N,{row:e})}),(0,n.jsx)("td",{className:"text-center",children:e.items&&e.items.length>0?(0,n.jsx)("button",{className:"w-8 underline font-bold",onClick:()=>{M(e.items)},children:e.items.length}):"0"})]},`${e.start}-${e.creatorUserId}-${t}`)),l.result&&l.result.currentPage<l.result.totalPages-1&&!l.state.searching&&(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:5,children:(0,n.jsx)(f.A,{onLoad:()=>{l.result&&l.result.currentPage<l.result.totalPages-1&&o(e=>{e.state.searching=!0,e.page++})}})})})]}),l.state.searching&&(0,n.jsx)("tbody",{children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:5,children:(0,n.jsx)(x.A,{className:"flex items-start justify-center"})})})}),!l.state.searching&&l.result&&l.result.totalItems>0&&l.result.currentPage===l.result.totalPages-1&&(0,n.jsx)("tbody",{children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:5,className:"text-center",children:"Loaded all results"})})}),!l.state.searching&&l.result&&0===l.result.totalItems&&(0,n.jsx)("tbody",{children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:5,className:"text-center text-gray-500",children:"No imports yet"})})})]})})]}),(0,n.jsx)(E,{}),I]})}},9734:(e,t,r)=>{"use strict";r.d(t,{S:()=>n});var s=r(14232);function n(){var e=(0,s.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},23139:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876),n=r(76230),a=r(14232),l=r(80358);function i(){let[e,t]=(0,a.useState)(null),[r,i]=(0,a.useState)({title:"",subtitle:""});function o(){e?.resolve(!0),t(null)}function c(){e?.resolve(!1),t(null)}return(0,l.A)({shortcuts:[{key:"Escape"}]},t=>{null!==e&&(t.preventDefault(),c())}),(0,l.A)({shortcuts:[{key:"Enter",ctrlKey:!0},{key:"Enter",metaKey:!0}],preventDefault:!0},t=>{null!==e&&(t.preventDefault(),o())}),{DialogConfirm:function(){return null!==e&&(0,s.jsx)("div",{className:"fixed bg-gray-600/75 z-20 inset-0 flex items-center justify-center",children:(0,s.jsx)("div",{className:"bg-white shadow-xl rounded-lg p-6",children:(0,s.jsxs)("div",{className:"flex items-start gap-4",children:[(0,s.jsx)("div",{className:"bg-red-100 rounded-full w-10 h-10 flex items-center justify-center text-red-600",children:(0,s.jsx)(n.A,{className:"w-5 h-5"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-lg font-medium",children:r.title}),(0,s.jsx)("div",{className:"text-sm text-gray-500 mt-2",children:r.subtitle}),(0,s.jsxs)("div",{className:"mt-4 flex items-center justify-end gap-3",children:[(0,s.jsx)("button",{type:"button",className:"btn",onClick:c,children:"Cancel"}),(0,s.jsx)("button",{type:"button",className:"btn red",onClick:o,autoFocus:!0,children:"Confirm"})]})]})]})})})}
1,confirm:function(e,r){return i({title:e,subtitle:r}),new Promise(e=>{t({resolve:e})})}}}},28179:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=function(e,t){var r=(0,s.useState)(null),n=r[0],a=r[1];return(0,s.useEffect)(function(){if(e.current&&"function"==typeof IntersectionObserver){var r=new IntersectionObserver(function(e){a(e[0])},t);return r.observe(e.current),function(){a(null),r.disconnect()}}return function(){}},[e.current,t.threshold,t.root,t.rootMargin]),n}},37192:(e,t,r)=>{"use strict";r.d(t,{AU:()=>a,Bd:()=>l,lQ:()=>s,on:()=>n});var s=function(){};function n(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function a(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var l=!0},42358:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))})},44059:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876),n=r(14232);let a=({...e})=>(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("path",{d:"M9.75 12C9.75 10.7574 10.7574 9.75 12 9.75C13.2426 9.75 14.25 10.7574 14.25 12C14.25 13.2426 13.2426 14.25 12 14.25C10.7574 14.25 9.75 13.2426 9.75 12Z",fill:"currentColor"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 13.6394 2.42496 14.1915 3.27489 15.2957C4.97196 17.5004 7.81811 20 12 20C16.1819 20 19.028 17.5004 20.7251 15.2957C21.575 14.1915 22 13.6394 22 12C22 10.3606 21.575 9.80853 20.7251 8.70433C19.028 6.49956 16.1819 4 12 4C7.81811 4 4.97196 6.49956 3.27489 8.70433C2.42496 9.80853 2 10.3606 2 12ZM12 8.25C9.92893 8.25 8.25 9.92893 8.25 12C8.25 14.0711 9.92893 15.75 12 15.75C14.0711 15.75 15.75 14.0711 15.75 12C15.75 9.92893 14.0711 8.25 12 8.25Z",fill:"currentColor"})]}),l=({...e})=>(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.60603 6.08111C2.11366 5.86356 2.70154 6.09871 2.9191 6.60634L1.99995 7.00026C2.9191 6.60634 2.91924 6.60666 2.9191 6.60634L2.91858 6.60514C2.9183 6.60449 2.91851 6.60496 2.91858 6.60514L2.9225 6.614C2.92651 6.62302 2.93339 6.63833 2.94319 6.65954C2.96278 6.70196 2.99397 6.76784 3.03696 6.85382C3.12302 7.02595 3.25594 7.27771 3.43737 7.58252C3.80137 8.19404 4.35439 9.0085 5.10775 9.81981C5.28532 10.011 5.47324 10.2013 5.67173 10.3883C5.68003 10.3958 5.68823 10.4036 5.69633 10.4114C7.18102 11.8017 9.25227 13.0003 12 13.0003C13.2089 13.0003 14.2783 12.7694 15.2209 12.3984C16.4469 11.9159 17.4745 11.1894 18.3156 10.4C19.2652 9.50864 19.9627 8.55029 20.4232 7.81125C20.6526 7.44317 20.8207 7.13343 20.9299 6.91934C20.9844 6.81241 21.0241 6.72968 21.0491 6.67586C21.0617 6.64897 21.0706 6.62932 21.0758 6.61753L21.0808 6.60634C21.2985 6.09898 21.8864 5.86361 22.3939 6.08111C22.9015 6.29867 23.1367 6.88655 22.9191 7.39418L22 7.00026C22.9191 7.39418 22.9192 7.39395 22.9191 7.39418L22.9169 7.3992L22.9134 7.40742L22.9019 7.43326C22.8924 7.45459 22.879 7.48403 22.8618 7.52097C22.8274 7.59482 22.7774 7.6988 22.7115 7.82799C22.5799 8.08615 22.384 8.44633 22.1206 8.86893C21.718 9.51508 21.152 10.3165 20.4096 11.1245L21.2071 11.922C21.5976 12.3125 21.5976 12.9457 21.2071 13.3362C20.8165 13.7267 20.1834 13.7267 19.7928 13.3362L18.9527 12.496C18.3884 12.9518 17.757 13.3816 17.0558 13.7525L17.8381 14.9549C18.1393 15.4178 18.0083 16.0372 17.5453 16.3384C17.0824 16.6397 16.463 16.5086 16.1618 16.0456L15.1763 14.5311C14.4973 14.7393 13.772 14.8868 13 14.9559V16.5003C13 17.0525 12.5522 17.5003 12 17.5003C11.4477 17.5003 11 17.0525 11 16.5003V14.9561C10.2253 14.8869 9.50014 14.7391 8.82334 14.5315L7.83814 16.0456C7.53693 16.5086 6.91748 16.6397 6.45457 16.3384C5.99165 16.0372 5.86056 15.4178 6.16177 14.9549L6.94417 13.7524C6.24405 13.3819 5.61245 12.952 5.04746 12.4958L4.20706 13.3362C3.81654 13.7267 3.18337 13.7267 2.79285 13.3362C2.40232 12.9457 2.40232 12.3125 2.79285 11.922L3.59029 11.1245C2.74529 10.2048 2.12772 9.29249 1.71879 8.60549C1.5096 8.25405 1.35345 7.95894 1.2481 7.74825C1.19539 7.64283 1.15529 7.55832 1.12752 7.4982C1.11363 7.46814 1.10282 7.44415 1.09505 7.42667L1.08566 7.40539L1.08267 7.3985L1.0816 7.39602L1.08117 7.39502C1.08098 7.39458 1.08081 7.39418 1.99995 7.00026L1.08117 7.39502C0.863613 6.88739 1.0984 6.29867 1.60603 6.08111Z",fill:"currentColor"})}),i=(0,n.forwardRef)(function({label:e,rounded:t=!1,...r}
1,i){let[o,c]=(0,n.useState)(r.type||"text");return(0,s.jsxs)("div",{className:`pt-2.5 pb-1.5 shadow-sm ring-1 ring-inset focus-within:ring-2 relative focus-within:ring-indigo-600 bg-white ${r.disabled?"ring-gray-100":"ring-gray-300"} ${t?"rounded-full px-5":"rounded-md px-3"}${"password"===r.type&&t?" pr-10":""}`,children:[(0,s.jsx)("label",{htmlFor:r.id,className:"block text-xs font-medium text-gray-900",children:e}),(0,s.jsx)("input",{ref:i,className:"block w-full border-0 p-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-base sm:leading-6 disabled:text-gray-400",...r,type:o}),"password"===r.type&&(0,s.jsx)("button",{type:"button",className:"absolute right-5 bottom-2",onClick:()=>c("password"!==o?"password":"text"),children:"password"!==o?(0,s.jsx)(l,{className:"w-5"}):(0,s.jsx)(a,{className:"w-5"})})]})})},44609:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))})},47940:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(37876),n=r(98477),a=r(97685),l=r(68581);function i(e,t,r,i,o,c){return a.oR.custom(c=>(0,n.createPortal)((0,s.jsxs)("div",{className:`${t} ${e} h-auto max-h-full overflow-hidden overflow-y-auto pointer-events-auto min-w-[300px] max-w-[600px] shadow-sm border rounded flex flex-col transition-opacity ease-in-out ${c.visible?"opacity-100":"opacity-0"}`,children:[(0,s.jsxs)("div",{className:`${e} flex items-start justify-between gap-4 sticky top-0 p-4`,children:[(0,s.jsx)("div",{className:"font-bold sticky top-0 text-sm leading-5",children:i}),(0,s.jsx)("button",{ref:e=>{if(!o)return e?.focus()},type:"button",onClick:()=>a.oR.dismiss(c.id),children:(0,s.jsx)(l.A,{className:"w-5 h-5 text-current"})})]}),o&&(0,s.jsxs)("div",{className:"text-sm leading-5 p-4 pt-0 flex flex-col gap-4",children:[(0,s.jsx)("div",{children:o}),"string"==typeof o&&(0,s.jsxs)("div",{className:`flex items-center gap-10 ${r}`,children:[(0,s.jsx)("button",{ref:e=>e?.focus(),type:"button",onClick:()=>navigator.clipboard.writeText(o),children:"Copy"}),(0,s.jsx)("button",{type:"button",onClick:()=>a.oR.dismiss(c.id),children:"Ignore"})]})]})]}),document.getElementById("toast-container")),{id:"notification",...c})}let o={success:(e,t,r)=>i("bg-green-50","text-green-900 border-green-600","text-green-600",e,t,{duration:t?6e4:2e3,...r}),error:(e,t,r)=>i("bg-red-50","text-red-900 border-red-600","text-red-600",e,t,{duration:6e4,...r}),info:(e,t,r)=>i("bg-blue-50","text-blue-900 border-blue-600","text-blue-600",e,t,{duration:6e4,...r}),warning:(e,t,r)=>i("bg-orange-50","text-orange-900 border-orange-600","text-orange-600",e,t,{duration:6e4,...r}),dismiss:a.oR.dismiss}},51324:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(37876);function n({...e}){return(0,s.jsx)("div",{className:"absolute inset-0 flex items-start justify-center bg-white mt-12 pt-8 z-20",...e,children:(0,s.jsxs)("div",{role:"status",children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:"w-8 h-8 mr-2 text-gray-200 animate-spin dark:text-gray-600 fill-blue-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
11071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,s.jsx)("span",{className:"sr-only",children:"Loading..."})]})})}},59307:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))})},64578:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876),n=r(42358),a=r(48230),l=r.n(a);let i=({playerLink:e,children:t,...r})=>(0,s.jsx)("nav",{className:"w-full mt-20 bg-white shadow-sm flex items-center justify-center p-1",...r,children:(0,s.jsxs)("div",{className:"w-full max-w-7xl text-sm flex flex-row items-center justify-between gap-4 px-4",children:[t,e?(0,s.jsxs)(l(),{target:"_blank",href:e,className:"shrink-0 btn h-8 m-0 px-2 inline-flex items-center justify-center gap-1 hover:bg-neutral-50",children:[(0,s.jsx)(n.A,{className:"h-5"})," open player"]}):(0,s.jsx)("span",{className:"h-8"})]})})},68581:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(37876);let n=({...e})=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e,children:(0,s.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18 18 6M6 6l12 12"})})},72254:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=function(e){(0,s.useEffect)(e,[])}},76230:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})},77332:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"}))})},82363:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/tenant/[tenant]/global-imports",function(){return r(6193)}])},87370:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(25703),n=r(86557);let a=function(e=""){(0,s.Yj)("adminUserToken"),(0,s.Yj)("userToken"),localStorage.removeItem("userUniqueId"),(0,n.yd)(),location.href=`/${e||""}`}},88868:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(37876);let n=({...e})=>(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,s.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M12 16V12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{d:"M12 8H12.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},89596:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(14232),n=r(37192);function a(e){if(!e)return null;if("BODY"===e.tagName)return e;if("IFRAME"===e.tagName){var t=e.contentDocument;return t?t.body:null}return e.offsetParent?a(e.offsetParent):null}function l(e){var t=e||window.event;return t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)}var i=n.Bd&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),o=new Map,c="object"==typeof document?document:void 0,d=!1;let u=c?function(e,t){void 0===e&&(e=!0);var r=(0,s.useRef)(c.body);t=t||r;var u=function(e){var t=o.get(e);t?o.set(e,{counter:t.counter+1,initialOverflow:t.initialOverflow}):(o.set(e,{counter:1,initialOverflow:e.style.overflow}),i?d||((0,n.on)(document,"touchmove",l,{passive:!1}),d=!0):e.style.overflow="hidden")},h=function(e){var t=o.get(e);t&&(1===t.counter?(o.delete(e),i?(e.ontouchmove=null,d&&((0,n.AU)(document,"touchmove",l),d=!1)):e.style.overflow=t.initialOverflow):o.set(e,{counter:t.counter-1,initialOverflow:t.initialOverflow}))};(0,s.useEffect)(function(){var r=a(t.current);r&&(e?u(r):h(r))},[e,t.current]),(0,s.useEffect)(function(){var e=a(t.current);if(e)return function(){h(e)}},[])}:function(e,t){void 0===e&&(e=!0)}},90145:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})},93105:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(86557),n=r(65364);async function a(e){let t=await e.text();try{t=t&&JSON.parse(t)}catch(e){}if(!e.ok)throw{status:e.status,data:t,message:t?.messages?.map(e=>e.message)?.join(", ")};return 204===e.status?{}:t}let l={async call(e,t={}){t.skipSession||await (0,s.cx)(t.user);let r=(0,s.aG)(t.user?.token);if(t.credentials="include",t.headers={"Content-Type":"application/json",...t.headers,...r&&{Authorization:`Bearer ${r}`}},t.body)if(t?.formData){delete t.headers["Content-Type"];let e=new FormData;for(let r in t.body)if(Array.isArray(t.body[r]))for(let s of t.body[r])e.append(r,s);else e.append(r,t.body[r]);t.body=e}else t.body=JSON.stringify(t.body);else delete t.headers["Content-Type"];return"POST"!==t.method&&"PUT"!==t.method&&delete t.headers["Content-Type"],a(await fetch(`https://${n.env.NEXT_PUBLIC_DEV_API_DOMAIN||t.user?.hostname}${e}`,t))},put:async(e,t,r={})=>l.call(e,{method:"PUT",body:t,...r}),post:async(e,t,r={})=>l.call(e,{method:"POST",body:t,...r}),get:async(e,t={})=>l.call(e,{method:"GET",...t}),delete:async(e,t={})=>l.call(e,{method:"DELETE",...t})},i=l},96347:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(37876),n=r(14232),a=r(28179);function l({onLoad:e}){let t=(0,n.useRef)(null),r=(0,a.A)(t,{root:null,rootMargin:"0px 0px 0px -10%",threshold:0});return(0,n.useEffect)(()=>{r?.isIntersecting&&e()},[r?.isIntersecting,e]),(0,s.jsx)("div",{ref:t})}},96702:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(14232);let n=s.forwardRef(function(e,t){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"}))})},99614:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(14232),n=r(9734);let a=function(e,t){var r=(0,n.S)();(0,s.useEffect)(function(){if(!r)return e()},t)}}},e=>{e.O(0,[722,5894,8230,4335,1792,5425,7282,4610,636,6593,8792],()=>e(e.s=82363)),_N_E=e.O()}]);

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.