Files
kapp/3583.5948c5a9e5d0b7b9.js
2026-05-21 11:19:10 -03:00

1 line
13 KiB
JavaScript

(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3583],{17864:(S,w,l)=>{l.d(w,{a:()=>m,b:()=>h,c:()=>f,d:()=>_,h:()=>x});const g={getEngine(){var s;const a=window;return a.TapticEngine||(null===(s=a.Capacitor)||void 0===s?void 0:s.isPluginAvailable("Haptics"))&&a.Capacitor.Plugins.Haptics},available(){var s;const a=window;return!!this.getEngine()&&("web"!==(null===(s=a.Capacitor)||void 0===s?void 0:s.getPlatform())||typeof navigator<"u"&&void 0!==navigator.vibrate)},isCordova:()=>!!window.TapticEngine,isCapacitor:()=>!!window.Capacitor,impact(s){const a=this.getEngine();if(!a)return;const p=this.isCapacitor()?s.style.toUpperCase():s.style;a.impact({style:p})},notification(s){const a=this.getEngine();if(!a)return;const p=this.isCapacitor()?s.style.toUpperCase():s.style;a.notification({style:p})},selection(){this.impact({style:"light"})},selectionStart(){const s=this.getEngine();!s||(this.isCapacitor()?s.selectionStart():s.gestureSelectionStart())},selectionChanged(){const s=this.getEngine();!s||(this.isCapacitor()?s.selectionChanged():s.gestureSelectionChanged())},selectionEnd(){const s=this.getEngine();!s||(this.isCapacitor()?s.selectionEnd():s.gestureSelectionEnd())}},i=()=>g.available(),f=()=>{i()&&g.selection()},m=()=>{i()&&g.selectionStart()},h=()=>{i()&&g.selectionChanged()},x=()=>{i()&&g.selectionEnd()},_=s=>{i()&&g.impact(s)}},20109:(S,w,l)=>{l.d(w,{a:()=>g,b:()=>k,c:()=>_,d:()=>b,e:()=>d,f:()=>x,g:()=>B,h:()=>f,i:()=>i,j:()=>t,k:()=>e,l:()=>s,m:()=>p,n:()=>C,o:()=>a,p:()=>h,q:()=>m,r:()=>r,s:()=>o,t:()=>T,u:()=>I,v:()=>n});const g="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-miterlimit='10' stroke-width='48' d='M244 400L100 256l144-144M120 256h292' class='ionicon-fill-none'/></svg>",i="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 268l144 144 144-144M256 392V100' class='ionicon-fill-none'/></svg>",f="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M368 64L144 256l224 192V64z'/></svg>",m="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 144l192 224 192-224H64z'/></svg>",h="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M448 368L256 144 64 368h384z'/></svg>",x="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M416 128L192 384l-96-96' class='ionicon-fill-none ionicon-stroke-width'/></svg>",_="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M328 112L184 256l144 144' class='ionicon-fill-none'/></svg>",s="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' class='ionicon-fill-none'/></svg>",a="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",p="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M184 112l144 144-144 144' class='ionicon-fill-none'/></svg>",T="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z'/></svg>",k="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208 208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 11-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 01-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0122.62-22.62L256 233.37l52.69-52.68a16 16 0 0122.62 22.62L278.63 256z'/></svg>",b="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M400 145.49L366.51 112 256 222.51 145.49 112 112 145.49 222.51 256 112 366.51 145.49 400 256 289.49 366.51 400 400 366.51 289.49 256 400 145.49z'/></svg>",B="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='192' stroke-linecap='round' stroke-linejoin='round' class='ionicon-fill-none ionicon-stroke-width'/></svg>",C="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><circle cx='256' cy='256' r='48'/><circle cx='416' cy='256' r='48'/><circle cx='96' cy='256' r='48'/></svg>",I="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-miterlimit='10' d='M80 160h352M80 256h352M80 352h352' class='ionicon-fill-none ionicon-stroke-width'/></svg>",n="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M64 384h384v-42.67H64zm0-106.67h384v-42.66H64zM64 128v42.67h384V128z'/></svg>",r="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M400 256H112' class='ionicon-fill-none ionicon-stroke-width'/></svg>",t="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='round' stroke-linejoin='round' d='M96 256h320M96 176h320M96 336h320' class='ionicon-fill-none ionicon-stroke-width'/></svg>",e="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path stroke-linecap='square' stroke-linejoin='round' stroke-width='44' d='M118 304h276M118 208h276' class='ionicon-fill-none'/></svg>",o="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M221.09 64a157.09 157.09 0 10157.09 157.09A157.1 157.1 0 00221.09 64z' stroke-miterlimit='10' class='ionicon-fill-none ionicon-stroke-width'/><path stroke-linecap='round' stroke-miterlimit='10' d='M338.29 338.29L448 448' class='ionicon-fill-none ionicon-stroke-width'/></svg>",d="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='ionicon' viewBox='0 0 512 512'><path d='M464 428L339.92 303.9a160.48 160.48 0 0030.72-94.58C370.64 120.37 298.27 48 209.32 48S48 120.37 48 209.32s72.37 161.32 161.32 161.32a160.48 160.48 0 0094.58-30.72L428 464zM209.32 319.69a110.38 110.38 0 11110.37-110.37 110.5 110.5 0 01-110.37 110.37z'/></svg>"},94147:(S,w,l)=>{l.d(w,{a:()=>f,b:()=>i,p:()=>g});const g=(m,...h)=>console.warn(`[Ionic Warning]: ${m}`,...h),i=(m,...h)=>console.error(`[Ionic Error]: ${m}`,...h),f=(m,...h)=>console.error(`<${m.tagName.toLowerCase()}> must be used inside ${h.join(" or ")}.`)},48416:(S,w,l)=>{l.d(w,{I:()=>h,a:()=>p,b:()=>x,c:()=>b,d:()=>C,f:()=>T,g:()=>a,i:()=>s,p:()=>B,r:()=>I,s:()=>k});var g=l(15861),i=l(35730),f=l(94147);const h="ion-content",x=".ion-content-scroll-host",_=`${h}, ${x}`,s=n=>"ION-CONTENT"===n.tagName,a=function(){var n=(0,g.Z)(function*(r){return s(r)?(yield new Promise(t=>(0,i.c)(r,t)),r.getScrollElement()):r});return function(t){return n.apply(this,arguments)}}(),p=n=>n.querySelector(x)||n.querySelector(_),T=n=>n.closest(_),k=(n,r)=>s(n)?n.scrollToTop(r):Promise.resolve(n.scrollTo({top:0,left:0,behavior:r>0?"smooth":"auto"})),b=(n,r,t,e)=>s(n)?n.scrollByPoint(r,t,e):Promise.resolve(n.scrollBy({top:t,left:r,behavior:e>0?"smooth":"auto"})),B=n=>(0,f.a)(n,h),C=n=>{if(s(n)){const t=n.scrollY;return n.scrollY=!1,t}return n.style.setProperty("overflow","hidden"),!0},I=(n,r)=>{s(n)?n.scrollY=r:n.style.removeProperty("overflow")}},93583:(S,w,l)=>{l.r(w),l.d(w,{ion_reorder:()=>p,ion_reorder_group:()=>k});var g=l(15861),i=l(71308),f=l(20109),m=l(35179),h=l(48416),x=l(35730),_=l(17864);const p=class{constructor(t){(0,i.r)(this,t)}onClick(t){const e=this.el.closest("ion-reorder-group");t.preventDefault(),(!e||!e.disabled)&&t.stopImmediatePropagation()}render(){const t=(0,m.b)(this);return(0,i.h)(i.H,{class:t},(0,i.h)("slot",null,(0,i.h)("ion-icon",{icon:"ios"===t?f.j:f.k,lazy:!1,class:"reorder-icon",part:"icon"})))}get el(){return(0,i.i)(this)}};p.style={ios:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:34px;opacity:0.4}",md:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:31px;opacity:0.3}"};const k=class{constructor(t){(0,i.r)(this,t),this.ionItemReorder=(0,i.e)(this,"ionItemReorder",7),this.lastToIndex=-1,this.cachedHeights=[],this.scrollElTop=0,this.scrollElBottom=0,this.scrollElInitial=0,this.containerTop=0,this.containerBottom=0,this.state=0,this.disabled=!0}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}connectedCallback(){var t=this;return(0,g.Z)(function*(){const e=(0,h.f)(t.el);e&&(t.scrollEl=yield(0,h.g)(e)),t.gesture=(yield Promise.resolve().then(l.bind(l,81898))).createGesture({el:t.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:!1,canStart:o=>t.canStart(o),onStart:o=>t.onStart(o),onMove:o=>t.onMove(o),onEnd:()=>t.onEnd()}),t.disabledChanged()})()}disconnectedCallback(){this.onEnd(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(t){return Promise.resolve(this.completeReorder(t))}canStart(t){if(this.selectedItemEl||0!==this.state)return!1;const o=t.event.target.closest("ion-reorder");if(!o)return!1;const d=B(o,this.el);return!!d&&(t.data=d,!0)}onStart(t){t.event.preventDefault();const e=this.selectedItemEl=t.data,o=this.cachedHeights;o.length=0;const d=this.el,c=d.children;if(!c||0===c.length)return;let v=0;for(let E=0;E<c.length;E++){const M=c[E];v+=M.offsetHeight,o.push(v),M.$ionIndex=E}const u=d.getBoundingClientRect();if(this.containerTop=u.top,this.containerBottom=u.bottom,this.scrollEl){const E=this.scrollEl.getBoundingClientRect();this.scrollElInitial=this.scrollEl.scrollTop,this.scrollElTop=E.top+C,this.scrollElBottom=E.bottom-C}else this.scrollElInitial=0,this.scrollElTop=0,this.scrollElBottom=0;this.lastToIndex=b(e),this.selectedItemHeight=e.offsetHeight,this.state=1,e.classList.add(n),(0,_.a)()}onMove(t){const e=this.selectedItemEl;if(!e)return;const o=this.autoscroll(t.currentY),d=this.containerTop-o,v=Math.max(d,Math.min(t.currentY,this.containerBottom-o)),u=o+v-t.startY,M=this.itemIndexForTop(v-d);if(M!==this.lastToIndex){const y=b(e);this.lastToIndex=M,(0,_.b)(),this.reorderMove(y,M)}e.style.transform=`translateY(${u}px)`}onEnd(){const t=this.selectedItemEl;if(this.state=2,!t)return void(this.state=0);const e=this.lastToIndex,o=b(t);e===o?this.completeReorder():this.ionItemReorder.emit({from:o,to:e,complete:this.completeReorder.bind(this)}),(0,_.h)()}completeReorder(t){const e=this.selectedItemEl;if(e&&2===this.state){const o=this.el.children,d=o.length,c=this.lastToIndex,v=b(e);(0,x.r)(()=>{c===v||void 0!==t&&!0!==t||this.el.insertBefore(e,v<c?o[c+1]:o[c]);for(let u=0;u<d;u++)o[u].style.transform=""}),Array.isArray(t)&&(t=r(t,v,c)),e.style.transition="",e.classList.remove(n),this.selectedItemEl=void 0,this.state=0}return t}itemIndexForTop(t){const e=this.cachedHeights;for(let o=0;o<e.length;o++)if(e[o]>t)return o;return e.length-1}reorderMove(t,e){const o=this.selectedItemHeight,d=this.el.children;for(let c=0;c<d.length;c++){let u="";c>t&&c<=e?u=`translateY(${-o}px)`:c<t&&c>=e&&(u=`translateY(${o}px)`),d[c].style.transform=u}}autoscroll(t){if(!this.scrollEl)return 0;let e=0;return t<this.scrollElTop?e=-I:t>this.scrollElBottom&&(e=I),0!==e&&this.scrollEl.scrollBy(0,e),this.scrollEl.scrollTop-this.scrollElInitial}render(){const t=(0,m.b)(this);return(0,i.h)(i.H,{class:{[t]:!0,"reorder-enabled":!this.disabled,"reorder-list-active":0!==this.state}})}get el(){return(0,i.i)(this)}static get watchers(){return{disabled:["disabledChanged"]}}},b=t=>t.$ionIndex,B=(t,e)=>{let o;for(;t;){if(o=t.parentElement,o===e)return t;t=o}},C=60,I=10,n="reorder-selected",r=(t,e,o)=>{const d=t[e];return t.splice(e,1),t.splice(o,0,d),t.slice()};k.style=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}"}}]);