PageSourceSearch

https://campinas.sp.gov.br/362.a61b5aa8bbc8f4107024.js

js campinas.sp.gov.br collected 2026-10-09 16:46:50 UTC 115,689 bytes, 1 lines download raw bytes

1(self.webpackChunkportal_pmc_front=self.webpackChunkportal_pmc_front||[]).push([[362],{1362:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DiarioOficialModule:()=>_i});var s=i(8583),o=i(5429),n=i(3342),a=i(8002),r=i(9773),l=i(6215),c=i(1439),d=i(5917),h=i(8068),p=i(7716),u=i(8891),g=i(4612),m=i(6113),_=i(2487),f=i(5037);let b=(()=>{class e{constructor(e,t){this.apiService=e,this.urlService=t}_getDiariosDoMes(e){const t=this.urlService.diario.mensal.replace(":mes",e.toFormat("yyyyLL"));return this.apiService.get(t,{_format:"json"})}getDiarios(e){return Object.entries(e).forEach(([t,i])=>{void 0===i&&delete e[t]}),this.apiService.get(this.urlService.diario.paginado,e).pipe((0,g.b)(e=>this.getSuplementos(e.rows).pipe((0,a.U)(t=>Object.assign(Object.assign({},e),{rows:t})))))}getPublicacoesDoMes(e,t){return 0===(null==t?void 0:t.length)?this._getDiariosDoMes(e.minus({months:1})).pipe((0,g.b)(e=>this.getSuplementos(e))):t?this.getSuplementos(t):this._getDiariosDoMes(e).pipe((0,g.b)(e=>this.getSuplementos(e)))}getSuplementos(e){return new u.y(t=>{const i=e.map(e=>e.dom_id);0===i.length&&t.error("O m\xeas selecionado n\xe3o possui publica\xe7\xf5es");const s=i.reduce((e,t)=>`${e}+${t}`),o=this.urlService.diario.suplementos.replace(":ids",s);this.apiService.get(o,{_format:"json"}).subscribe(i=>{i.forEach(e=>{e.suplemento_titulo=m.Z.decodeEntities(e.suplemento_titulo)}),e.forEach(e=>{e.dom_suplementos=i.filter(t=>t.suplemento_ref_dom===e.dom_id)}),t.next(e),t.complete()})})}getPublicacoesBusca(e){let t=e.diarios.map(e=>e.data);t=t.map(e=>o.ou.fromFormat(e,"dd/LL/yyyy").toISODate());const i={_format:"json",datas:t.reduce((e,t)=>`${e},${t}`)};return new u.y(t=>{this.apiService.get(this.urlService.diario.por_data,i).subscribe(i=>{i.forEach(t=>{const i=e.diarios.find(e=>t.dom_data_pub===e.data);i&&(t.paginas=null==i?void 0:i.paginas.split(","),t.paginas=t.paginas.slice(0,5))}),t.next(i),t.complete()})}).pipe((0,g.b)(e=>this.getSuplementos(e)))}pesquisaEdicao(e){const t=this.urlService.diario.busca_edicao.replace(":edicao",e);return this.apiService.get(t,{_format:"json"})}pesquisaTermo(e,t=1){const i=Object.entries(e).map(([e,t])=>"partes"===e?`partes[]=${t.filter(Boolean).join("&partes[]=")}`:`${e}=${t}`).join("&");return this.apiService.get(`${this.urlService.diario.pesquisa}?${i}&pagina_atual=${t+1}`).pipe((0,a.U)(e=>Object.assign(Object.assign({},e),{pagina_atual:e.pagina_atual-1,pagina_fim:e.pagina_fim-1})))}}return e.\u0275fac=function(t){return new(t||e)(p.LFG(_.s),p.LFG(f.i))},e.\u0275prov=p.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var v=i(6486),x=i(3416),w=i(521),Z=i(9490),y=i(9238),P=i(9765),q=i(5319),D=i(3637),S=i(6561);function T(e){const{subscriber:t,counter:i,period:s}=e;t.next(i),this.schedule({subscriber:t,counter:i+1,period:s},s)}var A=i(1927),C=i(6682),I=i(6782),E=i(9761),k=i(5257),R=i(3190),O=i(946);function M(e,t,i){for(let s in t)if(t.hasOwnProperty(s)){const o=t[s];o?e.setProperty(s,o,(null==i?void 0:i.has(s))?"important":""):e.removeProperty(s)}return e}function U(e,t){const i=t?"":"none";M(e.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":i,"-ms-user-select":i,"-webkit-user-select":i,"-moz-user-select":i})}function L(e,t,i){M(e.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},i)}
1function F(e,t){return t&&"none"!=t?e+" "+t:e}function N(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function j(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function Y(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function B(e,t,i){const{top:s,bottom:o,left:n,right:a}=e;return i>=s&&i<=o&&t>=n&&t<=a}function J(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function H(e,t,i,s){const{top:o,right:n,bottom:a,left:r,width:l,height:c}=e,d=l*t,h=c*t;return s>o-h&&s<a+h&&i>r-d&&i<n+d}class Q{constructor(e,t){this._document=e,this._viewportRuler=t,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Y(e)})})}handleScroll(e){const t=(0,w.sA)(e),i=this.positions.get(t);if(!i)return null;const s=t===this._document?t.documentElement:t,o=i.scrollPosition;let n,a;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();n=e.top,a=e.left}else n=t.scrollTop,a=t.scrollLeft;const r=o.top-n,l=o.left-a;return this.positions.forEach((e,i)=>{e.clientRect&&t!==i&&s.contains(i)&&J(e.clientRect,r,l)}),o.top=n,o.left=a,{top:r,left:l}}}function z(e){const t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),s=e.nodeName.toLowerCase();t.removeAttribute("id");for(let o=0;o<i.length;o++)i[o].removeAttribute("id");return"canvas"===s?W(e,t):"input"!==s&&"select"!==s&&"textarea"!==s||$(e,t),V("canvas",e,t,W),V("input, textarea, select",e,t,$),t}function V(e,t,i,s){const o=t.querySelectorAll(e);if(o.length){const t=i.querySelectorAll(e);for(let e=0;e<o.length;e++)s(o[e],t[e])}}let G=0;function $(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name=`mat-clone-${t.name}-${G++}`)}function W(e,t){const i=t.getContext("2d");if(i)try{i.drawImage(e,0,0)}catch(s){}}const K=(0,w.i$)({passive:!0}),X=(0,w.i$)({passive:!1}),ee=new Set(["position"]);class te{constructor(e,t,i,s,o,n){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=o,this._dragDropRegistry=n,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new P.xQ,this._pointerMoveSubscription=q.w.EMPTY,this._pointerUpSubscription=q.w.EMPTY,this._scrollSubscription=q.w.EMPTY,this._resizeSubscription=q.w.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new P.xQ,this.started=new P.xQ,this.released=new P.xQ,this.ended=new P.xQ,this.entered=new P.xQ,this.exited=new P.xQ,this.dropped=new P.xQ,this.moved=this._moveEvents,this._pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const i=(0,w.sA)(e);return!!i&&(i===t||t.contains(i))});!t||this._disabledHandles.has(t)||this.disabled||this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const t=Date.now()>=this._dragStartTime+this._getDragStartDelay(e),i=this._dropContainer;if(!t)return void this._endDragSequence(e);i&&(i.isDragging()||i.isReceiving())||(e.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),e.preventDefault();const i=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,t);else{const e=this._activeTransform;e.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=i.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:e,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new Q(i,o),n.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=(0,Z.Ig)(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEac
1h(e=>U(e,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(e=>(0,Z.fI)(e)),this._handles.forEach(e=>U(e,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(e=>{this._handles.indexOf(e)>-1&&t.add(e)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=(0,Z.fI)(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,X),t.addEventListener("touchstart",this._pointerDown,K)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?(0,Z.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&oe(this._rootElement),oe(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),U(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),U(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&oe(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&oe(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}
1_startDragSequence(e){ne(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,i=e.parentNode,s=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();i.insertBefore(o,e),this._initialTransform=e.style.transform||"",this._preview=this._createPreviewElement(),L(e,!1,ee),this._document.body.appendChild(i.replaceChild(s,e)),this._getPreviewInsertionPoint(i,n).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),s=ne(t),o=!s&&0!==t.button,n=this._rootElement,a=(0,w.sA)(t),r=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=s?(0,y.yG)(t):(0,y.X6)(t);if(a&&a.draggable&&"mousedown"===t.type&&t.preventDefault(),i||o||r||l)return;this._handles.length&&(this._rootElementTapHighlight=n.style.webkitTapHighlightColor||"",n.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>this._updateOnScroll(e)),this._boundaryElement&&(this._boundaryRect=Y(this._boundaryElement));const c=this._previewTemplate;this._pickupPositionInElement=c&&c.template&&!c.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){L(this._rootElement,!0,ee),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),o=this._getDragDistance(s),n=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:o,dropPoint:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:n,distance:o,dropPoint:s}),t.drop(this,i,this._initialIndex,this._initialContainer,n,o,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let o=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,e,t,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let s;if(i&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=ae(o,this._document),this._previewRef=o,e.matchSize?re(s,t):s.style.transform=ie(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;s=z(e),re(s,e.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return M(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},ee),U(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e
1=>s.classList.add(e)):s.classList.add(t)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function(e){const t=getComputedStyle(e),i=j(t,"transition-property"),s=i.find(e=>"transform"===e||"all"===e);if(!s)return 0;const o=i.indexOf(s),n=j(t,"transition-duration"),a=j(t,"transition-delay");return N(n[o])+N(a[o])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const i=t=>{var o;(!t||(0,w.sA)(t)===this._preview&&"transform"===t.propertyName)&&(null===(o=this._preview)||void 0===o||o.removeEventListener("transitionend",i),e(),clearTimeout(s))},s=setTimeout(i,1.5*t);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=ae(this._placeholderRef,this._document)):i=z(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t){const i=this._rootElement.getBoundingClientRect(),s=e===this._rootElement?null:e,o=s?s.getBoundingClientRect():i,n=ne(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:o.left-i.left+(n.pageX-o.left-a.left),y:o.top-i.top+(n.pageY-o.top-a.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=ne(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,o=i.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=s,t.y=o,t.matrixTransform(e.inverse())}}return{x:s,y:o}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?s=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,o=this._boundaryRect,n=this._previewRect,a=o.top+t,r=o.bottom-(n.height-t);i=se(i,o.left+e,o.right-(n.width-e)),s=se(s,a,r)}return{x:i,y:s}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,s=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,n=Math.abs(t-o.x),a=Math.abs(i-o.y);return n>this._config.pointerDirectionChangeThreshold&&(s.x=t>o.x?1:-1,o.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>o.y?1:-1,o.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,U(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,X),e.removeEventListener("touchstart",this._pointerDown,K)}_applyRootElementTransform(e,t){const i=ie(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform&&"none"!=this._rootElement.style.transform?this._rootElement.style.transform:""),this._rootElement.style.transform=F(i,this._initialTransform)}_applyPreviewTransform(e,t){var i;const s=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,o=ie(e,t);this._preview.style.transform=F(o,s)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===s.width&&0===s.height)return;const o=i.left-s.left,n=s.right-i.right,a=i.top-s.top,r=s.bottom-i.bottom;i.width>s.width?(o>0&&(e+=o),n>0&&(e-=n)):e=0,i.height>s.height?(a>0&&(t+=a),r>0&&(t-=r)):t=0,e===this._passiveTransform.x&&t===this._passiveTransform.y||this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:ne(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);
1if(t){const i=(0,w.sA)(e);this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&J(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const e=this._document;return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}return(0,Z.fI)(i)}}function ie(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function se(e,t,i){return Math.max(t,Math.min(i,e))}function oe(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ne(e){return"t"===e.type[0]}function ae(e,t){const i=e.rootNodes;if(1===i.length&&i[0].nodeType===t.ELEMENT_NODE)return i[0];const s=t.createElement("div");return i.forEach(e=>s.appendChild(e)),s}function re(e,t){e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.style.transform=ie(t.left,t.top)}function le(e,t,i){const s=ce(t,e.length-1),o=ce(i,e.length-1);if(s===o)return;const n=e[s],a=o<s?-1:1;for(let r=s;r!==o;r+=a)e[r]=e[r+a];e[o]=n}function ce(e,t){return Math.max(0,Math.min(t,e))}class de{constructor(e,t,i,s,o){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new P.xQ,this.entered=new P.xQ,this.exited=new P.xQ,this.dropped=new P.xQ,this.sorted=new P.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=q.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new P.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=D.P){return(!(0,S.k)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=D.P),new u.y(i=>(i.add(t.schedule(T,e,{subscriber:i,counter:0,period:e})),i))}(0,A.Z).pipe((0,I.R)(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode,t=this.autoScrollStep;1===this._verticalScrollDirection?pe(e,-t):2===this._verticalScrollDirection&&pe(e,t),1===this._horizontalScrollDirection?ue(e,-t):2===this._horizontalScrollDirection&&ue(e,t)})},this.element=(0,Z.fI)(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new Q(i,o)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){let o;this._draggingStarted(),null==s?(o=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===o&&(o=this._getItemIndexFromPointerPosition(e,t,i))):o=s;const n=this._activeDraggables,a=n.indexOf(e),r=e.getPlaceholderElement();let l=n[o];if(l===e&&(l=n[o+1]),a>-1&&n.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){const t=l.getRootElement();t.parentElement.insertBefore(r,t),n.splice(o,0,e)}else if(this._shouldEnterAsFirstChild(t,i)){const t=n[0].getRootElement();t.parentNode.insertBefore(r,t),n.unshift(e)}else(0,Z.fI)(this.element).appendChild(r),n.push(e);r.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,o,n,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:o,distance:n,dropPoint:a})}withItems(e){const t=this._draggables;
1return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=(0,Z.fI)(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?he("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._clientRect||!H(this._clientRect,.05,t,i))return;const o=this._itemPositions,n=this._getItemIndexFromPointerPosition(e,t,i,s);if(-1===n&&o.length>0)return;const a="horizontal"===this._orientation,r=he(o,t=>t.drag===e),l=o[n],c=l.clientRect,d=r>n?1:-1,h=this._getItemOffsetPx(o[r].clientRect,c,d),p=this._getSiblingOffsetPx(r,o,d),u=o.slice();le(o,r,n),this.sorted.next({previousIndex:r,currentIndex:n,container:this,item:e}),o.forEach((t,i)=>{if(u[i]===t)return;const s=t.drag===e,o=s?h:p,n=s?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=o,a?(n.style.transform=F(`translate3d(${Math.round(t.offset)}px, 0, 0)`,t.initialTransform),J(t.clientRect,0,o)):(n.style.transform=F(`translate3d(0, ${Math.round(t.offset)}px, 0)`,t.initialTransform),J(t.clientRect,o,0))}),this._previousSwap.overlaps=B(c,t,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?s.x:s.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=0,o=0;if(this._parentPositions.positions.forEach((n,a)=>{a!==this._document&&n.clientRect&&!i&&H(n.clientRect,.05,e,t)&&([s,o]=function(e,t,i,s){const o=ge(t,s),n=me(t,i);let a=0,r=0;if(o){const t=e.scrollTop;1===o?t>0&&(a=1):e.scrollHeight-t>e.clientHeight&&(a=2)}if(n){const t=e.scrollLeft;1===n?t>0&&(r=1):e.scrollWidth-t>e.clientWidth&&(r=2)}return[a,r]}(a,n.clientRect,e,t),(s||o)&&(i=a))}),!s&&!o){const{width:n,height:a}=this._viewportRuler.getViewportSize(),r={width:n,height:a,top:0,right:n,bottom:a,left:0};s=ge(r,t),o=me(r,e),i=window}!i||s===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=s,this._horizontalScrollDirection=o,this._scrollNode=i,(s||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=(0,Z.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=(0,Z.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Y(t)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const e=(0,Z.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const i=e.getRootElement();if(i){const s=null===(t=this._itemPositions.find(t=>t.drag===e))||void 0===t?void 0:t.initialTransform;i.style.transform=s||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,i){const s="horizontal"===this._orientation,o=t[e].clientRect,n=t[e+-1*i];
vendor: 4,281 bytes, line 1
1let a=o[s?"width":"height"]*i;if(n){const e=s?"left":"top",t=s?"right":"bottom";-1===i?a-=n.clientRect[e]-o[t]:a+=o[e]-n.clientRect[t]}return a}_getItemOffsetPx(e,t,i){const s="horizontal"===this._orientation;let o=s?t.left-e.left:t.top-e.top;return-1===i&&(o+=s?t.width-e.width:t.height-e.height),o}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,s="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}{const o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){const o="horizontal"===this._orientation,n=he(this._itemPositions,({drag:n,clientRect:a},r,l)=>{if(n===e)return l.length<2;if(s){const e=o?s.x:s.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return o?t>=Math.floor(a.left)&&t<Math.floor(a.right):i>=Math.floor(a.top)&&i<Math.floor(a.bottom)});return-1!==n&&this.sortPredicate(n,e,this)?n:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return null!=this._clientRect&&B(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!B(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const s=this._getShadowRoot().elementFromPoint(t,i);if(!s)return!1;const o=(0,Z.fI)(this.element);return s===o||o.contains(s)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(e=>this.enterPredicate(e,this)||this._draggables.indexOf(e)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{J(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=(0,w.kV)((0,Z.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function he(e,t){for(let i=0;i<e.length;i++)if(t(e[i],i,e))return i;return-1}function pe(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function ue(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function ge(e,t){const{top:i,bottom:s,height:o}=e,n=.05*o;return t>=i-n&&t<=i+n?1:t>=s-n&&t<=s+n?2:0}function me(e,t){const{left:i,right:s,width:o}=e,n=.05*o;return t>=i-n&&t<=i+n?1:t>=s-n&&t<=s+n?2:0}const _e=(0,w.i$)({passive:!1,capture:!0});let fe=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=e=>e.isDragging(),this.pointerMove=new P.xQ,this.pointerUp=new P.xQ,this.scroll=new P.xQ,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.length>0&&e.preventDefault()},this._persistentTouchmoveListener=e=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_e)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_e)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const e=t.type.startsWith("touch");
1this._globalListeners.set(e?"touchend":"mouseup",{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_e}),e||this._globalListeners.set("mousemove",{handler:e=>this.pointerMove.next(e),options:_e}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new u.y(t=>this._ngZone.runOutsideAngular(()=>{const i=e=>{this._activeDragInstances.length&&t.next(e)};return e.addEventListener("scroll",i,!0),()=>{e.removeEventListener("scroll",i,!0)}}))),(0,C.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(p.LFG(p.R0b),p.LFG(s.K0))},e.\u0275prov=p.Yz7({factory:function(){return new e(p.LFG(p.R0b),p.LFG(s.K0))},token:e,providedIn:"root"}),e})();const be={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ve=(()=>{class e{constructor(e,t,i,s){this._document=e,this._ngZone=t,this._viewportRuler=i,this._dragDropRegistry=s}createDrag(e,t=be){return new te(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new de(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(p.LFG(s.K0),p.LFG(p.R0b),p.LFG(x.rL),p.LFG(fe))},e.\u0275prov=p.Yz7({factory:function(){return new e(p.LFG(s.K0),p.LFG(p.R0b),p.LFG(x.rL),p.LFG(fe))},token:e,providedIn:"root"}),e})();const xe=new p.OlP("CDK_DRAG_PARENT"),we=new p.OlP("CdkDropListGroup");let Ze=(()=>{class e{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=(0,Z.Ig)(e)}ngOnDestroy(){this._items.clear()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=p.lG2({type:e,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[p._Bn([{provide:we,useExisting:e}])]}),e})();const ye=new p.OlP("CDK_DRAG_CONFIG");let Pe=0;const qe=new p.OlP("CdkDropList");let De=(()=>{class e{constructor(t,i,s,o,n,a,r){this.element=t,this._changeDetectorRef=s,this._scrollDispatcher=o,this._dir=n,this._group=a,this._destroyed=new P.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Pe++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new p.vpe,this.entered=new p.vpe,this.exited=new p.vpe,this.sorted=new p.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,r&&this._assignDefaults(r),this._dropListRef.enterPredicate=(e,t)=>this.enterPredicate(e.data,t.data),this._dropListRef.sortPredicate=(e,t,i)=>this.sortPredicate(e,t.data,i.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=(0,Z.Ig)(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe((0,E.O)(this._dir.value),(0,I.R)(this._destroyed)).subscribe(e=>t.withDirection(e)),t.beforeStarted.subscribe(()=>{const i=(0,Z.Eq)(this.connectedTo).map(t=>"string"==typeof t?e._dropLists.find(e=>e.id===t):t);
1if(this._group&&this._group._items.forEach(e=>{-1===i.indexOf(e)&&i.push(e)}),!this._scrollableParentsResolved){const e=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(e=>e.getElementRef().nativeElement);this._dropListRef.withScrollableParents(e),this._scrollableParentsResolved=!0}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=(0,Z.Ig)(this.sortingDisabled),t.autoScrollDisabled=(0,Z.Ig)(this.autoScrollDisabled),t.autoScrollStep=(0,Z.su)(this.autoScrollStep,2),t.connectedTo(i.filter(e=>e&&e!==this).map(e=>e._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:this,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:this,item:e.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(e=>{this.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:this,item:e.item.data})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance,dropPoint:e.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:i,sortingDisabled:s,listAutoScrollDisabled:o,listOrientation:n}=e;this.disabled=null!=i&&i,this.sortingDisabled=null!=s&&s,this.autoScrollDisabled=null!=o&&o,this.orientation=n||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(p.SBq),p.Y36(ve),p.Y36(p.sBO),p.Y36(x.mF),p.Y36(O.Is,8),p.Y36(we,12),p.Y36(ye,8))},e.\u0275dir=p.lG2({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("id",t.id),p.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[p._Bn([{provide:we,useValue:void 0},{provide:qe,useExisting:e}])]}),e._dropLists=[],e})();const Se=new p.OlP("CdkDragHandle"),Te=new p.OlP("CdkDragPlaceholder"),Ae=new p.OlP("CdkDragPreview");let Ce=(()=>{class e{constructor(t,i,s,o,n,r,l,c,d,h,g){this.element=t,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=n,this._dir=l,this._changeDetectorRef=d,this._selfHandle=h,this._parentDrag=g,this._destroyed=new P.xQ,this.started=new p.vpe,this.released=new p.vpe,this.ended=new p.vpe,this.entered=new p.vpe,this.exited=new p.vpe,this.dropped=new p.vpe,this.moved=new u.y(e=>{const t=this._dragRef.moved.pipe((0,a.U)(e=>({source:this,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}))).subscribe(e);return()=>{t.unsubscribe()}}),this._dragRef=c.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,e._dragInstances.push(this),r&&this._assignDefaults(r),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=(0,Z.Ig)(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1),(0,I.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=e._dragInstances.indexOf(this);t>-1&&e._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement,t=this.rootElementSelector?Ie(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?Ie(this.element.nativeElement,e):(0,Z.fI)(e):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,i=this.dragStartDelay,s=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof i&&i?i:(0,Z.su)(i),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(s).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe((0,k.q)(1)).subscribe(()=>{var i,s;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let o=this.element.nativeElement.parentElement;for(;o;){if(null===(i=o.classList)||void 0===i?void 0:i.contains("cdk-drag")){t.withParent((null===(s=e._dragInstances.find(e=>e.element.nativeElement===o))||void 0===s?void 0:s._dragRef)||null);break}o=o.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>
1{this.released.emit({source:this})}),e.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance,dropPoint:e.dropPoint}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance,dropPoint:e.dropPoint})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:i,constrainPosition:s,previewClass:o,boundaryElement:n,draggingDisabled:a,rootElementSelector:r,previewContainer:l}=e;this.disabled=null!=a&&a,this.dragStartDelay=i||0,t&&(this.lockAxis=t),s&&(this.constrainPosition=s),o&&(this.previewClass=o),n&&(this.boundaryElement=n),r&&(this.rootElementSelector=r),l&&(this.previewContainer=l)}_setupHandlesListener(){this._handles.changes.pipe((0,E.O)(this._handles),(0,n.b)(e=>{const t=e.filter(e=>e._parentDrag===this).map(e=>e.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,R.w)(e=>(0,C.T)(...e.map(e=>e._stateChanges.pipe((0,E.O)(e))))),(0,I.R)(this._destroyed)).subscribe(e=>{const t=this._dragRef,i=e.element.nativeElement;e.disabled?t.disableHandle(i):t.enableHandle(i)})}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(p.SBq),p.Y36(qe,12),p.Y36(s.K0),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(ye,8),p.Y36(O.Is,8),p.Y36(ve),p.Y36(p.sBO),p.Y36(Se,10),p.Y36(xe,12))},e.\u0275dir=p.lG2({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,i){if(1&e&&(p.Suo(i,Ae,5),p.Suo(i,Te,5),p.Suo(i,Se,5)),2&e){let e;p.iGM(e=p.CRH())&&(t._previewTemplate=e.first),p.iGM(e=p.CRH())&&(t._placeholderTemplate=e.first),p.iGM(e=p.CRH())&&(t._handles=e)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],previewContainer:["cdkDragPreviewContainer","previewContainer"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[p._Bn([{provide:xe,useExisting:e}]),p.TTD]}),e._dragInstances=[],e})();function Ie(e,t){let i=e.parentElement;for(;i;){if(i.matches?i.matches(t):i.msMatchesSelector(t))return i;i=i.parentElement}return null}let Ee=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({providers:[ve],imports:[x.ZD]}),e})();var ke=i(3679),Re=i(3220),Oe=i(2458),Me=i(1095),Ue=i(6627);function Le(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"button",6),p.NdJ("click",function(){return p.CHM(e),p.oxw().previousClicked("ano")}),p.TgZ(1,"mat-icon"),p._uU(2,"keyboard_arrow_left"),p.qZA(),p.TgZ(3,"mat-icon"),p._uU(4,"keyboard_arrow_left"),p.qZA(),p.qZA()}}function Fe(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"button",7),p.NdJ("click",function(){return p.CHM(e),p.oxw().previousClicked("mes")}),p.TgZ(1,"mat-icon"),p._uU(2,"keyboard_arrow_left"),p.qZA(),p.qZA()}}function Ne(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"button",8),p.NdJ("click",function(){return p.CHM(e),p.oxw().nextClicked("mes")}),p.TgZ(1,"mat-icon"),p._uU(2,"keyboard_arrow_right"),p.qZA(),p.qZA()}if(2&e){const e=p.oxw();p.Q6J("disabled",e.mesInvalido)}}function je(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"button",9),p.NdJ("click",function(){return p.CHM(e),p.oxw().nextClicked("ano")}),p.TgZ(1,"mat-icon"),p._uU(2,"keyboard_arrow_right"),p.qZA(),p.TgZ(3,"mat-icon"),p._uU(4,"keyboard_arrow_right"),p.qZA(),p.qZA()}if(2&e){const e=p.oxw();
1p.Q6J("disabled",e.mesInvalido)}}let Ye=(()=>{class e{constructor(e,t,i){this._calendar=e,this._dateAdapter=t,this._destroyed=new P.xQ,this.botoesMeses=!0,this.mesInvalido=!0,e.stateChanges.pipe((0,I.R)(this._destroyed)).subscribe(()=>i.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}get periodLabel(){return this.checkMonth(),`${o.kI.months("long",{locale:"pt-BR"})[this._dateAdapter.getMonth(this._calendar.activeDate)]} ${this._dateAdapter.getYear(this._calendar.activeDate)}`}checkMonth(){this.mesInvalido=o.ou.now().hasSame(this._calendar.activeDate,"month")}previousClicked(e){this._calendar.activeDate="mes"===e?this._dateAdapter.addCalendarMonths(this._calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this._calendar.activeDate,-1),this._calendar.monthSelected.emit()}nextClicked(e){this._calendar.activeDate="mes"===e?this._dateAdapter.addCalendarMonths(this._calendar.activeDate,1):this._dateAdapter.addCalendarYears(this._calendar.activeDate,1),this._calendar.monthSelected.emit()}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(Re._H),p.Y36(Oe._A),p.Y36(p.sBO))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-header-calendario"]],decls:8,vars:5,consts:[[1,"flex","items-center","px-4","py-2","lg:p-2"],["class","icone-duplo","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"calendario-header-label","flex","justify-center","pb-8","lg:pb-4"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["class","icone-duplo","mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",1,"icone-duplo",3,"click"],["mat-icon-button","",3,"click"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",1,"icone-duplo",3,"disabled","click"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p.YNc(1,Le,5,0,"button",1),p.YNc(2,Fe,3,0,"button",2),p.TgZ(3,"span",3),p.TgZ(4,"strong"),p._uU(5),p.qZA(),p.qZA(),p.YNc(6,Ne,3,1,"button",4),p.YNc(7,je,5,1,"button",5),p.qZA()),2&e&&(p.xp6(1),p.Q6J("ngIf",t.botoesMeses),p.xp6(1),p.Q6J("ngIf",t.botoesMeses),p.xp6(3),p.Oqu(t.periodLabel),p.xp6(1),p.Q6J("ngIf",t.botoesMeses),p.xp6(1),p.Q6J("ngIf",t.botoesMeses))},directives:[s.O5,Me.lW,Ue.Hw],styles:[".calendario-header-label[_ngcontent-%COMP%]{flex:1;height:1em;font-weight:500;text-align:center;text-transform:capitalize}.icone-duplo[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin:-22%}"],changeDetection:0}),e})();var Be=i(2238);const Je=["calendar"];let He=(()=>{class e{constructor(e,t){this.dialogRef=e,this.diarioService=t,this.form=new ke.cw({inicial:new ke.NI,final:new ke.NI}),this.meses=o.kI.months("long",{locale:"pt-BR"}),this.calendarioHeader=Ye,this.mesExibido=0,this.dataSelecionada=null,this.isMobile=window.innerWidth<1024,this.hoje=o.ou.now().setLocale("pt-BR"),this.filtroCalendario=e=>""}get dateRange(){return new Re.C0(this.form.controls.inicial.value,this.form.controls.final.value)}ngOnInit(){this.diarioService.getPublicacoesDoMes(o.ou.now()).subscribe(e=>{this.atualizaDestaquesCalendario(e.map(({dom_data_pub:e})=>e))})}ngAfterViewInit(){this.calendar.monthSelected.pipe((0,r.zg)(()=>this.diarioService.getPublicacoesDoMes(this.calendar.activeDate))).subscribe(e=>{this.atualizaDestaquesCalendario(e.map(({dom_data_pub:e})=>e))})}atualizaDestaquesCalendario(e){this.filtroCalendario=t=>{const i=t.toFormat("dd/LL/yyyy");return e.includes(i)?"data-destacada":""},this.diasSemDiario=t=>{const i=(t||o.ou.fromObject({})).toFormat("dd/LL/yyyy");return e.includes(i)}}setPeriodo(e){switch(e){case"hoje":this.form.patchValue({inicial:this.hoje,final:this.hoje});break;case"semana":this.form.patchValue({inicial:o.ou.fromObject({weekNumber:this.hoje.weekNumber}).startOf("week"),final:o.ou.fromObject({weekNumber:this.hoje.weekNumber}).endOf("week")});break;case"mes":this.form.patchValue({inicial:o.ou.fromObject({month:this.hoje.month}).startOf("month"),final:o.ou.fromObject({month:this.hoje.month}).endOf("month")});break;case"3 meses":this.form.patchValue({inicial:this.hoje.minus({months:3}).startOf("month"),final:o.ou.fromObject({month:this.hoje.month}).endOf("month")});break;case"ano":this.form.patchValue({inicial:o.ou.fromObject({year:this.hoje.year}).startOf("year"),final:o.ou.fromObject({year:this.hoje.year}).endOf("year")})}this.dialogRef.close(this.form.value)}selecionarData(e){var t;(null===(t=this.form.value)||void 0===t?void 0:t.inicial)?(this.form.patchValue({final:e}),this.form.value.final.toMillis()<this.form.value.inicial.toMillis()&&this.form.patchValue({inicial:this.form.value.final,final:this.form.value.inicial}),this.dialogRef.close(this.form.value)):this.form.patchValue({inicial:e})}fecharDialog(){const e=this.form.value,t={inicial:this.converterParaDateTime(e.inicial),final:this.converterParaDateTime(e.final)};this.dialogRef.close(t)}converterParaDateTime(e){if(e instanceof o.ou)return e;if("string"==typeof e&&10===e.length){const[t,i,s]=e.split("/"),n=o.ou.fromObject({day:parseInt(t),month:parseInt(i),year:parseInt(s)});return n.isValid?n:null}return null}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(Be.so),p.Y36(b))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-pesquisa-periodo-dialog"]],viewQuery:function(e,t){if(1&e&&p.Gf(Je,5),2&e){let e;p.iGM(e=p.CRH())&&(t.calendar=e.first)}},features:[p._Bn([{provide:Re.q_,useClass:Re.LK}])],decls:24,vars:6,consts:[[1,"flex","justify-between","items-baseline"],["mat-dialog-title",""],["mat-icon-button","","mat-dialog-close",""],["mat-dialog-content",""],[1,"flex","flex-col","lg:flex-row","gap-4"],[1,"lg:w-1/2","flex","flex-col","gap-4"],[1,"p-4","border","border-gray-300","rounded-lg","foco-clique",3,"click"],[1,"background-white","lg:w-1/2"],[1,"calendario","border","border-gray-300","rounded-lg",3,"selected","dateFilter","dateClass","headerComponent","maxDate","selectedChange"],["calendar","matCalendar"]],template:function(e,t){1&e&&(p.TgZ(0,"span",0),p.TgZ(1,"h2",1),p._uU(2,"Filtrar data ou per\xedodo"),p.qZA(),p.TgZ(3,"button",2),p.TgZ(4,"mat-icon"),p._uU(5,"close"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(6,"div",3),p.TgZ(7,"div",4),p.TgZ(8,"div",5),p.TgZ(9,"span",6),p.NdJ("click",function(){return t.setPeriodo("hoje")}),p._uU(10,"Hoje"),p.qZA(),p.TgZ(11,"span",6),p.NdJ("click",function(){return t.setPeriodo("semana")}),p._uU(12,"Nesta semana"),p.qZA(),p.TgZ(13,"span",6),p.NdJ("click",function(){return t.setPeriodo("mes")}),p._uU(14,"Neste m\xeas"),p.qZA(),p.TgZ(15,"span",6),p.NdJ("click",function(){return t.setPeriodo("3 meses")}),p._uU(16,"\xdaltimos 3 meses"),p.qZA(),p.TgZ(17,"span",6),p.NdJ("click",function(){return t.setPeriodo("ano")}),p._uU(18,"Neste ano"),p.qZA(),p.qZA(),p.TgZ(19,"div",7),p.TgZ(20,"p"),p._uU(21),p.qZA(),p.TgZ(22,"mat-calendar",8,9),p.NdJ("selectedChange",function(e){return t.selecionarData(e)}),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.xp6(21),p.hij("Selecione a ",t.form.value.inicial?"":"data inicial e a"," data final:"),p.xp6(1),p.Q6J("selected",t.dateRange)("dateFilter",t.diasSemDiario)("dateClass",t.filtroCalendario)("headerComponent",t.calendarioHeader)("maxDate",t.hoje))},directives:[Be.uh,Me.lW,Be.ZT,Ue.Hw,Be.xY,Re._H],styles:[".calendario .mat-calendar-body .mat-calendar-body-label{color:#0000}.foco-clique{cursor:pointer}.foco-clique:hover{background-color:#005d9c7c;color:#fff}.data-destacada{border-radius:100%}.data-destacada .mat-calendar-body-cell-content{border-color:#005d9c}.mat-dialog-container .mat-form-field .mat-form-field-wrapper{margin-bottom:0;padding-bottom:0;margin-top:0}"],encapsulation:2}),e})();var Qe=i(5939),ze=i(9550);let Ve=(()=>{class e{constructor(e){this.dialogRef=e,this.videoTutorial={url_video:"https://www.youtube.com/watch?v=qbNcTFjSq2Y",titulo:" Novo modelo de pesquisa para o Di\xe1rio Oficial"}}ngOnInit(){h.M.scroolTop()}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(Be.so))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-ajuda-dialog"]],decls:192,vars:1,consts:[[1,"flex","justify-between","items-center","mb-3"],["mat-dialog-title","",1,"color-primary","mb-0-force"],["mat-icon-button","","mat-dialog-close",""],["mat-dialog-content","",1,"list-tags-sobrescrita"],["mat-align-tabs","center"],["label","\ud83c\udfa5 V\xeddeo tutorial"],[1,"block","lg:w-3/4","pt-4","pb-8","mx-auto"],[3,"video"],[1,"text-center"],["label","\ud83d\udcdd Instru\xe7\xf5es detalhadas"],[1,"pt-4"],[1,"logic-formula"]],template:function(e,t){1&e&&(p.TgZ(0,"span",0),p.TgZ(1,"h2",1),p._uU(2,"\ud83d\udd0d Como Usar a Pesquisa no Di\xe1rio Oficial"),p.qZA(),p.TgZ(3,"button",2),p.TgZ(4,"mat-icon"),p._uU(5,"close"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(6,"div",3),p.TgZ(7,"mat-tab-group",4),p.TgZ(8,"mat-tab",5),p.TgZ(9,"span",6),p._UZ(10,"app-youtube-video",7),p.qZA(),p.TgZ(11,"p",8),p._uU(12,"Assista o v\xeddeo acima para aprender a utilizar todas as funcionalidades da pesquisa no Di\xe1rio Oficial."),p.qZA(),p.qZA(),p.TgZ(13,"mat-tab",9),p.TgZ(14,"p",10),p._uU(15," O formul\xe1rio de pesquisa foi desenvolvido para localizar publica\xe7\xf5es de forma r\xe1pida e precisa. As instru\xe7\xf5es a seguir detalham o uso de cada se\xe7\xe3o e funcionalidade. "),p.qZA(),p._UZ(16,"hr"),p.TgZ(17,"h3"),p.TgZ(18,"strong"),p._uU(19,"1. Pesquisa Simples"),p.qZA(),p.qZA(),p.TgZ(20,"p"),p._uU(21,"Esta \xe9 a forma mais r\xe1pida de buscar uma informa\xe7\xe3o."),p.qZA(),p.TgZ(22,"ul"),p.TgZ(23,"li"),p._uU(24,"Digite o termo desejado no campo principal."),p.qZA(),p.TgZ(25,"li"),p._uU(26,"Clique em Pesquisar."),p.qZA(),p.qZA(),p._UZ(27,"hr"),p.TgZ(28,"h3"),p.TgZ(29,"strong"),p._uU(30,"2. Pesquisa Avan\xe7ada (Termos e Conjuntos)"),p.qZA(),p.qZA(),p.TgZ(31,"p"),p._uU(32," A Pesquisa Avan\xe7ada permite criar combina\xe7\xf5es l\xf3gicas para resultados altamente espec\xedficos, utilizando os operadores E e OU. "),p.qZA(),p.TgZ(33,"h3"),p.TgZ(34,"strong"),p._uU(35,"Como Inserir Termos:"),p.qZA(),p.qZA(),p.TgZ(36,"ol"),p.TgZ(37,"li"),p._uU(38,"No campo principal, insira os termos de busca (palavras ou frases)."),p.qZA(),p.TgZ(39,"li"),p._uU(40," Pressione a tecla Enter ap\xf3s cada termo, ou use o bot\xe3o OU. "),p.TgZ(41,"ul"),p.TgZ(42,"li"),p.TgZ(43,"em"),p._uU(44,"Exemplo:"),p.qZA(),p._uU(45,' um termo pode ser "jose silva" ou "empresa xyz". '),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(46,"h3"),p.TgZ(47,"strong"),p._uU(48,"Operadores L\xf3gicos (E / OU):"),p.qZA(),p.qZA(),p.TgZ(49,"p"),p._uU(50,"Operador OU (Dentro de um Conjunto):"),p.qZA(),p.TgZ(51,"ul"),p.TgZ(52,"li"),p._uU(53," Use o bot\xe3o OU (ao lado do campo de pesquisa) para adicionar um novo termo ao conjunto. "),p.qZA(),p.TgZ(54,"li"),p._uU(55," Todos os termos inseridos no mesmo conjunto s\xe3o combinados com o operador OU. "),p.qZA(),p.TgZ(56,"li"),p._uU(57," Resultado: Ser\xe3o exibidas publica\xe7\xf5es que contenham pelo menos um desses termos. "),p.qZA(),p.qZA(),p.TgZ(58,"p"),p._uU(59,"Operador E (Entre Conjuntos):"),p.qZA(),p.TgZ(60,"ul"),p.TgZ(61,"li"),p._uU(62," Use o bot\xe3o E (a
1o lado do campo de pesquisa) para criar um novo conjunto de termos. "),p.qZA(),p.TgZ(63,"li"),p._uU(64," Resultado: A busca ser\xe1 equivalente a um requisito obrigat\xf3rio (operador E) para o resultado final. A publica\xe7\xe3o deve conter pelo menos um termo de cada conjunto criado. "),p.qZA(),p.qZA(),p.TgZ(65,"p"),p._uU(66," Reorganiza\xe7\xe3o: Voc\xea pode arrastar qualquer termo para mov\xea-lo de um conjunto para outro, ajustando a l\xf3gica da pesquisa. "),p.qZA(),p.TgZ(67,"h3"),p.TgZ(68,"strong"),p._uU(69,"Exemplo Pr\xe1tico de L\xf3gica:"),p.qZA(),p.qZA(),p.TgZ(70,"table"),p.TgZ(71,"thead"),p.TgZ(72,"tr"),p.TgZ(73,"th"),p._uU(74,"Conjunto 1 (OU)"),p.qZA(),p.TgZ(75,"th"),p._uU(76,"Conjunto 2 (OU)"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(77,"tbody"),p.TgZ(78,"tr"),p.TgZ(79,"td"),p._uU(80,"jose silva"),p.qZA(),p.TgZ(81,"td"),p._uU(82,"concurso"),p.qZA(),p.qZA(),p.TgZ(83,"tr"),p.TgZ(84,"td"),p._uU(85,"silva jose"),p.qZA(),p.TgZ(86,"td"),p._uU(87,"processo seletivo"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(88,"p",11),p._uU(89," (jose silva OU silva jose) E (concurso OU processo seletivo) "),p.qZA(),p._UZ(90,"hr"),p.TgZ(91,"h3"),p.TgZ(92,"strong"),p._uU(93,"Modos de Bu
1sca e Combina\xe7\xe3o de Termos"),p.qZA(),p.qZA(),p.TgZ(94,"table"),p.TgZ(95,"thead"),p.TgZ(96,"tr"),p.TgZ(97,"th"),p._uU(98,"Modo de Pesquisa"),p.qZA(),p.TgZ(99,"th"),p._uU(100,"Termos Inseridos"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(101,"tbody"),p.TgZ(102,"tr"),p.TgZ(103,"td"),p.TgZ(104,"strong"),p._uU(105,"1. Senten\xe7a Completa"),p.qZA(),p.qZA(),p.TgZ(106,"td"),p.TgZ(107,"code"),p._uU(108,"jose silva"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(109,"tr"),p.TgZ(110,"td"),p.TgZ(111,"strong"),p._uU(112,"2. Cont\xe9m Todos os Itens"),p.qZA(),p.qZA(),p.TgZ(113,"td"),p.TgZ(114,"code"),p._uU(115,"jose"),p.qZA(),p._uU(116," E "),p.TgZ(117,"code"),p._uU(118,"silva"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(119,"tr"),p.TgZ(120,"td"),p.TgZ(121,"strong"),p._uU(122,"3. Cont\xe9m 1 (um) dos Itens"),p.qZA(),p.qZA(),p.TgZ(123,"td"),p.TgZ(124,"code"),p._uU(125,"jose"),p.qZA(),p._uU(126," OU "),p.TgZ(127,"code"),p._uU(128,"silva"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.TgZ(129,"p"),p._uU(130," A diferen\xe7a principal entre os modos reside na forma como os termos s\xe3o combinados e se a ordem \xe9 obrigat\xf3ria. "),p.qZA(),p.TgZ(131,"ul"),p.TgZ(132,"li"),p._uU(133,' O modo "Senten\xe7a Completa" procura a frase exata (termos na ordem em que foram digitados). \xc9 o mais restritivo.'),p._UZ(134,"br"),p._uU(135,' Exemplo: Se o texto for "Jose Maria da Silva", a busca por '),p.TgZ(136,"code"),p._uU(137,"jose silva"),p.qZA(),p._uU(138," n\xe3o retorna o resultado. "),p.qZA(),p.TgZ(139,"li"),p._uU(140,' O modo "Cont\xe9m Todos os Itens" utiliza o operador l\xf3gico E. A busca exige que todos os termos estejam presentes.'),p._UZ(141,"br"),p._uU(142," Exemplo: A busca por "),p.TgZ(143,"code"),p._uU(144,"jose"),p.qZA(),p._uU(145," E "),p.TgZ(146,"code"),p._uU(147,"silva"),p.qZA(),p._uU(148,' retorna o texto "Jose Maria da Silva". '),p.qZA(),p.TgZ(149,"li"),p._uU(150,' O modo "Cont\xe9m 1 (um) dos Itens" utiliza o operador l\xf3gico OU. A busca retorna publica\xe7\xf5es que contenham pelo menos um dos termos.'),p._UZ(151,"br"),p._uU(152," Exemplo: A busca por "),p.TgZ(153,"code"),p._uU(154,"jose"),p.qZA(),p._uU(155," OU "),p.TgZ(156,"code"),p._uU(157,"silva"),p.qZA(),p._uU(158,' retorna o texto "Jose Maria da Silva". '),p.qZA(),p.qZA(),p.TgZ(159,"p"),p._uU(160," Os modos Cont\xe9m s\xe3o usados para buscas mais abrangentes ou para formar a l\xf3gica da Pesquisa Avan\xe7ada. "),p.qZA(),p._UZ(161,"hr"),p.TgZ(162,"h3"),p.TgZ(163,"strong"),p._uU(164,"3. Defina o Per\xedodo de Publica\xe7\xe3o"),p.qZA(),p.qZA(),p.TgZ(165,"p"),p._uU(166," Use esta se\xe7\xe3o para limitar os resultados a um intervalo de datas espec\xedfico. "),p.qZA(),p.TgZ(167,"ul"),p.TgZ(168,"li"),p._uU(169,"Pesquisa Manual: Informe a data inicial e a data final."),p.qZA(),p.TgZ(170,"li"),p._uU(171," Pesquisa Pr\xe9-definida: Clique no \xedcone de calend\xe1rio para escolher entre: "),p.TgZ(172,"ul"),p.TgZ(173,"li"),p._uU(174," Per\xedodos Comuns: Hoje, Nesta Semana, Neste M\xeas, \xdaltimos 3 Meses, Neste Ano. "),p.qZA(),p.TgZ(175,"li"),p._uU(176," Sele\xe7\xe3o Espec\xedfica: Selecione a data inicial e a data final diretamente no calend\xe1rio. "),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p._UZ(177,"hr"),p.TgZ(178,"h3"),p.TgZ(179,"strong"),p._uU(180,"4. Indique a Edi\xe7\xe3o"),p.qZA(),p.qZA(),p.TgZ(181,"p"),p._uU(182," Se souber o n\xfamero exato da edi\xe7\xe3o do Di\xe1rio Oficial, informe-o neste campo para localizar a edi\xe7\xe3o diretamente. "),p.qZA(),p._UZ(183,"hr"),p.TgZ(184,"h3"),p.TgZ(185,"strong"),p._uU(186,"5. Finalize a Pesquisa"),p.qZA(),p.qZA(),p.TgZ(187,"ul"),p.TgZ(188,"li"),p._uU(189," Iniciar: Ap\xf3s inserir termos e ajustar filtros, clique em Pesquisar para visualizar os resultados. "),p.qZA(),p.TgZ(190,"li"),p._uU(191," Limpar: Use o bot\xe3o Limpar pesquisa para remover todos os termos e filtros aplicados e reiniciar uma nova busca. "),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.xp6(10),p.Q6J("video",t.videoTutorial))},directives:[Be.uh,Me.lW,Be.ZT,Ue.Hw,Be.xY,Qe.SP,Qe.uX,ze.S],styles:["h3[_ngcontent-%COMP%]{margin-top:15px}h4[_ngcontent-%COMP%]{margin-top:10px}table[_ngcontent-%COMP%]{border-collapse:collapse;width:100%;max-width:400px;margin:15px 0}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:1px solid #ddd;padding:8px;text-align:left}th[_ngcontent-%COMP%]{background-color:#f2f2f2}.logic-formula[_ngcontent-%COMP%]{font-size:1.1em;font-weight:700;margin:10px 0;padding:5px;border-left:3px solid #007bff}.example-text-italic[_ngcontent-%COMP%]{font-style:italic}"]}),e})();var Ge=i(5435),$e=i(4395),We=i(5072),Ke=i(8295),Xe=i(9983),et=i(1436);let tt=(()=>{class e{constructor(e){this.element=e}onInput(e){let t=e.target.value.replace(/\D/g,"");t.length>2&&(t=t.substring(0,2)+"/"+t.substring(2)),t.length>5&&(t=t.substring(0,5)+"/"+t.substring(5,9)),t=t.substring(0,10),e.target.value=t}onKeyDown(e){-1===["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight"].indexOf(e.key)&&
1(e.key<"0"||e.key>"9")&&e.preventDefault()}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(p.SBq))},e.\u0275dir=p.lG2({type:e,selectors:[["","appDateMask",""]],hostBindings:function(e,t){1&e&&p.NdJ("input",function(e){return t.onInput(e)})("keydown",function(e){return t.onKeyDown(e)})}}),e})();var it=i(6461),st=i(6237),ot=i(8345);const nt=["*"],at=new p.OlP("MatChipRemove"),rt=new p.OlP("MatChipAvatar"),lt=new p.OlP("MatChipTrailingIcon");class ct{constructor(e){this._elementRef=e}}const dt=(0,Oe.sb)((0,Oe.pj)((0,Oe.Kr)(ct),"primary"),-1);let ht=(()=>{class e extends dt{constructor(e,t,i,s,o,n,a,r){super(e),this._ngZone=t,this._changeDetectorRef=o,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new P.xQ,this._onBlur=new P.xQ,this.selectionChange=new p.vpe,this.destroyed=new p.vpe,this.removed=new p.vpe,this._addHostClassName(),this._chipRippleTarget=n.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Oe.IR(this,t,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===a,this.tabIndex=null!=r&&parseInt(r)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=(0,Z.Ig)(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=(0,Z.Ig)(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=(0,Z.Ig)(e)}get removable(){return this._removable}set removable(e){this._removable=(0,Z.Ig)(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled?e.preventDefault():e.stopPropagation()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case it.yY:case it.ZH:this.remove(),e.preventDefault();break;case it.L_:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(w.t4),p.Y36(Oe.Y2,8),p.Y36(p.sBO),p.Y36(s.K0),p.Y36(st.Qb,8),p.$8M("tabindex"))},e.\u0275dir=p.lG2({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){if(1&e&&(p.Suo(i,rt,5),p.Suo(i,lt,5),p.Suo(i,at,5)),2&e){let e;p.iGM(e=p.CRH())&&(t.avatar=e.first),p.iGM(e=p.CRH())&&(t.trailingIcon=e.first),p.iGM(e=p.CRH())&&(t.removeIcon=e.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&p.NdJ("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(p.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),p.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[p.qOj]}),e})(),pt=(()=>{class e{constructor(e,t){this._parentChip=e,"BUTTON"===t.nativeElement.nodeName&&t.nativeElement.setAttribute("type","button")}_handleClick(e){const t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(ht),p.Y36(p.SBq))},e.\u0275dir=p.lG2({type:e,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&p.NdJ("click",function(e){return t._handleClick(e)})},features:[p._Bn([{provide:at,useExisting:e}])]}),e})();const ut=new p.OlP("mat-chips-default-options"),gt=(0,Oe.FD)(class{constructor(e,t,i,s){this._defaultErrorStateMatcher=e,this._parentForm=t,this._parentFormGroup=i,this.ngControl=s}});let mt=0;class _t{constructor(e,t){this.source=e,this.value=t}}let ft=(()=>{class e extends gt{constructor(e,t,i,s,o,n,a){super(n,s,o,a),this._elementRef=e,this._changeDetectorRef=t,this._dir=i,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new P.xQ,this._uid="mat-chip-list-"+mt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(e,t)=>e===t,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new p.vpe,this.valueChange=new p.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=(0,Z.Ig)(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(e){this._required=(0,Z.Ig)(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=(0,Z.Ig)(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=(0,Z.Ig)(e),this.chips&&this.chips.forEach(e
1=>e.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,C.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,C.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,C.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,C.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new y.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,I.R)(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,E.O)(null),(0,I.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new ot.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&e<this.chips.length}_setSelectionByValue(e,t=!0){if(this._clearSelection(),this.chips.forEach(e=>e.deselect()),Array.isArray(e))e.forEach(e=>this._selectValue(e,t)),this._sortValues();else{const i=this._selectValue(e,t);i&&t&&this._keyManager.setActiveItem(i)}}_selectValue(e,t=!0){const i=this.chips.find(t=>null!=t.value&&this._compareWith(t.value,e));return i&&(t?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(e=>e.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new _t(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(e
1=>{!this._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,i=this.chips.toArray().indexOf(e.chip);this._isValidIndex(i)&&t._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(O.Is,8),p.Y36(ke.F,8),p.Y36(ke.sg,8),p.Y36(Oe.rD),p.Y36(ke.a5,10))},e.\u0275cmp=p.Xpm({type:e,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){if(1&e&&p.Suo(i,ht,5),2&e){let e;p.iGM(e=p.CRH())&&(t.chips=e)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&p.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(p.Ikx("id",t._uid),p.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),p.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[p._Bn([{provide:Ke.Eo,useExisting:e}]),p.qOj],ngContentSelectors:nt,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0),p.Hsn(1),p.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;
1cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),e})();const bt={separatorKeyCodes:[it.K5]};let vt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({providers:[Oe.rD,{provide:ut,useValue:bt}],imports:[[Oe.BQ]]}),e})();const xt=["formPesquisa"];function wt(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"span",15),p.TgZ(1,"button",16),p.NdJ("click",function(){return p.CHM(e),p.oxw().addPartePesquisa("ou")}),p.TgZ(2,"strong"),p._uU(3,"OU"),p.qZA(),p.qZA(),p.TgZ(4,"button",17),p.NdJ("click",function(){return p.CHM(e),p.oxw().addPartePesquisa("e")}),p.TgZ(5,"strong"),p._uU(6,"E"),p.qZA(),p.qZA(),p.qZA()}if(2&e){const e=p.oxw();p.xp6(1),p.Q6J("disabled",!e.pesquisaValida),p.xp6(3),p.Q6J("disabled",!e.pesquisaValida)}}const Zt=function(e){return{"w-min flex justify-center my-1":e}};function yt(e,t){if(1&e&&(p.TgZ(0,"strong",38),p._uU(1,"OU"),p.qZA()),2&e){const e=p.oxw(5);p.Q6J("ngClass",p.VKq(1,Zt,e.isMobile))}}const Pt=function(e){return{"chip-mobile-column":e}},qt=function(e){return{parteOriginal:e}},Dt=function(e){return{"chip-mobile":e}};function St(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"span",34),p.TgZ(1,"mat-chip-list"),p.TgZ(2,"mat-chip",35),p.NdJ("removed",function(){const t=p.CHM(e).index,i=p.oxw().index;return p.oxw(3).removePartePesquisa(i,t)}),p._uU(3),p.TgZ(4,"button",36),p.TgZ(5,"mat-icon"),p._uU(6,"cancel"),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.YNc(7,yt,2,3,"strong",37),p.qZA()}if(2&e){const e=t.$implicit,i=t.last,s=p.oxw().index,o=p.oxw(3);p.Q6J("ngClass",p.VKq(7,Pt,o.isMobile)),p.xp6(2),p.Q6J("selectable",!1)("removable",!0)("cdkDragData",p.VKq(9,qt,s))("ngClass",p.VKq(11,Dt,o.isMobile)),p.xp6(1),p.hij(" ",e," "),p.xp6(4),p.Q6J("ngIf",!i)}}const Tt=function(e){return{"flex w-min items-center justify-center space-y-2 my-1":e}};function At(e,t){if(1&e&&(p.TgZ(0,"strong",39),p._uU(1,"E"),p.qZA()),2&e){const e=p.oxw(4);p.Q6J("ngClass",p.VKq(1,Tt,e.isMobile))}}function Ct(e,t){if(1&e){const e=p.EpF();p.ynx(0),p.TgZ(1,"span",31),p.NdJ("cdkDropListDropped",function(t){return p.CHM(e),p.oxw(3).handleDragDrop(t)}),p.YNc(2,St,8,13,"span",32),p.qZA(),p.YNc(3,At,2,3,"strong",33),p.BQk()}if(2&e){const e=t.$implicit,i=t.last,s=p.oxw(3);p.xp6(1),p.Q6J("ngClass",p.VKq(4,Pt,s.isMobile))("cdkDropListData",e),p.xp6(1),p.Q6J("ngForOf",e),p.xp6(1),p.Q6J("ngIf",!i)}}function It(e,t){if(1&e&&(p.TgZ(0,"div",29),p.YNc(1,Ct,4,6,"ng-container",30),p.ALo(2,"async"),p.qZA()),2&e){const e=p.oxw(2);p.Q6J("ngClass",p.VKq(4,Pt,e.isMobile)),p.xp6(1),p.Q6J("ngForOf",p.lcZ(2,2,e.partesPesquisaAvancada))}}function Et(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"mat-icon",40),p.NdJ("click",function(){return p.CHM(e),p.oxw(2).limparPeriodo()}),p._uU(1,"close"),p.qZA()}}function kt(e,t){if(1&e&&(p.TgZ(0,"mat-error"),p._uU(1),p.qZA()),2&e){const e=p.oxw(2);p.xp6(1),p.Oqu(e.camposPesquisa.controls.periodoFinal.getError("periodoInvalido"))}}function Rt(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"div",18),p.YNc(1,It,3,6,"div",19),p.TgZ(2,"form",20),p.TgZ(3,"mat-form-field",21),p.TgZ(4,"mat-label"),p._uU(5,"Per\xedodo"),p.qZA(),p.TgZ(6,"mat-date-range-input"),p._UZ(7,"input",22),p._UZ(8,"input",23),p.qZA(),p.TgZ(9,"mat-icon",24),p.NdJ("click",function(){return p.CHM(e),p.oxw().abrirModalPeriodo()}),p._uU(10,"calendar_today"),p.qZA(),p.YNc(11,Et,2,0,"mat-icon",25),p.YNc(12,kt,2,1,"mat-error",26),p.qZA(),p.TgZ(13,"mat-form-field",27),p.TgZ(14,"mat-label"),p._uU(15,"Edi\xe7\xe3o"),p.qZA(),p._UZ(16,"input",28),p.qZA(),p.qZA(),p.qZA()}if(2&e){const e=p.oxw();p.xp6(1),p.Q6J("ngIf",e.partesPesquisaAvancada.value[0]),p.xp6(1),p.Q6J("formGroup",e.camposPesquisa),p.xp6(9),p.Q6J("ngIf",e.camposPesquisa.value.periodoInicial),p.xp6(1),p.Q6J("ngIf",e.camposPesquisa.controls.periodoFinal.hasError("periodoInvalido"))}}function Ot(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"button",41),p.NdJ("click",function(){return p.CHM(e),p.oxw().limparPesquisa()}),p._uU(1," Limpar pesquisa "),p.qZA()}}let Mt=(()=>{class e{constructor(e,t){this.alertaService=e,this.breakpoint=t,this.isMobile=!1,this.pesquisaSimples=new ke.NI(""),this.partesPesquisaAvancada=new l.X([]),this.exibeAvancada=!1,this.camposPesquisa=new ke.cw({periodoInicial:new ke.NI,periodoFinal:new ke.NI,tipoPublicacao:new ke.NI,edicao:new ke.NI}),this.pesquisa=new p.vpe,this.isMobile=this.breakpoint.isMatched("(max-width: 768px)")}get possuiPesquisa(){return m.Z.removerPesquisaUmaLetra(this.pesquisaSimples.value).length>0||this.partesPesquisaAvancada.value.join().length>0||Object.values(this.camposPesquisa.value).some(Boolean)}get pesquisaValida(){const e=this.pesquisaSimples.value;return m.Z.removerPesquisaUmaLetra(e).length>0||!e}ngOnInit(){this.camposPesquisa.valueChanges.pipe((0,Ge.h)(({periodoInicial:e,periodoFinal:t})=>e&&t),(0,$e.b)(500)).subscribe(({periodoInicial:e,periodoFinal:t})=>{e>t&&this.camposPesquisa.controls.periodoFinal.setErrors({periodoInvalido:"Data final n\xe3o pode ser anterior a data inicial"})})}addPartePesquisa(e){var t;const i=this.pesquisaSimples.value;if(i&&!this.partesPesquisaAvancada.value.find(e=>e.find(e=>e===i))){const t="e"!==e&&this.partesPesquisaAvancada.value.length?this.partesPesquisaAvancada.value.map((e,t,i)=>t!==i.length-1?e:e.concat(this.pesquisaSimples.value)):this.partesPesquisaAvancada.value.concat(new Array([this.pesquisaSimples.value]));this.partesPesquisaAvancada.next(t)}this.exibeAvancada&&(this.pesquisaSimples.reset(""),null===(t=this.formPesquisa)||void 0===t||t.nativeElement.focus())}removePartePesquisa(e,t){const i=this.partesPesquisaAvancada.value;1===i[e].length?i.splice(e,1):i[e].splice(t,1),this.partesPesquisaAvancada.next(i)}handleDragDrop(e){var t;const i=this.partesPesquisaAvancada.value;if(e.previousContainer.id===e.container.id)le(e.container.data,e.previousIndex,e.currentIndex),i[e.item.data.parteOriginal]=e.container.data;else{const s=i.findIndex(t=>t.join()===e.container.data.join());!function(e,t,i,s){const o=ce(i,e.length-1),n=ce(s,t.length);e.length&&t.splice(n,0,e.splice(o,1)[0])}(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex),i[s]=e.container.data,(null===(t=e.previousContainer.data)||void 0===t?void 0:t[0])?i[e.item.data.parteOriginal]=e.previousContainer.data:i.splice(e.item.data.parteOriginal,1)}this.partesPesquisaAvancada.next(i)}tratarTermosPesquisa(e){return this.trataCodsIdentificadores(m.Z.ilike(m.Z.removerPesquisaUmaLetra(e)))}pesquisar(){var e,t,i;const s={};Object.entries(this.camposPesquisa.value).forEach(([e,t])=>{t&&(s[e]=t)}),s.periodoInicial&&!(null==s?void 0:s.periodoFinal)&&(s.periodoFinal=o.ou.now()),s.periodoInicial&&(s.periodoInicial=s.periodoInicial.toFormat("yyyy-MM-dd")),s.periodoFinal&&(s.periodoFinal=s.periodoFinal.toFormat("yyyy-MM-dd")),(null===(e=this.partesPesquisaAvancada.value)||void 0===e?void 0:e[0])?s.partes=this.partesPesquisaAvancada.value.map(e=>e.map(e=>this.tratarTermosPesquisa(e)).join()):this.pesquisaSimples.value&&(s.partes=[this.tratarTermosPesquisa(this.pesquisaSimples.value)]),(this.possuiPesquisa||(null===(i=null===(t=null==s?void 0:s.partes)||void 0===t?void 0:t.join())||void 0===i?void 0:i.length))&&this.pesquisa.emit(s)}limparPesquisa(){this.partesPesquisaAvancada.next([]),this.camposPesquisa.reset(),this.pesquisaSimples.reset(""),this.pesquisa.emit(null)}abrirModalPeriodo(){this.alertaService.dialog.open(He,{width:"750px",minHeight:"525px"}).afterClosed().subscribe(e=>{e&&this.camposPesquisa.patchValue({periodoInicial:e.inicial,periodoFinal:e.final})})}
1limparPeriodo(){this.camposPesquisa.patchValue({periodoInicial:"",periodoFinal:""})}abrirHelp(){this.alertaService.dialog.open(Ve,{maxWidth:"900px",maxHeight:"700px"})}trocaModoPesquisa(){this.exibeAvancada=!this.exibeAvancada}trataCodsIdentificadores(e){var t;return(null===(t=e.match(/[^\dXx]/g))||void 0===t?void 0:t[0])?e:11===e.length?`${e},${e.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:9===e.length?`${e},${e.replace(/(\d{1,2})(\d{3})(\d{3})([0-9Xx]{1})/,"$1.$2.$3-$4")}`:e}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(v.w),p.Y36(We.Yg))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-pesquisa-diario"]],viewQuery:function(e,t){if(1&e&&p.Gf(xt,5),2&e){let e;p.iGM(e=p.CRH())&&(t.formPesquisa=e.first)}},outputs:{pesquisa:"pesquisa"},decls:23,vars:8,consts:[[1,"p-4","bg-white","gap-4","flex","flex-col"],[1,"flex","flex-col","lg:flex-row","gap-4","lg:gap-2","w-full"],["appearance","outline",1,"pesquisa-form","w-full"],["matPrefix","",1,"mr-1"],["matInput","",3,"formControl","placeholder","keyup.enter"],["formPesquisa",""],["class","flex gap-2 py-3 justify-center lg:py-0",4,"ngIf"],["class","flex flex-col gap-4",4,"ngIf"],[1,"flex","flex-col","gap-4","lg:gap-0","lg:flex-row","lg:items-center","lg:justify-between"],[1,"cursor-pointer","color-primary","flex","items-center","justify-center","lg:justify-start",3,"click"],[1,"flex","flex-col-reverse","lg:flex-row","gap-4","lg:gap-4"],[1,"flex","color-primary","gap-1","items-center","cursor-pointer","justify-center",3,"click"],[1,"lg:hidden","mt-2"],["mat-stroked-button","","color","primary","class","btn-pesquisa",3,"click",4,"ngIf"],["mat-flat-button","","color","primary",1,"btn-pesquisa",3,"disabled","click"],[1,"flex","gap-2","py-3","justify-center","lg:py-0"],["mat-stroked-button","","color","primary","matTooltip","Adicionar novo termo ao conjunto atual. A pesquisa s\xf3 trar\xe1 resultados que tenham ao menos um registro de um dos termos adicionados neste conjunto",3,"disabled","click"],["mat-stroked-button","","matTooltip","Adicionar novo conjunto de termos. A pesquisa s\xf3 trar\xe1 resultados que tenham ao menos um registro de cada um dos conjuntos adicionados","color","primary",3,"disabled","click"],[1,"flex","flex-col","gap-4"],["class","p-2 bg-gray-200 flex gap-2 items-center flex-wrap","cdkDropListGroup","",3,"ngClass",4,"ngIf"],[1,"flex","flex-col","lg:flex-row","gap-4","lg:gap-8",3,"formGroup"],["appearance","outline",1,"flex-grow","items-center"],["matStartDate","","formControlName","periodoInicial","appDateMask","","maxlength","10"],["matEndDate","","formControlName","periodoFinal","appDateMask","","maxlength","10"],["matPrefix","",1,"cursor-pointer","mr-2",3,"click"],["class","cursor-pointer","matSuffix","",3,"click",4,"ngIf"],[4,"ngIf"],["appearance","outline",1,"flex-shrink"],["matInput","","formControlName","edicao"],["cdkDropListGroup","",1,"p-2","bg-gray-200","flex","gap-2","items-center","flex-wrap",3,"ngClass"],[4,"ngFor","ngForOf"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"p-2","rounded-lg","bg-white","flex","flex-wrap","gap-2","items-center",3,"ngClass","cdkDropListData","cdkDropListDropped"],["class","flex items-center gap-2",3,"ngClass",4,"ngFor","ngForOf"],["class","px-3 py-2 rounded-lg background-primary color-white",3,"ngClass",4,"ngIf"],[1,"flex","items-center","gap-2",3,"ngClass"],["cdkDrag","",1,"altura-chip",3,"selectable","removable","cdkDragData","ngClass","removed"],["matChipRemove",""],["class","p-2 rounded-lg bg-gray-200",3,"ngClass",4,"ngIf"],[1,"p-2","rounded-lg","bg-gray-200",3,"ngClass"],[1,"px-3","py-2","rounded-lg","background-primary","color-white",3,"ngClass"],["matSuffix","",1,"cursor-pointer",3,"click"],["mat-stroked-button","","color","primary",1,"btn-pesquisa",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p.TgZ(1,"span",1),p.TgZ(2,"mat-form-field",2),p.TgZ(3,"mat-icon",3),p._uU(4,"search"),p.qZA(),p.TgZ(5,"input",4,5),p.NdJ("keyup.enter",function(){return t.exibeAvancada?t.addPartePesquisa("ou"):t.pesquisar()}),p.qZA(),p.qZA(),p.YNc(7,wt,7,2,"span",6),p.qZA(),p.YNc(8,Rt,17,4,"div",7),p.TgZ(9,"span",8),p.TgZ(10,"span",9),p.NdJ("click",function(){return t.trocaModoPesquisa()}),p._uU(11),p.TgZ(12,"mat-icon"),p._uU(13),p.qZA(),p.qZA(),p.TgZ(14,"span",10),p.TgZ(15,"span",11),p.NdJ("click",function(){return t.abrirHelp()}),p.TgZ(16,"mat-icon"),p._uU(17,"help"),p.qZA(),p._uU(18," Como pesquisar "),p.qZA(),p._UZ(19,"hr",12),p.YNc(20,Ot,2,0,"button",13),p.TgZ(21,"button",14),p.NdJ("click",function(){return t.pesquisar()}),p._uU(22," Pesquisar "),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.xp6(5),p.Q6J("formControl",t.pesquisaSimples)("placeholder",t.exibeAvancada?"Digite um ou mais termos...":"O que voc\xea procura?"),p.xp6(2),p.Q6J("ngIf",t.exibeAvancada),p.xp6(1),p.Q6J("ngIf",t.exibeAvancada),p.xp6(3),p.hij(" Exibir pesquisa ",t.exibeAvancada?"simples":"avan\xe7ada"," "),p.xp6(2),p.Oqu(t.exibeAvancada?"keyboard_arrow_up":"keyboard_arrow_down"),p.xp6(7),p.Q6J("ngIf",t.possuiPesquisa),p.xp6(1),p.Q6J("disabled",t.camposPesquisa.invalid||!t.pesquisaValida))},directives:[Ke.KE,Ue.Hw,Ke.qo,Xe.Nt,ke.Fj,ke.JJ,ke.oH,s.O5,Me.lW,et.gM,ke._Y,ke.JL,ke.sg,Ke.hX,Re.wx,Re.zY,ke.u,tt,ke.nD,Re.By,Ze,s.mk,s.sg,De,ft,ht,Ce,pt,Ke.R9,Ke.TO],pipes:[s.Ov],styles:[".pesquisa-form[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0;margin-bottom:0;margin-top:0}.btn-pesquisa[_ngcontent-%COMP%]{padding:.5rem 2rem}.box-botao-pesquisa[_ngcontent-%COMP%]{padding-left:5px;padding-top:5px}.icone-pesquisa[_ngcontent-%COMP%]{font-size:2rem;width:2rem;height:2rem}.chip-mobile-column[_ngcontent-%COMP%]{display:flex;width:100%;flex-wrap:wrap;flex-direction:column}.chip-mobile.mat-chip.mat-standard-chip[_ngcontent-%COMP%]{display:flex!important;width:100%!important;justify-content:space-between!important}.altura-chip-desktop.mat-chip.mat-standard-chip.mat-chip-with-trailing-icon[_ngcontent-%COMP%], .altura-chip.mat-chip.mat-standard-chip.mat-chip-with-trailing-icon[_ngcontent-%COMP%]{height:auto!important;padding:5px!important;overflow-wrap:break-word;word-break:break-all}"]}),e})();var Ut=i(8307),Lt=i(8903),Ft=i(171);function Nt(e,t){if(1&e&&(p.TgZ(0,"mat-panel-description",8),p._uU(1),p.qZA()),2&e){const e=p.oxw();p.xp6(1),p.hij("N\xba ",null==e.diario?null:e.diario.dom_edicao,"")}}function jt(e,t){if(1&e&&(p.TgZ(0,"a",13),p._uU(1,"Edi\xe7\xe3o Di\xe1ria"),p.qZA()),2&e){const e=p.oxw(2);p.Q6J("href",e.urlAPI+(null==e.diario?null:e.diario.dom_arquivo),p.LSH)}}function Yt(e,t){if(1&e&&(p.TgZ(0,"a",17),p._uU(1,"Edi\xe7\xe3o Di\xe1ria"),p.qZA()),2&e){const e=p.oxw(3);p.Q6J("href",e.urlAPI+(null==e.diario?null:e.diario.dom_arquivo)+"#page="+(null==e.diario?null:e.diario.paginas),p.LSH)}}function Bt(e,t){if(1&e&&(p.TgZ(0,"a",17),p._uU(1),p.qZA()),2&e){const e=t.$implicit,i=t.index,s=t.last,o=p.oxw(4);p.Q6J("href",o.urlAPI+(null==o.diario?null:o.diario.dom_arquivo)+"#page="+e,p.LSH),p.xp6(1),p.hij(" ",4===i?e+"...":s?e:e+","," ")}}function Jt(e,t){if(1&e&&(p.TgZ(0,"a",17),p._uU(1,"Edi\xe7\xe3o Di\xe1ria"),p.qZA(),p.TgZ(2,"span",18),p._uU(3),p.qZA(),p.YNc(4,Bt,2,2,"a",19)),2&e){const e=p.oxw(3);p.Q6J("href",e.urlAPI+(null==e.diario?null:e.diario.dom_arquivo),p.LSH),p.xp6(3),p.Oqu(null!=e.diario&&e.diario.paginas?"| P\xe1ginas: ":""),p.xp6(1),p.Q6J("ngForOf",null==e.diario?null:e.diario.paginas)}}function Ht(e,t){if(1&e&&(p.TgZ(0,"span",14),p.YNc(1,Yt,2,1,"a",15),p.YNc(2,Jt,5,3,"ng-template",null,16,p.W1O),p.qZA()),2&e){const e=p.MAs(3),t=p.oxw(2);let i;p.xp6(1),p.Q6J("ngIf",1===(null!==(i=null==t.diario||null==t.diario.paginas?null:t.diario.paginas.length)&&void 0!==i?i:0))("ngIfElse",e)}}function Qt(e,t){if(1&e&&(p.TgZ(0,"span",9),p.TgZ(1,"mat-icon",10),p._uU(2,"feed"),p.qZA(),p.YNc(3,jt,2,1,"a",11),p.YNc(4,Ht,4,2,"ng-template",null,12,p.W1O),p.qZA()),2&e){const e=p.MAs(5),t=p.oxw();p.xp6(3),p.Q6J("ngIf",!(null!=t.diario&&t.diario.paginas))("ngIfElse",e)}}function zt(e,t){if(1&e&&(p.TgZ(0,"span",20),p.TgZ(1,"mat-icon",10),p._uU(2,"post_add"),p.qZA(),p.TgZ(3,"a",13),p._uU(4,"Edi\xe7\xe3o Extra"),p.qZA(),p.qZA()),2&e){const e=p.oxw();p.xp6(3),p.Q6J("href",e.urlAPI+(null==e.diario?null:e.diario.dom_extra_arquivo),p.LSH)}}function Vt(e,t){if(1&e&&(p.TgZ(0,"div",27),p.TgZ(1,"mat-icon",28),p._uU(2,"post_add"),p.qZA(),p.TgZ(3,"a",13),p._uU(4),p.qZA(),p.qZA()),2&e){const e=t.$implicit,i=t.index,s=t.count,o=
1p.oxw(3);p.xp6(3),p.Q6J("href",o.urlAPI+e,p.LSH),p.xp6(1),p.hij("Arquivo ",s>1?i+1+" de "+s:"","")}}function Gt(e,t){if(1&e&&(p.ynx(0),p.TgZ(1,"div",23),p.TgZ(2,"strong",24),p._uU(3),p.qZA(),p._UZ(4,"span",25),p.YNc(5,Vt,5,2,"div",26),p.qZA(),p.BQk()),2&e){const e=t.$implicit;p.xp6(2),p.Q6J("matTooltip",e.suplemento_titulo.length>75?e.suplemento_titulo:""),p.xp6(1),p.hij(" ",e.suplemento_titulo.length>75?e.suplemento_titulo.substring(0,74)+"...":e.suplemento_titulo," "),p.xp6(1),p.Q6J("innerHTML",e.suplemento_descricao,p.oJD),p.xp6(1),p.Q6J("ngForOf",e.suplemento_arquivo.split("*|*"))}}function $t(e,t){if(1&e&&(p.TgZ(0,"div"),p.TgZ(1,"mat-expansion-panel",21),p.TgZ(2,"mat-expansion-panel-header"),p.TgZ(3,"mat-panel-title"),p._uU(4,"Suplementos"),p.qZA(),p.qZA(),p.YNc(5,Gt,6,4,"ng-container",22),p.qZA(),p.qZA()),2&e){const e=p.oxw();p.xp6(5),p.Q6J("ngForOf",null==e.diario?null:e.diario.dom_suplementos)}}let Wt=(()=>{class e{constructor(){this.urlAPI="https://portal-api.campinas.sp.gov.br/"}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-bloco-diario"]],inputs:{diario:"diario"},decls:10,vars:5,consts:[[1,"pt-4"],["disabled","","hideToggle","","expanded",""],[1,"force-black-text","capitalize"],["class","justify-end font-bold",4,"ngIf"],[1,"color-primary","w-full"],["class","flex items-center",4,"ngIf"],["class","pt-2 flex items-center",4,"ngIf"],[4,"ngIf"],[1,"justify-end","font-bold"],[1,"flex","items-center"],["fontSet","material-icons-outlined",1,"pr-1"],["class","pl-1","target","_blank",3,"href",4,"ngIf","ngIfElse"],["comPaginas",""],["target","_blank",1,"pl-1",3,"href"],[1,"flex","items-center","gap-1"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["multiPaginas",""],["target","_blank",3,"href"],[1,"text-gray-500"],["target","_blank",3,"href",4,"ngFor","ngForOf"],[1,"pt-2","flex","items-center"],[1,"expansion-suplementos"],[4,"ngFor","ngForOf"],[1,"flex","flex-col","justify-center","lg:border-b-2","lg:border-gray-100","pb-6","pt-6"],[3,"matTooltip"],[3,"innerHTML"],["class","flex color-primary pt-4",4,"ngFor","ngForOf"],[1,"flex","color-primary","pt-4"],["fontSet","material-icons-outlined"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p.TgZ(1,"mat-expansion-panel",1),p.TgZ(2,"mat-expansion-panel-header"),p.TgZ(3,"mat-panel-title",2),p._uU(4),p.qZA(),p.YNc(5,Nt,2,1,"mat-panel-description",3),p.qZA(),p.TgZ(6,"div",4),p.YNc(7,Qt,6,2,"span",5),p.YNc(8,zt,5,1,"span",6),p.qZA(),p.qZA(),p.YNc(9,$t,6,1,"div",7),p.qZA()),2&e&&(p.xp6(4),p.Oqu(null==t.diario?null:t.diario.dom_data_pub_completa),p.xp6(1),p.Q6J("ngIf",null==t.diario?null:t.diario.dom_edicao),p.xp6(2),p.Q6J("ngIf",null==t.diario?null:t.diario.dom_arquivo),p.xp6(1),p.Q6J("ngIf",null==t.diario?null:t.diario.dom_extra_arquivo),p.xp6(1),p.Q6J("ngIf",(null==t.diario?null:t.diario.dom_suplementos)&&(null==t.diario||null==t.diario.dom_suplementos?null:t.diario.dom_suplementos.length)))},directives:[Ft.ib,Ft.yz,Ft.yK,s.O5,Ft.u4,Ue.Hw,s.sg,et.gM],styles:[".force-black-text[_ngcontent-%COMP%]{color:#000!important}mat-expansion-panel[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-top-left-radius:0;border-bottom-right-radius:0;border-top-right-radius:0}mat-expansion-panel-header[_ngcontent-%COMP%]{cursor:default}"]}),e})();var Kt=i(8400);function Xt(e,t){if(1&e&&(p.TgZ(0,"a",14),p._uU(1),p.qZA()),2&e){const e=p.oxw().$implicit;p.Q6J("href",e.url_destino,p.LSH),p.xp6(1),p.Oqu(e.titulo)}}function ei(e,t){if(1&e&&(p.TgZ(0,"a",15),p._uU(1),p.qZA()),2&e){const e=p.oxw().$implicit;p.Q6J("routerLink",e.urlInterna)("queryParams",e.queryParams),p.xp6(1),p.Oqu(e.titulo)}}function ti(e,t){if(1&e&&(p.ynx(0),p.YNc(1,Xt,2,2,"a",12),p.YNc(2,ei,2,3,"a",13),p.BQk()),2&e){const e=t.$implicit;p.xp6(1),p.Q6J("ngIf",e.externo),p.xp6(1),p.Q6J("ngIf",!e.externo)}}function ii(e,t){if(1&e&&(p.ynx(0),p._UZ(1,"app-link-destaque-card",16),p.BQk()),2&e){const e=t.$implicit;p.xp6(1),p.Q6J("link",e)}}function si(e,t){if(1&e&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&e){const e=p.oxw();p.xp6(1),p.hij(" ",(e.diariosPesquisa.value.length?"Exibindo ":"N\xe3o foram encontradas ")+e.descricaoPesquisa," ")}}function oi(e,t){if(1&e&&(p.ynx(0),p._UZ(1,"app-bloco-diario",17),p.BQk()),2&e){const e=t.$implicit;p.xp6(1),p.Q6J("diario",e)}}function ni(e,t){if(1&e){const e=p.EpF();p.TgZ(0,"app-paginacao-personalizada",18),p.NdJ("paginaAlterada",function(t){return p.CHM(e),p.oxw().navegarPagina(t.pageIndex)})("carregarMais",function(t){return p.CHM(e),p.oxw().pagMobileCarregarMais(t)}),p.qZA()}if(2&e){const e=p.oxw();p.Q6J("isMobile",e.isMobile)("totalResultados",e.dadosPesquisa.total_resultados)("paginaAtual",e.dadosPesquisa.pagina_atual)("itensPorPagina",10)("incrementoMobile",10*(e.dadosPesquisa.pagina_atual+1))}}let ai=(()=>{class e{constructor(e,t){this.diarioService=e,this.alertaService=t,this.paginaAtualMobile=1,this.itensPorPaginaMobile=10,this.resultadosAcumulados=[],this.diariosDoMes=new l.X([]),this.diariosPesquisa=new l.X([]),this.tipoPublicacao=null,this.exibirBusca=!1,this.modoPesquisa=0,this.isMobile=window.innerWidth<1024,this.links=[{titulo:"Alerta Di\xe1rio Oficial",urlInterna:"/servico",queryParams:{servicoId:37697}},{titulo:"Informa\xe7\xf5es sobre o Certificado Digital",urlInterna:"/pagina/certificado-digital-guia-de-utilizacao-10421"},{titulo:"Como publicar no di\xe1rio oficial",urlInterna:"/diario-oficial/orcamentos-dom"}]}get descricaoPesquisa(){var e,t,i;if(!this.ultimaPesquisa)return"";const s=null===(i=null===(t=null===(e=this.ultimaPesquisa)||void 0===e?void 0:e.partes)||void 0===t?void 0:t.filter(Boolean))||void 0===i?void 0:i.reduce((e,t)=>
1e+`${e?", e ":""}${t.split(",").map(e=>`"${e}"`).join(" ou ")}`,""),n=[o.ou.fromISO(this.ultimaPesquisa.periodoInicial),o.ou.fromISO(this.ultimaPesquisa.periodoFinal)].map(e=>e.isValid?e.toLocaleString():"");return`publica\xe7\xf5es ${this.ultimaPesquisa.edicao?`de edi\xe7\xe3o ${this.ultimaPesquisa.edicao} `:""}${s?`que contenham ${s}`:""}${(s||this.ultimaPesquisa.edicao)&&n[0]?",":""}${n[0]?" publicadas "+(n[0]===n[1]?`em ${n[0]}`:`entre ${n[0]} e ${n[1]}`):""}.`}ngOnInit(){this.alertaService.loadShow("Buscando publica\xe7\xf5es..."),this.getDiariosGeral().subscribe(e=>{this.resultadosAcumulados=e,this.diariosDoMes.next(e),this.alertaService.loadHide()})}getDiariosGeral(e=0,t,i){return this.diarioService.getDiarios({page:e,inicio:t,fim:i}).pipe((0,n.b)(e=>this.dadosPesquisa={pagina_inicio:0,pagina_atual:e.pager.current_page,pagina_fim:e.pager.total_pages,diarios:e.rows.map(e=>({data:e.dom_data_pub,paginas:"",arquivo:e.dom_arquivo})),termo_pesquisado:"",total_resultados:+e.pager.total_items}),(0,a.U)(({rows:e})=>e))}_execPesquisaDOM(e,t=0){return(0,c.P)(()=>(null==e?void 0:e.edicao)?this.diarioService.pesquisaEdicao(e.edicao).pipe((0,r.zg)(i=>{if(null==e?void 0:e.partes)return this.diarioService.pesquisaTermo(Object.assign(Object.assign({},e),{edicao:i[0].dom_arquivo.split("/").pop()}),t).pipe((0,n.b)(e=>this.dadosPesquisa=e),(0,r.zg)(e=>this.diarioService.getPublicacoesBusca(e)));if(null==i?void 0:i[0])return(0,d.of)(i).pipe((0,a.U)(t=>(null==e?void 0:e.periodoInicial)?t.filter(t=>o.Xp.fromDateTimes(o.ou.fromISO(e.periodoInicial),o.ou.fromISO(e.periodoFinal)).contains(o.ou.fromFormat(t.dom_data_pub,"dd/LL/yyyy"))):t),(0,n.b)(()=>this.dadosPesquisa=void 0));throw"Edi\xe7\xe3o n\xe3o encontrada."})):(null==e?void 0:e.partes)?this.diarioService.pesquisaTermo(e,t).pipe((0,n.b)(e=>this.dadosPesquisa=e),(0,r.zg)(e=>this.diarioService.getPublicacoesBusca(e))):this.getDiariosGeral(t,e.periodoInicial,e.periodoFinal))}pesquisarDOM(e){var t;if(!e)return this.exibirBusca=!1,this.ultimaPesquisa=void 0,this.alertaService.loadShow("Buscando publica\xe7\xf5es..."),void this.getDiariosGeral().subscribe(e=>{this.resultadosAcumulados=e,this.diariosDoMes.next(e),this.alertaService.loadHide()});this.alertaService.loadShow("Buscando publica\xe7\xf5es..."),this.ultimaPesquisa=e,this.tipoPublicacao=null!==(t=null==e?void 0:e.tipoPublicacao)&&void 0!==t?t:null,this.paginaAtualMobile=0,this.itensPorPaginaMobile=10,this.resultadosAcumulados=[],this._execPesquisaDOM(e).subscribe({next:e=>{this.resultadosAcumulados=e,this.diariosPesquisa.next(e),this.exibirBusca=!0,this.alertaService.loadHide()},error:e=>{this.diariosPesquisa.next([]),this.dadosPesquisa=void 0,this.exibirBusca=!0,this.alertaService.loadHide(),"string"==typeof e&&this.alertaService.toast({mensagem:e})}})}navegarPagina(e){this.alertaService.loadShow("Carregando p\xe1gina..."),this.ultimaPesquisa?this._execPesquisaDOM(this.ultimaPesquisa,e).subscribe({next:e=>{this.diariosPesquisa.next(e),this.alertaService.loadHide(),setTimeout(()=>{h.M.scrollElemento(".titulo-listagem",!1,120)},300)},error:e=>{console.error("Erro ao navegar:",e),this.alertaService.loadHide()}}):this.getDiariosGeral(e).subscribe(e=>{this.diariosDoMes.next(e),this.alertaService.loadHide(),setTimeout(()=>h.M.scrollElemento(".titulo-listagem",!1,120),300)})}pagMobileCarregarMais(e){const t=Math.ceil(this.resultadosAcumulados.length/10)-1;if(t>=Math.ceil(e/10))return;const i=t+1;this.alertaService.loadShow("Carregando..."),this.ultimaPesquisa?this._execPesquisaDOM(this.ultimaPesquisa,i).subscribe({next:e=>{this.resultadosAcumulados=[...this.resultadosAcumulados,...e],this.itensPorPaginaMobile=this.resultadosAcumulados.length,this.diariosPesquisa.next(this.resultadosAcumulados),this.alertaService.loadHide()},error:e=>{console.error("Erro:",e),this.alertaService.loadHide()}}):this.getDiariosGeral(i).subscribe({next:e=>{this.resultadosAcumulados=[...this.resultadosAcumulados,...e],this.itensPorPaginaMobile=e.length,this.diariosDoMes.next(this.resultadosAcumulados),this.alertaService.loadHide()},error:e=>{console.error("Erro:",e),this.alertaService.loadHide()}})}}return e.\u0275fac=function(t){return new(t||e)(p.Y36(b),p.Y36(v.w))},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-diario-oficial"]],decls:20,vars:10,consts:[[1,"md:container","md:mx-auto","p-3","flex","flex-col","gap-2","lg:gap-4"],[1,"lg:flex","lg:items-center","lg:justify-between","lg:border-b-2","lg:border-gray-300"],["tabindex","0",1,"word-break","color-primary","mb-0-force","mat-display-1","foco-titulo","border-b-2","border-gray-300","lg:border-b-0"],["href","/diario-oficial"],[1,"hidden","lg:flex","gap-6","links-internos-inner"],[4,"ngFor","ngForOf"],[1,"lg:hidden","flex","overflow-x-auto","gap-2","mt-2"],[3,"pesquisa"],[1,"flex","flex-col","mt-2"],[1,"color-primary","titulo-listagem"],[4,"ngIf"],[3,"isMobile","totalResultados","paginaAtual","itensPorPagina","incrementoMobile","paginaAlterada","carregarMais",4,"ngIf"],[3,"href",4,"ngIf"],[3,"routerLink","queryParams",4,"ngIf"],[3,"href"],[3,"routerLink","queryParams"],[3,"link"],[3,"diario"],[3,"isMobile","totalResultados","paginaAtual","itensPorPagina","incrementoMobile","paginaAlterada","carregarMais"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p.TgZ(1,"section",1),p.TgZ(2,"h2",2),p.TgZ(3,"a",3),p._uU(4," Di\xe1rio Oficial "),p.qZA(),p.qZA(),p.TgZ(5,"nav",4),p.YNc(6,ti,3,2,"ng-container",5),p.qZA(),p.TgZ(7,"nav",6),p.YNc(8,ii,2,1,"ng-container",5),p.qZA(),p.qZA(),p.TgZ(9,"section"),p.TgZ(10,"app-pesquisa-diario",7),p.NdJ("pesquisa",function(e){return t.pesquisarDOM(e)}),p.qZA(),p.qZA(),p.TgZ(11,"section",8),p.TgZ(12,"h2",9),p.TgZ(13,"strong"),p._uU(14),p.qZA(),p.qZA(),p.YNc(15,si,2,1,"span",10),p.YNc(16,oi,2,1,"ng-container",5),p.ALo(17,"async"),p.ALo(18,"async"),p.qZA(),p.YNc(19,ni,1,5,"app-paginacao-personalizada",11),p.qZA()),2&e&&(p.xp6(6),p.Q6J("ngForOf",t.links),p.xp6(2),p.Q6J("ngForOf",t.links),p.xp6(6),p.Oqu(t.exibirBusca?"Resultados da pesquisa":"\xdaltimas publica\xe7\xf5es"),p.xp6(1),p.Q6J("ngIf",t.exibirBusca),p.xp6(1),p.Q6J("ngForOf",t.exibirBusca?p.lcZ(17,6,t.diariosPesquisa):p.lcZ(18,8,t.diariosDoMes
1)),p.xp6(3),p.Q6J("ngIf",t.dadosPesquisa&&t.dadosPesquisa.pagina_fim>=t.dadosPesquisa.pagina_atual&&t.dadosPesquisa.total_resultados>10))},directives:[s.sg,Mt,s.O5,Ut.yS,Lt.r,Wt,Kt.T],pipes:[s.Ov],styles:[".btn-publi-mes[_ngcontent-%COMP%]{margin-top:2rem;padding:6px 12px}.paginator[_ngcontent-%COMP%]{background-color:#f6f6f6}"]}),e})();const ri=[{path:"",component:i(7560).n,children:[{path:"",component:ai},{path:"orcamentos-dom",component:(()=>{class e{constructor(){}ngOnInit(){}autoResize(e){const t=window.document.getElementById(e).contentWindow.document.body.scrollHeight,i=window.document.getElementById(e).contentWindow.document.body.scrollWidth;window.document.getElementById(e).height=t+"px",window.document.getElementById(e).width=i+"px"}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=p.Xpm({type:e,selectors:[["app-orcamentos-dom"]],decls:2,vars:0,consts:[[1,"md:container","md:mx-auto","p-3"],["src","https://portal-api.campinas.sp.gov.br/webform/orcamento_dom/share","id","orcamentos","title","Or\xe7amento DOM | Portal PMC","frameborder","0","allow","geolocation; microphone; camera","allowtransparency","true","allowfullscreen","true",1,"webform-share-iframe",2,"width","1px","min-width","100%",3,"load","click"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p.TgZ(1,"iframe",1),p.NdJ("load",function(){return t.autoResize("orcamentos")})("click",function(){return t.autoResize("orcamentos")}),p.qZA(),p.qZA())},styles:[".webform-share-iframe[_ngcontent-%COMP%]{height:3020px}@media (max-width:768px){.webform-share-iframe[_ngcontent-%COMP%]{height:4800px}}"]}),e})()}]},{path:"**",redirectTo:"/"}];let li=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({imports:[[Ut.Bz.forChild(ri)],Ut.Bz]}),e})();var ci=i(7441),di=i(2613),hi=i(2087),pi=i(1267),ui=i(9692),gi=i(9417);const mi={validation:!0};let _i=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=p.oAB({type:e}),e.\u0275inj=p.cJS({providers:[{provide:Oe.Ad,useValue:"pt-BR"}],imports:[[s.ez,li,Ke.lN,Ue.Ps,Xe.c,Me.ot,ci.LD,di.Fk,ke.u5,ke.UX,Re.FA,hi.En,Ft.To,Ut.Bz,et.AV,pi.m,ui.TU,gi.yI.forRoot(mi),vt,Ee,Be.Is,Qe.Nh]]}),e})()}}]);

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.