slthcore 0.4.6__tar.gz → 0.4.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slthcore might be problematic. Click here for more details.
- {slthcore-0.4.6/slthcore.egg-info → slthcore-0.4.7}/PKG-INFO +1 -1
- {slthcore-0.4.6 → slthcore-0.4.7}/setup.py +1 -1
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/static/js/slth.min.js +7 -7
- {slthcore-0.4.6 → slthcore-0.4.7/slthcore.egg-info}/PKG-INFO +1 -1
- {slthcore-0.4.6 → slthcore-0.4.7}/MANIFEST.in +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/setup.cfg +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/apps.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/configure/__main__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/__main__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/__pycache__/__main__.cpython-312.pyc +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/.DS_Store +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/.gitignore +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/asgi.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/endpoints/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/models.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/settings.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/tests.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/urls.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/wsgi.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/application.yml +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/entrypoint.sh +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/manage.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/requirements.txt +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/base.env +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/docker-compose.yml +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/frontend/package.json +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/frontend/src/main.jsx +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/frontend/vite.config.js +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/local.env +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/run.sh +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/selenium/run.sh +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/test.sh +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/components.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/db/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/db/generic.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/db/models.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/auth.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/deletion.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/dev.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/email.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/job.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/log.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/profile.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/pushsubscription.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/report.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/role.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/task.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/timezone.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/user.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/endpoints/whatsappnotification.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/exceptions.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/factory.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/forms.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/management/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/management/commands/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/management/commands/integration_test.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/management/commands/sync.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/management/commands/worker.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/middleware/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/middleware/timezone.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0001_initial.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0002_email_role_pushsubscription_error.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0003_rename_photo_profile_alter_profile_options.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0004_alter_profile_photo.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0005_alter_profile_photo.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0006_user.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0007_deletion_log.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0008_alter_deletion_datetime_alter_log_datetime.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0009_remove_email_from_email_email_action_email_attempt_and_more.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0010_email_key_alter_email_action_alter_email_attempt_and_more.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0011_usertimezone.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0012_timezone_remove_usertimezone_key_and_more.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0013_whatsappnotification.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/models.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/notifications.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/oauth.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/pdf/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/pdf/tests.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/permissions.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/printer.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/queryset.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/roles.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/selenium/__init__.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/selenium/browser.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/serializer.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/static/.DS_Store +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/static/css/.DS_Store +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/static/css/slth.css +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/static/images/placeholder.png +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/static/js/index.min.js +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/static/js/react.min.js +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/statistics.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/tasks.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/templates/email.html +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/templates/index.html +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/templates/report.html +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/templates/service-worker.js +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/templates/signature.html +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/tests.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/threadlocal.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/tz.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/urls.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/utils.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slth/views.py +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slthcore.egg-info/SOURCES.txt +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slthcore.egg-info/dependency_links.txt +0 -0
- {slthcore-0.4.6 → slthcore-0.4.7}/slthcore.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{j as t,c as Y,r as I,R as Be}from"./react.min.js";const p={colors:{primary:"var(--primary-color)",success:"var(--success-color)",warning:"var(--warning-color)",info:"var(--info-color)",danger:"var(--danger-color)",highlight:"var(--highlight-color)",seconday:"var(--seconday-color)",auxiliary:"var(--auxiliary-color)"},border:{radius:"var(--border-radius)"},background:{info:"var(--info-background)"}};function Ae(e){function n(){const a={width:30,height:30,borderRadius:"50%",backgroundColor:e.data.value};return t.jsx("div",{style:a})}return n()}function Oe(e){function n(r){navigator.clipboard.writeText(r),U('Icon "'+r+'" copied to clipboard!')}const a={display:"inline-block",width:150,textAlign:"center",cursor:"pointer"};return t.jsx("div",{style:{marginTop:30},children:_e.map(r=>t.jsxs("div",{className:"icon-box",onClick:()=>n(r),style:a,children:[t.jsx("i",{className:"fa-solid fa-fw fa-"+r}),t.jsx("div",{className:"icon-text",children:r})]},Math.random()))})}function Re(e){function n(){return t.jsx("i",{style:e.style,className:"fa-solid fa-circle-notch fa-spin fa-1x spin"})}return n()}function C(e){var n="fa-solid fa-"+e.icon;return e.className&&(n+=" "+e.className),(e.onClick||e.clickable)&&(n+=" clickable"),t.jsx("i",{style:e.style,className:n,onClick:e.onClick})}function be(e){function n(){const a={padding:12,textDecoration:"none",whiteSpace:"nowrap",borderRadius:5,margin:5,cursor:"pointer",display:e.display||"block"};return e.primary&&(a.backgroundColor=p.colors.primary,a.color="white"),e.default&&(a.color=p.colors.primary,a.border="solid 1px "+p.colors.primary),t.jsx("a",{id:e.id,style:a,onClick:r=>{r.preventDefault(),e.onClick()},children:t.jsx(C,{icon:e.icon})})}return n()}const _e=["1","2","3","4","5","6","7","8","9","fill-drip","arrows-to-circle","circle-chevron-right","at","trash-can","text-height","user-xmark","stethoscope","message","info","down-left-and-up-right-to-center","explosion","file-text","wave-square","ring","building-un","dice-three","calendar-days","anchor-circle-check","building-circle-arrow-right","volleyball","arrows-up-to-line","sort-down","minus-circle","door-open","sign-out-alt","atom","soap","icons","microphone-lines-slash","bridge-circle-check","pump-medical","fingerprint","hand-point-right","search-location","step-forward","smile-beam","flag-checkered","football","school-circle-exclamation","crop","angles-down","users-rectangle","people-roof","people-line","beer","diagram-predecessor","long-arrow-up","fire-flame-simple","person","laptop","file-csv","menorah","truck-plane","record-vinyl","grin-stars","bong","spaghetti-monster-flying","arrow-down-up-across-line","utensil-spoon","jar-wheat","mail-bulk","file-circle-exclamation","hospital-symbol","pager","contact-book","strikethrough","k","landmark-flag","pencil","backward","caret-right","comments","paste","code-pull-request","clipboard-list","truck-ramp-box","user-check","vial-virus","sheet-plastic","blog","user-ninja","person-arrow-up-from-line","torah","quidditch","toggle-off","box-archive","person-drowning","sort-numeric-down-alt","grin-tongue-squint","spray-can","truck-monster","w","globe-africa","rainbow","circle-notch","tablet-screen-button","paw","cloud","trowel-bricks","flushed","hospital-user","tent-arrow-left-right","legal","binoculars","microphone-slash","box-tissue","motorcycle","concierge-bell","pencil-ruler","people-arrows","mars-and-venus-burst","square-caret-right","scissors","sun-plant-wilt","toilets-portable","hockey-puck","table","magnifying-glass-arrow-right","tachograph-digital","users-slash","clover","reply","star-and-crescent","house-fire","square-minus","helicopter","compass","square-caret-down","file-circle-question","laptop-code","swatchbook","prescription-bottle","navicon","people-group","hourglass-end","heart-crack","square-up-right","kiss-beam","film","ruler-horizontal","people-robbery","lightbulb","caret-left","exclamation-circle","school-circle-xmark","sign-out","circle-chevron-down","unlock-keyhole","cloud-showers-heavy","headphones-simple","sitemap","donate","memory","road-spikes","fire-burner","flag","hanukiah","feather","volume-low","comment-slash","cloud-sun-rain","compress","wheat-awn","ankh","hands-holding-child","asterisk","square-check","peseta-sign","heading","ghost","list","square-phone-flip","cart-plus","gamepad","dot-circle","face-dizzy","egg","house-medical-circle-xmark","campground","folder-plus","soccer-ball","paintbrush","lock","gas-pump","hot-tub","map-marked","house-flood-water","tree","bridge-lock","sack-dollar","pen-to-square","car-side","share-nodes","heart-circle-minus","hourglass-half","microscope","sink","shopping-bag","sort-alpha-down-alt","mitten","person-rays","users","eye-slash","flask-vial","hand","om","worm","house-circle-xmark","plug","chevron-up","hand-spock","stopwatch","kiss","bridge-circle-xmark","grin-tongue","chess-bishop","grin-wink","hard-of-hearing","road-circle-check","dice-five","square-rss","land-mine-on","i-cursor","stamp","stairs","i","hryvnia","pills","grin-alt","tooth","v","bangladeshi-taka-sign","bicycle","staff-snake","head-side-cough-slash","truck-medical","wheat-awn-circle-exclamation","snowman","mortar-pestle","road-barrier","school","igloo","joint","angle-right","horse","q","g","notes-medical","thermometer-half","dong-sign","capsules","poo-storm","frown-open","hand-point-up","money-bill","bookmark","align-justify","umbrella-beach","helmet-un","bullseye","bacon","hand-point-down","arrow-up-from-bracket","folder","file-waveform","radiation","chart-simple","mars-stroke","vial","tachometer-alt-average","wand-magic-sparkles","e","pen-clip","bridge-circle-exclamation","user","school-circle-check","dumpster","van-shuttle","building-user","square-caret-left","highlighter","key","bullhorn","globe","synagogue","person-half-dress","road-bridge","location-arrow","c","tablet-button","building-lock","pizza-slice","money-bill-wave","chart-area","house-flag","person-circle-minus","cancel","camera-rotate","spray-can-sparkles","star","repeat","cross","box","venus-mars","mouse-pointer","maximize","charging-station","triangle-circle-square","shuffle","running","mobile-retro","grip-lines-vertical","spider","hands-bound","file-invoice-dollar","plane-circle-exclamation","x-ray","spell-check","slash","mouse","sign-in","store-alt-slash","server","virus-covid-slash","shop-lock","hourglass-start","blender-phone","building-wheat","person-breastfeeding","sign-in-alt","venus","passport","heartbeat","people-carry","temperature-high","microchip","crown","weight-hanging","xmarks-lines","file-prescription","weight","user-group","sort-alpha-up","chess-knight","laugh-squint","wheelchair","circle-arrow-up","toggle-on","walking","l","fire","procedures","space-shuttle","laugh","folder-open","heart-circle-plus","code-fork","city","microphone-lines","pepper-hot","unlock","colon-sign","headset","store-slash","road-circle-xmark","user-minus","mars-stroke-v","glass-cheers","clipboard","house-circle-exclamation","file-upload","wifi","bathtub","underline","user-pen","signature","stroopwafel","bold","anchor-lock","building-ngo","manat-sign","not-equal","border-top-left","map-marked-alt","jedi","square-poll-vertical","mug-hot","car-battery","gift","dice-two","chess-queen","glasses","chess-board","building-circle-check","person-chalkboard","mars-stroke-right","hand-rock","square-caret-up","cloud-showers-water","chart-bar","hands-wash","less-than-equal","train","low-vision","crow","sailboat","window-restore","square-plus","torii-gate","frog","bucket","image","microphone","cow","caret-up","screwdriver","folder-closed","house-tsunami","square-nfi","arrow-up-from-ground-water","martini-glass","undo-alt","table-columns","lemon","head-side-mask","handshake","gem","dolly","smoking","minimize","monument","snowplow","angles-right","cannabis","play-circle","tablets","ethernet","euro","chair","circle-check","stop-circle","drafting-compass","plate-wheat","icicles","person-shelter","neuter","id-badge","marker","laugh-beam","helicopter-symbol","universal-access","circle-chevron-up","lari-sign","volcano","person-walking-dashed-line-arrow-right","sterling-sign","viruses","square-person-confined","user-tie","long-arrow-down","tent-arrow-down-to-line","certificate","reply-all","suitcase","skating","funnel-dollar","camera-retro","circle-arrow-down","file-import","square-arrow-up-right","box-open","scroll","spa","location-pin-lock","pause","hill-avalanche","thermometer-empty","bomb","registered","vcard","scale-unbalanced-flip","subscript","directions","burst","laptop-house","tired","money-bills","smog","crutch","cloud-upload","palette","arrows-turn-right","vest","ferry","arrows-down-to-people","sprout","left-right","boxes-packing","circle-arrow-left","group-arrows-rotate","bowl-food","candy-cane","sort-amount-down","thunderstorm","text-slash","smile-wink","file-word","file-powerpoint","arrows-left-right","house-lock","cloud-download","children","chalkboard","user-large-slash","envelope-open","handshake-simple-slash","mattress-pillow","guarani-sign","sync","fire-extinguisher","cruzeiro-sign","greater-than-equal","shield-halved","book-atlas","virus","envelope-circle-check","layer-group","arrows-to-dot","archway","heart-circle-check","house-damage","file-zipper","square","martini-glass-empty","couch","cedi-sign","italic","church","comments-dollar","democrat","z","skiing","road-lock","a","temperature-down","feather-pointed","p","snowflake","newspaper","rectangle-ad","circle-arrow-right","filter-circle-xmark","locust","unsorted","list-ol","person-dress-burst","money-check-dollar","vector-square","bread-slice","language","kiss-wink-heart","filter","question","file-signature","up-down-left-right","house-chimney-user","hand-holding-heart","puzzle-piece","money-check","star-half-stroke","code","whiskey-glass","building-circle-exclamation","magnifying-glass-chart","external-link","cubes-stacked","won","virus-covid","austral-sign","f","leaf","road","taxi","person-circle-plus","pie-chart","bolt-lightning","sack-xmark","file-excel","file-contract","fish-fins","building-flag","grin-beam","object-ungroup","poop","map-marker","kaaba","toilet-paper","helmet-safety","eject","circle-right","plane-circle-check","meh-rolling-eyes","object-group","line-chart","mask-ventilator","arrow-right","signs-post","cash-register","person-circle-question","h","tarp","tools","arrows-to-eye","plug-circle-bolt","heart","mars-and-venus","house-user","dumpster-fire","house-crack","martini-glass-citrus","surprise","bottle-water","pause-circle","toilet-paper-slash","apple-whole","kitchen-set","r","thermometer-quarter","cube","bitcoin-sign","shield-dog","solar-panel","lock-open","elevator","money-bill-transfer","money-bill-trend-up","house-flood-water-circle-arrow-right","square-poll-horizontal","circle","fast-backward","recycle","user-astronaut","plane-slash","trademark","basketball","satellite-dish","circle-up","mobile-screen-button","volume-up","users-rays","wallet","clipboard-check","file-audio","hamburger","wrench","bugs","rupee","file-image","question-circle","plane-departure","handshake-slash","book-bookmark","code-branch","hat-cowboy","bridge","phone-flip","truck-front","cat","anchor-circle-exclamation","truck-field","route","clipboard-question","panorama","comment-medical","teeth-open","file-circle-minus","tags","wine-glass","fast","meh-blank","square-parking","house-signal","tasks-alt","faucet-drip","dolly-flatbed","smoking-ban","terminal","mobile-button","house-medical-flag","shopping-basket","tape","bus-simple","eye","sad-cry","audio-description","person-military-to-person","file-shield","user-slash","pen","tower-observation","file-code","signal","bus","heart-circle-xmark","house-chimney","window-maximize","frown","prescription","store-alt","save","vihara","scale-unbalanced","sort-up","commenting","plant-wilt","diamond","grin-squint","hand-holding-usd","bacterium","hand-pointer","drum-steelpan","hand-scissors","praying-hands","redo","biohazard","location","mars-double","child-dress","users-between-lines","lungs-virus","grin-tears","phone","calendar-xmark","child-reaching","head-side-virus","user-gear","sort-numeric-up","door-closed","shield-virus","dice-six","mosquito-net","bridge-water","person-booth","text-width","hat-wizard","fancy","person-digging","trash","tachometer-average","book-medical","poo","quote-right","tshirt","cubes","divide","tenge","headphones","hands-holding","hands-clapping","republican","arrow-left","person-circle-xmark","ruler","align-left","dice-d6","restroom","j","users-viewfinder","file-video","up-right-from-square","th","file-pdf","book-bible","o","suitcase-medical","user-secret","otter","person-dress","comment-dollar","business-time","th-large","tanakh","volume-control-phone","hat-cowboy-side","clipboard-user","child","lira-sign","satellite","plane-lock","tag","comment","cake","envelope","angles-up","paperclip","arrow-right-to-city","ribbon","lungs","sort-numeric-up-alt","litecoin-sign","border-none","circle-nodes","parachute-box","indent","truck-field-un","hourglass","mountain","user-md","info-circle","cloud-meatball","camera","square-virus","meteor","car-on","sleigh","sort-numeric-down","hand-holding-water","water","calendar-check","braille","prescription-bottle-medical","landmark","truck","crosshairs","person-cane","tent","vest-patches","check-double","sort-alpha-down","money-bill-wheat","cookie","undo","hdd","grin-squint-tears","dumbbell","rectangle-list","tarp-droplet","house-medical-circle-check","skiing-nordic","calendar-plus","plane-arrival","circle-left","train-subway","chart-gantt","inr","crop-simple","money-bill-alt","long-arrow-alt-left","dna","virus-slash","subtract","chess","long-arrow-left","plug-circle-check","street-view","franc-sign","volume-off","hands-asl-interpreting","gear","tint-slash","mosque","mosquito","star-of-david","person-military-rifle","shopping-cart","vials","plug-circle-plus","place-of-worship","grip-vertical","level-up","u","square-root-variable","clock","step-backward","pallet","faucet","baseball-bat-ball","s","timeline","keyboard","caret-down","house-chimney-medical","thermometer-three-quarters","mobile-screen","plane-up","piggy-bank","battery-half","mountain-city","coins","khanda","sliders","folder-tree","network-wired","map-pin","hamsa","cent-sign","flask","person-pregnant","wand-sparkles","ellipsis-vertical","ticket","power-off","right-long","flag-usa","laptop-file","tty","diagram-next","person-rifle","house-medical-circle-exclamation","closed-captioning","person-hiking","venus-double","images","calculator","people-pulling","n","tram","cloud-rain","building-circle-xmark","ship","arrows-down-to-line","download","grin","delete-left","eyedropper","file-circle-check","forward","mobile","meh","align-center","book-skull","id-card","outdent","heart-circle-exclamation","house","calendar-week","laptop-medical","b","file-medical","dice-one","kiwi-bird","exchange","rotate-right","utensils","sort-amount-up","mill-sign","bowl-rice","skull","tower-broadcast","truck-pickup","up-long","stop","code-merge","upload","hurricane","mound","toilet-portable","compact-disc","file-download","caravan","shield-cat","zap","glass-water","oil-well","vault","mars","toilet","plane-circle-xmark","yen","ruble","sun","guitar","laugh-wink","horse-head","bore-hole","industry","circle-down","arrows-turn-to-dots","florin-sign","sort-amount-down-alt","less-than","angle-down","car-tunnel","head-side-cough","grip-lines","thumbs-down","user-lock","long-arrow-right","anchor-circle-xmark","ellipsis","chess-pawn","kit-medical","person-through-window","toolbox","hands-holding-circle","bug","credit-card","car","hand-holding-hand","book-reader","mountain-sun","arrows-left-right-to-line","dice-d20","truck-droplet","file-circle-xmark","temperature-up","medal","bed","square-h","podcast","thermometer-full","bell","superscript","plug-circle-xmark","star-of-life","phone-slash","paint-roller","handshake-angle","map-marker-alt","file","greater-than","swimmer","arrow-down","tint","eraser","globe-americas","person-burst","dove","battery-empty","socks","inbox","section","tachometer-alt","envelope-open-text","hospital","wine-bottle","chess-rook","stream","dharmachakra","hotdog","person-walking-with-cane","drum","ice-cream","heart-circle-bolt","fax","paragraph","vote-yea","star-half","boxes","link","ear-listen","tree-city","play","font","rupiah-sign","search","table-tennis","person-dots-from-line","trash-restore-alt","naira-sign","cart-arrow-down","walkie-talkie","file-pen","receipt","square-pen","suitcase-rolling","person-circle-exclamation","chevron-down","battery","skull-crossbones","code-compare","list-ul","school-lock","tower-cell","long-arrow-alt-down","ranking-star","chess-king","person-harassing","brazilian-real-sign","landmark-dome","arrow-up","tv","shrimp","tasks","jug-detergent","user-circle","user-shield","wind","car-crash","y","snowboarding","fast","fish","user-graduate","circle-half-stroke","clapperboard","radiation-alt","baseball","jet-fighter-up","project-diagram","copy","volume-xmark","hand-sparkles","grip","share-square","child-rifle","gun","square-phone","plus","expand","computer","xmark","arrows","chalkboard-user","peso-sign","building-shield","baby","users-line","quote-left","tractor","trash-restore","arrow-down-up-lock","lines-leaning","ruler-combined","copyright","equals","blender","teeth","sheqel","map","rocket","photo-video","folder-minus","store","arrow-trend-up","plug-circle-minus","sign","bezier-curve","bell-slash","tablet","school-flag","fill","angle-up","drumstick-bite","holly-berry","chevron-left","bacteria","hand-lizard","notdef","disease","briefcase-medical","genderless","chevron-right","retweet","car-rear","pump-soap","video-slash","battery-quarter","radio","carriage-baby","traffic-light","thermometer","vr-cardboard","hand-middle-finger","percentage","truck-moving","glass-water-droplet","display","smile","thumbtack","trophy","pray","hammer","hand-peace","sync-alt","spinner","robot","peace","gears","warehouse","arrow-up-right-dots","splotch","grin-hearts","dice-four","sim-card","transgender","mercury","level-down","falling-burst","award","ticket-simple","building","angles-left","qrcode","history","grin-beam-sweat","file-export","shield","sort-amount-up-alt","house-medical","golf-ball","circle-chevron-left","house-chimney-window","pen-nib","tent-arrow-turn-left","tents","wand-magic","dog","carrot","moon","wine-glass-empty","cheese","yin-yang","music","code-commit","temperature-low","person-biking","broom","shield-heart","gopuram","globe-oceania","xmark-square","hashtag","up-right-and-down-left-from-center","oil-can","t","hippo","chart-column","infinity","vial-circle-check","person-arrow-down-to-line","voicemail","fan","person-walking-luggage","up-down","cloud-moon-rain","calendar","trailer","haykal","sd-card","dragon","shoe-prints","plus-circle","grin-tongue-wink","hand-holding","plug-circle-exclamation","unlink","clone","person-walking-arrow-loop-left","sort-alpha-up-alt","fire-flame-curved","tornado","file-circle-plus","quran","anchor","border-all","face-angry","cookie-bite","arrow-trend-down","rss","draw-polygon","scale-balanced","tachometer","shower","desktop","m","th-list","sms","book","user-plus","check","battery-three-quarters","house-circle-check","angle-left","diagram-successor","truck-arrow-right","arrows-split-up-and-left","hand-fist","cloud-moon","briefcase","falling","portrait","user-tag","rug","globe-europe","luggage-cart","window-close","baht-sign","book-open","journal-whills","handcuffs","warning","database","share","bottle-droplet","face","hill-rockslide","right-left","paper-plane","road-circle-exclamation","dungeon","align-right","money-bill-wave-alt","life-ring","signing","calendar-day","water-ladder","arrows-v","grimace","wheelchair-move","turn-down","person-walking-arrow-right","square-envelope","dice","bowling-ball","brain","bandage","calendar-minus","xmark-circle","gifts","hotel","globe-asia","id-card-clip","search-plus","thumbs-up","user-clock","hand-dots","file-invoice","window-minimize","mug-saucer","brush","mask","search-minus","ruler-vertical","user-large","train-tram","user-nurse","syringe","cloud-sun","stopwatch-20","square-full","magnet","jar","sticky-note","bug-slash","arrow-up-from-water-pump","bone","user-injured","sad-tear","plane","tent-arrows-down","exclamation","arrows-spin","print","turkish-lira","usd","x","search-dollar","users-gear","person-military-pointing","university","umbrella","trowel","d","stapler","theater-masks","kip-sign","hand-point-left","handshake-simple","jet-fighter","square-share-nodes","barcode","plus-minus","video","mortar-board","hand-holding-medical","person-circle-check","turn-up"];function Fe(e){function n(){const a={position:"fixed",color:"white",backgroundColor:e.isError?"#e52207":p.colors.success,width:300,top:10,left:(window.innerWidth-320)/2,padding:15};return t.jsxs("div",{style:a,children:[t.jsx(C,{icon:e.isError?"xmark-circle":"circle-check",style:{marginRight:5}}),e.text]})}return n()}function U(e,n=!1){const a=document.createElement("div");a.classList.add("message"),Y.createRoot(document.body.appendChild(a)).render(t.jsx(Fe,{text:e,isError:n})),setTimeout(function(){a.remove()},3e3)}function he(){document.querySelectorAll(".message").forEach(function(e){e.remove()})}function ae(e){function n(){const a={color:p.colors.info,backgroundColor:p.background.info,padding:20,display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10};return t.jsxs("div",{style:a,children:[t.jsx("div",{children:e.data.text}),e.children&&t.jsx("div",{children:e.children})]})}return n()}function We(e){const n=e.data;n.store&&Ce(n.store),n.redirect&&n.redirect.length>2?(n.message&&localStorage.setItem("message",n.message),document.location.href=X(n.redirect)):n.message&&U(n.message)}function Ce(e){Object.keys(e).map(function(n){e[n]?(localStorage.setItem(n,e[n]),n=="token"&&(document.cookie="token="+e[n]+";path=/")):(localStorage.removeItem(n,e[n]),n=="token"&&(document.cookie="token=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"))})}function z(e){return e.replace("/app/","/api/")}function X(e){return e.replaceAll("/api/","/app/")}function R(e,n,a,r){const i=localStorage.getItem("token");var o={Accept:"application/json",TZ:Intl.DateTimeFormat().resolvedOptions().timeZone};i&&(o.Authorization="Token "+i);const s=z(n);var d={method:e,headers:new Headers(o),ajax:1};r&&(d.body=r);var c=null,u=null;fetch(s,d).then(function(l){if(c=l,u=c.headers.get("Content-Type"),u=="application/json")return l.text();if(u.indexOf("text")<0||u.indexOf("csv")>=0||u.indexOf("pdf")>=0)return l.arrayBuffer();l.text()}).then(l=>{if(u=="application/json"){var h=JSON.parse(l||"{}");typeof h=="object"&&h.type=="redirect"&&!h.autosubmit?document.location.href=X(h.url):a&&a(h,c)}else if(u.indexOf("text")<0||u.indexOf("csv")>=0||u.indexOf("pdf")>=0){var m=window.URL.createObjectURL(new Blob([new Uint8Array(l)],{type:u})),w=document.createElement("a");w.href=m,u.indexOf("excel")>=0?w.download="Download.xls":u.indexOf("pdf")>=0?w.download="Download.pdf":u.indexOf("zip")>=0?w.download="Download.zip":u.indexOf("json")>=0?w.download="Download.json":u.indexOf("csv")>=0?w.download="Download.csv":u.indexOf("png")>=0&&(w.download="Download.png"),document.body.appendChild(w),w.click()}else a&&a(l,c)})}function G(e){if(e===null||e==="")return"-";if(e===!0)return"Sim";if(e===!1)return"Não";if(typeof e=="number"){var n=e.toString().split(".");return n.length==1?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."):(n[0]=n[0].toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),n[1]=n[1].substring(0,2),n[1].length==1&&(n[1]=n[1]+"0"),n[0]+","+n[1])}if(typeof e=="string"){if(e.length==7&&e[0]=="#")return t.jsx(x,{data:{type:"color",value:e}});if(e.length==19&&e[13]==":"&&e[16]==":"){var n=e.split(" "),a=n[0],r=n[1];return r=="00:00:00"?a:a+" "+r}else if(e.indexOf(`
|
|
1
|
+
import{j as t,c as Y,r as I,R as Ae}from"./react.min.js";const p={colors:{primary:"var(--primary-color)",success:"var(--success-color)",warning:"var(--warning-color)",info:"var(--info-color)",danger:"var(--danger-color)",highlight:"var(--highlight-color)",seconday:"var(--seconday-color)",auxiliary:"var(--auxiliary-color)"},border:{radius:"var(--border-radius)"},background:{info:"var(--info-background)"}};function Be(e){function n(){const a={width:30,height:30,borderRadius:"50%",backgroundColor:e.data.value};return t.jsx("div",{style:a})}return n()}function Oe(e){function n(r){navigator.clipboard.writeText(r),U('Icon "'+r+'" copied to clipboard!')}const a={display:"inline-block",width:150,textAlign:"center",cursor:"pointer"};return t.jsx("div",{style:{marginTop:30},children:_e.map(r=>t.jsxs("div",{className:"icon-box",onClick:()=>n(r),style:a,children:[t.jsx("i",{className:"fa-solid fa-fw fa-"+r}),t.jsx("div",{className:"icon-text",children:r})]},Math.random()))})}function Re(e){function n(){return t.jsx("i",{style:e.style,className:"fa-solid fa-circle-notch fa-spin fa-1x spin"})}return n()}function C(e){var n="fa-solid fa-"+e.icon;return e.className&&(n+=" "+e.className),(e.onClick||e.clickable)&&(n+=" clickable"),t.jsx("i",{style:e.style,className:n,onClick:e.onClick})}function be(e){function n(){const a={padding:12,textDecoration:"none",whiteSpace:"nowrap",borderRadius:5,margin:5,cursor:"pointer",display:e.display||"block"};return e.primary&&(a.backgroundColor=p.colors.primary,a.color="white"),e.default&&(a.color=p.colors.primary,a.border="solid 1px "+p.colors.primary),t.jsx("a",{id:e.id,style:a,onClick:r=>{r.preventDefault(),e.onClick()},children:t.jsx(C,{icon:e.icon})})}return n()}const _e=["1","2","3","4","5","6","7","8","9","fill-drip","arrows-to-circle","circle-chevron-right","at","trash-can","text-height","user-xmark","stethoscope","message","info","down-left-and-up-right-to-center","explosion","file-text","wave-square","ring","building-un","dice-three","calendar-days","anchor-circle-check","building-circle-arrow-right","volleyball","arrows-up-to-line","sort-down","minus-circle","door-open","sign-out-alt","atom","soap","icons","microphone-lines-slash","bridge-circle-check","pump-medical","fingerprint","hand-point-right","search-location","step-forward","smile-beam","flag-checkered","football","school-circle-exclamation","crop","angles-down","users-rectangle","people-roof","people-line","beer","diagram-predecessor","long-arrow-up","fire-flame-simple","person","laptop","file-csv","menorah","truck-plane","record-vinyl","grin-stars","bong","spaghetti-monster-flying","arrow-down-up-across-line","utensil-spoon","jar-wheat","mail-bulk","file-circle-exclamation","hospital-symbol","pager","contact-book","strikethrough","k","landmark-flag","pencil","backward","caret-right","comments","paste","code-pull-request","clipboard-list","truck-ramp-box","user-check","vial-virus","sheet-plastic","blog","user-ninja","person-arrow-up-from-line","torah","quidditch","toggle-off","box-archive","person-drowning","sort-numeric-down-alt","grin-tongue-squint","spray-can","truck-monster","w","globe-africa","rainbow","circle-notch","tablet-screen-button","paw","cloud","trowel-bricks","flushed","hospital-user","tent-arrow-left-right","legal","binoculars","microphone-slash","box-tissue","motorcycle","concierge-bell","pencil-ruler","people-arrows","mars-and-venus-burst","square-caret-right","scissors","sun-plant-wilt","toilets-portable","hockey-puck","table","magnifying-glass-arrow-right","tachograph-digital","users-slash","clover","reply","star-and-crescent","house-fire","square-minus","helicopter","compass","square-caret-down","file-circle-question","laptop-code","swatchbook","prescription-bottle","navicon","people-group","hourglass-end","heart-crack","square-up-right","kiss-beam","film","ruler-horizontal","people-robbery","lightbulb","caret-left","exclamation-circle","school-circle-xmark","sign-out","circle-chevron-down","unlock-keyhole","cloud-showers-heavy","headphones-simple","sitemap","donate","memory","road-spikes","fire-burner","flag","hanukiah","feather","volume-low","comment-slash","cloud-sun-rain","compress","wheat-awn","ankh","hands-holding-child","asterisk","square-check","peseta-sign","heading","ghost","list","square-phone-flip","cart-plus","gamepad","dot-circle","face-dizzy","egg","house-medical-circle-xmark","campground","folder-plus","soccer-ball","paintbrush","lock","gas-pump","hot-tub","map-marked","house-flood-water","tree","bridge-lock","sack-dollar","pen-to-square","car-side","share-nodes","heart-circle-minus","hourglass-half","microscope","sink","shopping-bag","sort-alpha-down-alt","mitten","person-rays","users","eye-slash","flask-vial","hand","om","worm","house-circle-xmark","plug","chevron-up","hand-spock","stopwatch","kiss","bridge-circle-xmark","grin-tongue","chess-bishop","grin-wink","hard-of-hearing","road-circle-check","dice-five","square-rss","land-mine-on","i-cursor","stamp","stairs","i","hryvnia","pills","grin-alt","tooth","v","bangladeshi-taka-sign","bicycle","staff-snake","head-side-cough-slash","truck-medical","wheat-awn-circle-exclamation","snowman","mortar-pestle","road-barrier","school","igloo","joint","angle-right","horse","q","g","notes-medical","thermometer-half","dong-sign","capsules","poo-storm","frown-open","hand-point-up","money-bill","bookmark","align-justify","umbrella-beach","helmet-un","bullseye","bacon","hand-point-down","arrow-up-from-bracket","folder","file-waveform","radiation","chart-simple","mars-stroke","vial","tachometer-alt-average","wand-magic-sparkles","e","pen-clip","bridge-circle-exclamation","user","school-circle-check","dumpster","van-shuttle","building-user","square-caret-left","highlighter","key","bullhorn","globe","synagogue","person-half-dress","road-bridge","location-arrow","c","tablet-button","building-lock","pizza-slice","money-bill-wave","chart-area","house-flag","person-circle-minus","cancel","camera-rotate","spray-can-sparkles","star","repeat","cross","box","venus-mars","mouse-pointer","maximize","charging-station","triangle-circle-square","shuffle","running","mobile-retro","grip-lines-vertical","spider","hands-bound","file-invoice-dollar","plane-circle-exclamation","x-ray","spell-check","slash","mouse","sign-in","store-alt-slash","server","virus-covid-slash","shop-lock","hourglass-start","blender-phone","building-wheat","person-breastfeeding","sign-in-alt","venus","passport","heartbeat","people-carry","temperature-high","microchip","crown","weight-hanging","xmarks-lines","file-prescription","weight","user-group","sort-alpha-up","chess-knight","laugh-squint","wheelchair","circle-arrow-up","toggle-on","walking","l","fire","procedures","space-shuttle","laugh","folder-open","heart-circle-plus","code-fork","city","microphone-lines","pepper-hot","unlock","colon-sign","headset","store-slash","road-circle-xmark","user-minus","mars-stroke-v","glass-cheers","clipboard","house-circle-exclamation","file-upload","wifi","bathtub","underline","user-pen","signature","stroopwafel","bold","anchor-lock","building-ngo","manat-sign","not-equal","border-top-left","map-marked-alt","jedi","square-poll-vertical","mug-hot","car-battery","gift","dice-two","chess-queen","glasses","chess-board","building-circle-check","person-chalkboard","mars-stroke-right","hand-rock","square-caret-up","cloud-showers-water","chart-bar","hands-wash","less-than-equal","train","low-vision","crow","sailboat","window-restore","square-plus","torii-gate","frog","bucket","image","microphone","cow","caret-up","screwdriver","folder-closed","house-tsunami","square-nfi","arrow-up-from-ground-water","martini-glass","undo-alt","table-columns","lemon","head-side-mask","handshake","gem","dolly","smoking","minimize","monument","snowplow","angles-right","cannabis","play-circle","tablets","ethernet","euro","chair","circle-check","stop-circle","drafting-compass","plate-wheat","icicles","person-shelter","neuter","id-badge","marker","laugh-beam","helicopter-symbol","universal-access","circle-chevron-up","lari-sign","volcano","person-walking-dashed-line-arrow-right","sterling-sign","viruses","square-person-confined","user-tie","long-arrow-down","tent-arrow-down-to-line","certificate","reply-all","suitcase","skating","funnel-dollar","camera-retro","circle-arrow-down","file-import","square-arrow-up-right","box-open","scroll","spa","location-pin-lock","pause","hill-avalanche","thermometer-empty","bomb","registered","vcard","scale-unbalanced-flip","subscript","directions","burst","laptop-house","tired","money-bills","smog","crutch","cloud-upload","palette","arrows-turn-right","vest","ferry","arrows-down-to-people","sprout","left-right","boxes-packing","circle-arrow-left","group-arrows-rotate","bowl-food","candy-cane","sort-amount-down","thunderstorm","text-slash","smile-wink","file-word","file-powerpoint","arrows-left-right","house-lock","cloud-download","children","chalkboard","user-large-slash","envelope-open","handshake-simple-slash","mattress-pillow","guarani-sign","sync","fire-extinguisher","cruzeiro-sign","greater-than-equal","shield-halved","book-atlas","virus","envelope-circle-check","layer-group","arrows-to-dot","archway","heart-circle-check","house-damage","file-zipper","square","martini-glass-empty","couch","cedi-sign","italic","church","comments-dollar","democrat","z","skiing","road-lock","a","temperature-down","feather-pointed","p","snowflake","newspaper","rectangle-ad","circle-arrow-right","filter-circle-xmark","locust","unsorted","list-ol","person-dress-burst","money-check-dollar","vector-square","bread-slice","language","kiss-wink-heart","filter","question","file-signature","up-down-left-right","house-chimney-user","hand-holding-heart","puzzle-piece","money-check","star-half-stroke","code","whiskey-glass","building-circle-exclamation","magnifying-glass-chart","external-link","cubes-stacked","won","virus-covid","austral-sign","f","leaf","road","taxi","person-circle-plus","pie-chart","bolt-lightning","sack-xmark","file-excel","file-contract","fish-fins","building-flag","grin-beam","object-ungroup","poop","map-marker","kaaba","toilet-paper","helmet-safety","eject","circle-right","plane-circle-check","meh-rolling-eyes","object-group","line-chart","mask-ventilator","arrow-right","signs-post","cash-register","person-circle-question","h","tarp","tools","arrows-to-eye","plug-circle-bolt","heart","mars-and-venus","house-user","dumpster-fire","house-crack","martini-glass-citrus","surprise","bottle-water","pause-circle","toilet-paper-slash","apple-whole","kitchen-set","r","thermometer-quarter","cube","bitcoin-sign","shield-dog","solar-panel","lock-open","elevator","money-bill-transfer","money-bill-trend-up","house-flood-water-circle-arrow-right","square-poll-horizontal","circle","fast-backward","recycle","user-astronaut","plane-slash","trademark","basketball","satellite-dish","circle-up","mobile-screen-button","volume-up","users-rays","wallet","clipboard-check","file-audio","hamburger","wrench","bugs","rupee","file-image","question-circle","plane-departure","handshake-slash","book-bookmark","code-branch","hat-cowboy","bridge","phone-flip","truck-front","cat","anchor-circle-exclamation","truck-field","route","clipboard-question","panorama","comment-medical","teeth-open","file-circle-minus","tags","wine-glass","fast","meh-blank","square-parking","house-signal","tasks-alt","faucet-drip","dolly-flatbed","smoking-ban","terminal","mobile-button","house-medical-flag","shopping-basket","tape","bus-simple","eye","sad-cry","audio-description","person-military-to-person","file-shield","user-slash","pen","tower-observation","file-code","signal","bus","heart-circle-xmark","house-chimney","window-maximize","frown","prescription","store-alt","save","vihara","scale-unbalanced","sort-up","commenting","plant-wilt","diamond","grin-squint","hand-holding-usd","bacterium","hand-pointer","drum-steelpan","hand-scissors","praying-hands","redo","biohazard","location","mars-double","child-dress","users-between-lines","lungs-virus","grin-tears","phone","calendar-xmark","child-reaching","head-side-virus","user-gear","sort-numeric-up","door-closed","shield-virus","dice-six","mosquito-net","bridge-water","person-booth","text-width","hat-wizard","fancy","person-digging","trash","tachometer-average","book-medical","poo","quote-right","tshirt","cubes","divide","tenge","headphones","hands-holding","hands-clapping","republican","arrow-left","person-circle-xmark","ruler","align-left","dice-d6","restroom","j","users-viewfinder","file-video","up-right-from-square","th","file-pdf","book-bible","o","suitcase-medical","user-secret","otter","person-dress","comment-dollar","business-time","th-large","tanakh","volume-control-phone","hat-cowboy-side","clipboard-user","child","lira-sign","satellite","plane-lock","tag","comment","cake","envelope","angles-up","paperclip","arrow-right-to-city","ribbon","lungs","sort-numeric-up-alt","litecoin-sign","border-none","circle-nodes","parachute-box","indent","truck-field-un","hourglass","mountain","user-md","info-circle","cloud-meatball","camera","square-virus","meteor","car-on","sleigh","sort-numeric-down","hand-holding-water","water","calendar-check","braille","prescription-bottle-medical","landmark","truck","crosshairs","person-cane","tent","vest-patches","check-double","sort-alpha-down","money-bill-wheat","cookie","undo","hdd","grin-squint-tears","dumbbell","rectangle-list","tarp-droplet","house-medical-circle-check","skiing-nordic","calendar-plus","plane-arrival","circle-left","train-subway","chart-gantt","inr","crop-simple","money-bill-alt","long-arrow-alt-left","dna","virus-slash","subtract","chess","long-arrow-left","plug-circle-check","street-view","franc-sign","volume-off","hands-asl-interpreting","gear","tint-slash","mosque","mosquito","star-of-david","person-military-rifle","shopping-cart","vials","plug-circle-plus","place-of-worship","grip-vertical","level-up","u","square-root-variable","clock","step-backward","pallet","faucet","baseball-bat-ball","s","timeline","keyboard","caret-down","house-chimney-medical","thermometer-three-quarters","mobile-screen","plane-up","piggy-bank","battery-half","mountain-city","coins","khanda","sliders","folder-tree","network-wired","map-pin","hamsa","cent-sign","flask","person-pregnant","wand-sparkles","ellipsis-vertical","ticket","power-off","right-long","flag-usa","laptop-file","tty","diagram-next","person-rifle","house-medical-circle-exclamation","closed-captioning","person-hiking","venus-double","images","calculator","people-pulling","n","tram","cloud-rain","building-circle-xmark","ship","arrows-down-to-line","download","grin","delete-left","eyedropper","file-circle-check","forward","mobile","meh","align-center","book-skull","id-card","outdent","heart-circle-exclamation","house","calendar-week","laptop-medical","b","file-medical","dice-one","kiwi-bird","exchange","rotate-right","utensils","sort-amount-up","mill-sign","bowl-rice","skull","tower-broadcast","truck-pickup","up-long","stop","code-merge","upload","hurricane","mound","toilet-portable","compact-disc","file-download","caravan","shield-cat","zap","glass-water","oil-well","vault","mars","toilet","plane-circle-xmark","yen","ruble","sun","guitar","laugh-wink","horse-head","bore-hole","industry","circle-down","arrows-turn-to-dots","florin-sign","sort-amount-down-alt","less-than","angle-down","car-tunnel","head-side-cough","grip-lines","thumbs-down","user-lock","long-arrow-right","anchor-circle-xmark","ellipsis","chess-pawn","kit-medical","person-through-window","toolbox","hands-holding-circle","bug","credit-card","car","hand-holding-hand","book-reader","mountain-sun","arrows-left-right-to-line","dice-d20","truck-droplet","file-circle-xmark","temperature-up","medal","bed","square-h","podcast","thermometer-full","bell","superscript","plug-circle-xmark","star-of-life","phone-slash","paint-roller","handshake-angle","map-marker-alt","file","greater-than","swimmer","arrow-down","tint","eraser","globe-americas","person-burst","dove","battery-empty","socks","inbox","section","tachometer-alt","envelope-open-text","hospital","wine-bottle","chess-rook","stream","dharmachakra","hotdog","person-walking-with-cane","drum","ice-cream","heart-circle-bolt","fax","paragraph","vote-yea","star-half","boxes","link","ear-listen","tree-city","play","font","rupiah-sign","search","table-tennis","person-dots-from-line","trash-restore-alt","naira-sign","cart-arrow-down","walkie-talkie","file-pen","receipt","square-pen","suitcase-rolling","person-circle-exclamation","chevron-down","battery","skull-crossbones","code-compare","list-ul","school-lock","tower-cell","long-arrow-alt-down","ranking-star","chess-king","person-harassing","brazilian-real-sign","landmark-dome","arrow-up","tv","shrimp","tasks","jug-detergent","user-circle","user-shield","wind","car-crash","y","snowboarding","fast","fish","user-graduate","circle-half-stroke","clapperboard","radiation-alt","baseball","jet-fighter-up","project-diagram","copy","volume-xmark","hand-sparkles","grip","share-square","child-rifle","gun","square-phone","plus","expand","computer","xmark","arrows","chalkboard-user","peso-sign","building-shield","baby","users-line","quote-left","tractor","trash-restore","arrow-down-up-lock","lines-leaning","ruler-combined","copyright","equals","blender","teeth","sheqel","map","rocket","photo-video","folder-minus","store","arrow-trend-up","plug-circle-minus","sign","bezier-curve","bell-slash","tablet","school-flag","fill","angle-up","drumstick-bite","holly-berry","chevron-left","bacteria","hand-lizard","notdef","disease","briefcase-medical","genderless","chevron-right","retweet","car-rear","pump-soap","video-slash","battery-quarter","radio","carriage-baby","traffic-light","thermometer","vr-cardboard","hand-middle-finger","percentage","truck-moving","glass-water-droplet","display","smile","thumbtack","trophy","pray","hammer","hand-peace","sync-alt","spinner","robot","peace","gears","warehouse","arrow-up-right-dots","splotch","grin-hearts","dice-four","sim-card","transgender","mercury","level-down","falling-burst","award","ticket-simple","building","angles-left","qrcode","history","grin-beam-sweat","file-export","shield","sort-amount-up-alt","house-medical","golf-ball","circle-chevron-left","house-chimney-window","pen-nib","tent-arrow-turn-left","tents","wand-magic","dog","carrot","moon","wine-glass-empty","cheese","yin-yang","music","code-commit","temperature-low","person-biking","broom","shield-heart","gopuram","globe-oceania","xmark-square","hashtag","up-right-and-down-left-from-center","oil-can","t","hippo","chart-column","infinity","vial-circle-check","person-arrow-down-to-line","voicemail","fan","person-walking-luggage","up-down","cloud-moon-rain","calendar","trailer","haykal","sd-card","dragon","shoe-prints","plus-circle","grin-tongue-wink","hand-holding","plug-circle-exclamation","unlink","clone","person-walking-arrow-loop-left","sort-alpha-up-alt","fire-flame-curved","tornado","file-circle-plus","quran","anchor","border-all","face-angry","cookie-bite","arrow-trend-down","rss","draw-polygon","scale-balanced","tachometer","shower","desktop","m","th-list","sms","book","user-plus","check","battery-three-quarters","house-circle-check","angle-left","diagram-successor","truck-arrow-right","arrows-split-up-and-left","hand-fist","cloud-moon","briefcase","falling","portrait","user-tag","rug","globe-europe","luggage-cart","window-close","baht-sign","book-open","journal-whills","handcuffs","warning","database","share","bottle-droplet","face","hill-rockslide","right-left","paper-plane","road-circle-exclamation","dungeon","align-right","money-bill-wave-alt","life-ring","signing","calendar-day","water-ladder","arrows-v","grimace","wheelchair-move","turn-down","person-walking-arrow-right","square-envelope","dice","bowling-ball","brain","bandage","calendar-minus","xmark-circle","gifts","hotel","globe-asia","id-card-clip","search-plus","thumbs-up","user-clock","hand-dots","file-invoice","window-minimize","mug-saucer","brush","mask","search-minus","ruler-vertical","user-large","train-tram","user-nurse","syringe","cloud-sun","stopwatch-20","square-full","magnet","jar","sticky-note","bug-slash","arrow-up-from-water-pump","bone","user-injured","sad-tear","plane","tent-arrows-down","exclamation","arrows-spin","print","turkish-lira","usd","x","search-dollar","users-gear","person-military-pointing","university","umbrella","trowel","d","stapler","theater-masks","kip-sign","hand-point-left","handshake-simple","jet-fighter","square-share-nodes","barcode","plus-minus","video","mortar-board","hand-holding-medical","person-circle-check","turn-up"];function Fe(e){function n(){const a={position:"fixed",color:"white",backgroundColor:e.isError?"#e52207":p.colors.success,width:300,top:10,left:(window.innerWidth-320)/2,padding:15};return t.jsxs("div",{style:a,children:[t.jsx(C,{icon:e.isError?"xmark-circle":"circle-check",style:{marginRight:5}}),e.text]})}return n()}function U(e,n=!1){const a=document.createElement("div");a.classList.add("message"),Y.createRoot(document.body.appendChild(a)).render(t.jsx(Fe,{text:e,isError:n})),setTimeout(function(){a.remove()},3e3)}function he(){document.querySelectorAll(".message").forEach(function(e){e.remove()})}function ae(e){function n(){const a={color:p.colors.info,backgroundColor:p.background.info,padding:20,display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10};return t.jsxs("div",{style:a,children:[t.jsx("div",{children:e.data.text}),e.children&&t.jsx("div",{children:e.children})]})}return n()}function We(e){const n=e.data;n.store&&Ce(n.store),n.redirect&&n.redirect.length>2?(n.message&&localStorage.setItem("message",n.message),document.location.href=X(n.redirect)):n.message&&U(n.message)}function Ce(e){Object.keys(e).map(function(n){e[n]?(localStorage.setItem(n,e[n]),n=="token"&&(document.cookie="token="+e[n]+";path=/")):(localStorage.removeItem(n,e[n]),n=="token"&&(document.cookie="token=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"))})}function z(e){return e.replace("/app/","/api/")}function X(e){return e.replaceAll("/api/","/app/")}function R(e,n,a,r){const i=localStorage.getItem("token");var o={Accept:"application/json",TZ:Intl.DateTimeFormat().resolvedOptions().timeZone};i&&(o.Authorization="Token "+i);const s=z(n);var d={method:e,headers:new Headers(o),ajax:1};r&&(d.body=r);var c=null,u=null;fetch(s,d).then(function(l){if(c=l,u=c.headers.get("Content-Type"),u=="application/json")return l.text();if(u.indexOf("text")<0||u.indexOf("csv")>=0||u.indexOf("pdf")>=0)return l.arrayBuffer();l.text()}).then(l=>{if(u=="application/json"){var h=JSON.parse(l||"{}");typeof h=="object"&&h.type=="redirect"&&!h.autosubmit?document.location.href=X(h.url):a&&a(h,c)}else if(u.indexOf("text")<0||u.indexOf("csv")>=0||u.indexOf("pdf")>=0){var m=window.URL.createObjectURL(new Blob([new Uint8Array(l)],{type:u})),w=document.createElement("a");w.href=m,u.indexOf("excel")>=0?w.download="Download.xls":u.indexOf("pdf")>=0?w.download="Download.pdf":u.indexOf("zip")>=0?w.download="Download.zip":u.indexOf("json")>=0?w.download="Download.json":u.indexOf("csv")>=0?w.download="Download.csv":u.indexOf("png")>=0&&(w.download="Download.png"),document.body.appendChild(w),w.click()}else a&&a(l,c)})}function G(e){if(e===null||e==="")return"-";if(e===!0)return"Sim";if(e===!1)return"Não";if(typeof e=="number"){var n=e.toString().split(".");return n.length==1?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."):(n[0]=n[0].toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),n[1]=n[1].substring(0,2),n[1].length==1&&(n[1]=n[1]+"0"),n[0]+","+n[1])}if(typeof e=="string"){if(e.length==7&&e[0]=="#")return t.jsx(x,{data:{type:"color",value:e}});if(e.length==19&&e[13]==":"&&e[16]==":"){var n=e.split(" "),a=n[0],r=n[1];return r=="00:00:00"?a:a+" "+r}else if(e.indexOf(`
|
|
2
2
|
`)>=0)return e.split(`
|
|
3
|
-
`).map(function(i,o){return t.jsx("div",{children:i},Math.random())});return e}return typeof e=="object"&&e.type?t.jsx(x,{data:e}):typeof e=="object"&&Array.isArray(e)?e.length==0?"-":typeof e[0]=="object"&&e[0].type!=null?t.jsx(t.Fragment,{children:e.map(function(i){return t.jsx(x,{data:i},Math.random())})}):t.jsx("ul",{style:{padding:0,marginLeft:17},children:e.map(function(i){return t.jsx("li",{children:i},Math.random())})}):typeof e=="object"&&JSON.stringify(Object.keys(e))==JSON.stringify(["id","text"])?e.text:JSON.stringify(e)}function me(){document.querySelector(".layer")==null&&Y.createRoot(document.body.appendChild(document.createElement("div"))).render(t.jsx(Pe,{}))}function
|
|
3
|
+
`).map(function(i,o){return t.jsx("div",{children:i},Math.random())});return e}return typeof e=="object"&&e.type?t.jsx(x,{data:e}):typeof e=="object"&&Array.isArray(e)?e.length==0?"-":typeof e[0]=="object"&&e[0].type!=null?t.jsx(t.Fragment,{children:e.map(function(i){return t.jsx(x,{data:i},Math.random())})}):t.jsx("ul",{style:{padding:0,marginLeft:17},children:e.map(function(i){return t.jsx("li",{children:i},Math.random())})}):typeof e=="object"&&JSON.stringify(Object.keys(e))==JSON.stringify(["id","text"])?e.text:JSON.stringify(e)}function me(){document.querySelector(".layer")==null&&Y.createRoot(document.body.appendChild(document.createElement("div"))).render(t.jsx(Pe,{}))}function Ee(e,n){he(),me(),window.reloader=n;for(var a=document.getElementsByTagName("dialog"),r=0;r<a.length;r++)a[r].style.display="none";Y.createRoot(document.body.appendChild(document.createElement("div"))).render(t.jsx(Ue,{url:z(e)}))}function ze(e){he(),me(),Y.createRoot(document.body.appendChild(document.createElement("div"))).render(t.jsx(Ge,{url:z(e)}))}function K(e){e!=null&&showMessage(e);for(var n=document.getElementsByTagName("dialog"),a=0;a<n.length;a++)if(a==n.length-1){var r=n[a];r.close(),r.classList.remove("opened"),r.remove(),a==0?(document.querySelector(".layer").style.display="none",window.reloader&&window.reloader()):n[a-1].style.display="block"}}function He(e){he(),me(),Y.createRoot(document.body.appendChild(document.createElement("div"))).render(t.jsx(Ye,{actions:e}))}function Pe(e){const n={backgroundColor:"black",bottom:0,left:0,position:"fixed",right:0,top:0,opacity:.7,display:"none"};return t.jsx("div",{className:"layer",onClick:function(){K()},style:n})}function Ue(e){const[n,a]=I.useState(null),[r,i]=I.useState(0);I.useEffect(()=>{o(z(e.url)),document.querySelector(".layer").style.display="block"},[]);function o(c){R("GET",z(c),function(u){a(u),i(r+1)})}function s(){const c={maxWidth:800},u={textAlign:"right",cursor:"pointer",marginTop:-15};if(n)return t.jsxs("div",{style:c,children:[t.jsx("div",{style:u,children:t.jsx(C,{icon:"x",onClick:()=>K()})}),t.jsx(x,{data:n})]})}const d={minWidth:window.innerWidth<800?"calc(100% - 60px)":800,display:n?"block":"none",maxWidth:800,top:window.scrollY+40,border:0};return t.jsx("dialog",{style:d,children:s()},r)}function Ge(e){var n=Math.random();I.useEffect(()=>{document.querySelector(".layer").style.display="block";var r=document.getElementById(n);r.style.top=document.documentElement.scrollTop+100},[]);function a(){const r={minWidth:window.innerWidth<800?"calc(100% - 60px)":800,display:"block",maxWidth:800,top:window.scrollY+40,border:0},i={float:"right",cursor:"pointer",marginTop:-20};return t.jsxs("dialog",{style:r,id:n,children:[t.jsx("div",{style:i,children:t.jsx(C,{icon:"x",onClick:()=>K()})}),t.jsx("iframe",{src:z(e.url),width:"100%",height:500,style:{border:0}})]})}return a()}function Ye(e){const n=Math.random();I.useEffect(()=>{document.querySelector(".layer").style.display="block"},[]);function a(){const o={width:"100%",borderBottom:"solid 1px #DDDD",padding:20};return t.jsx("div",{align:"center",style:{},children:e.actions.map(function(s){return t.jsx("div",{style:o,onClick:r,children:t.jsx(H,{data:s,strech:!0})},Math.random())})})}function r(){const o=document.getElementById(n);o.close(),o.classList.remove("opened"),o.remove(),document.querySelector(".layer").style.display="none"}const i={width:"auto",display:"block",position:"fixed",bottom:0,border:0,padding:0};return t.jsx("dialog",{id:n,style:i,children:a()})}function T(e){return e!=null&&(e=e.toString().replace("-","").normalize("NFD").replace("_","").toLowerCase()),e}const we={};function F(e){let n="",a=window.document.styleSheets[0];e.split("}").forEach(r=>{let i=(r+"}").replace(/\r?\n|\r/g,"");n=n===""?i:n+i,n.split("{").length===n.split("}").length&&we[n]==null&&(a.insertRule(n,a.cssRules.length),n="",we[n]=!0)})}function H(e){const n=e.id||Math.random(),[a,r]=I.useState(e.data.name);function i(d){d.preventDefault();var c=e.data.url;e.data.urlfunc&&(c=e.data.urlfunc()),e.onClick?(a&&r("Aguarde...."),e.onClick(d)):e.data.modal==!1?window.load(X(c)):Ee(c)}function o(){return e.strech?e.data.name:e.data.icon?e.compact||!e.data.name||window.innerWidth<800?t.jsx(C,{icon:e.data.icon}):t.jsxs(t.Fragment,{children:[t.jsx(C,{icon:e.data.icon,style:{paddingRight:10}}),e.data.name||""]}):e.data.name}function s(){F(`
|
|
4
4
|
.action{
|
|
5
5
|
padding: 12px;
|
|
6
6
|
text-decoration: none;
|
|
@@ -27,7 +27,7 @@ import{j as t,c as Y,r as I,R as Be}from"./react.min.js";const p={colors:{primar
|
|
|
27
27
|
list-style-type: none;
|
|
28
28
|
padding: 10px;
|
|
29
29
|
}
|
|
30
|
-
`),t.jsxs("div",{className:"dropdown",children:[t.jsx("div",{onClick:a,"data-label":T(e.dataLabel),children:e.children}),e.actions&&e.actions.length>0&&t.jsx("ul",{onMouseLeave:r,children:e.actions.map(o=>t.jsx("li",{children:t.jsx(H,{data:o,style:{padding:0,whiteSpace:"normal"}})},Math.random()))})]})}return i()}function P({id:e,href:n,modal:a,imodal:r,children:i,onClick:o,dataLabel:s,style:d}){const c=n&&n.indexOf("/media/")<0?X(n):n;function u(h){c.indexOf("http")==0?document.location.href=c:(h.preventDefault(),a?
|
|
30
|
+
`),t.jsxs("div",{className:"dropdown",children:[t.jsx("div",{onClick:a,"data-label":T(e.dataLabel),children:e.children}),e.actions&&e.actions.length>0&&t.jsx("ul",{onMouseLeave:r,children:e.actions.map(o=>t.jsx("li",{children:t.jsx(H,{data:o,style:{padding:0,whiteSpace:"normal"}})},Math.random()))})]})}return i()}function P({id:e,href:n,modal:a,imodal:r,children:i,onClick:o,dataLabel:s,style:d}){const c=n&&n.indexOf("/media/")<0?X(n):n;function u(h){c.indexOf("http")==0?document.location.href=c:(h.preventDefault(),a?Ee(c):r?ze(c):window.load(c))}function l(){return t.jsx("a",{id:e,onClick:o||u,href:c||"#","data-label":T(s),style:d,children:i})}return l()}function V(e){function n(){const r={display:"grid",gridGap:0,gridTemplateColumns:"repeat(auto-fit, minmax("+(e.width||200)+"px, 1fr))",alignItems:e.alignItems||"end"};return t.jsx("div",{style:r,children:e.children},Math.random())}return n()}function ee(e){function n(){return e.data.url?t.jsx(Ve,{data:e.data}):t.jsx(Me,{data:e.data})}return n()}function Me(e){function n(){if(e.data.label)return t.jsxs(t.Fragment,{children:[t.jsx("strong",{children:e.data.label}),":",t.jsx("br",{})]})}function a(){return e.data.url&&e.data.url.indexOf("only=")<0?t.jsx(P,{href:e.data.url,children:t.jsxs(t.Fragment,{children:[G(e.data.value),t.jsx(C,{icon:"external-link",style:{marginLeft:10}})]})}):G(e.data.value)}function r(){const i={minWidth:e.width+"%",marginTop:5,marginBottom:5};return t.jsxs("div",{style:i,children:[n(),a()]})}return r()}function Ve(e){const n=Math.random(),[a,r]=I.useState(e.data);function i(s){R("GET",s,function(d){r(d)})}function o(){return window[n]=()=>i(e.data.url),t.jsx("div",{className:e.data.url&&"reloadable",id:n,children:t.jsx(Me,{data:a,width:100})})}return o()}function le(e){function n(){return t.jsx("div",{style:{verticalAlign:"center",textAlign:"right",lineHeight:"3rem"},children:e.data.map(function(a){return t.jsx(H,{data:a,default:!0,compact:!(window.innerWidth>800)},Math.random())})})}return n()}function fe(e){function n(){return e.data.map(function(a){if(Array.isArray(a))return t.jsx(V,{width:300,alignItems:"start",children:a.map(r=>t.jsx(ee,{data:r,width:100/a.length},Math.random()))},Math.random());if(a.label!="ID"&&(e.exclude==null||a.label!=e.exclude))return t.jsx("div",{children:t.jsx(ee,{data:a,width:100})},Math.random())})}return n()}function Xe(e){function n(){const o={marginTop:5,marginBottom:5};return t.jsx("h3",{style:o,children:e.data.title})}function a(){return t.jsx(fe,{data:e.data.data})}function r(){return t.jsx(le,{data:e.data.actions})}function i(){const o={border:"solid 1px #DDD",padding:10,borderStyle:"dashed"};return t.jsxs("div",{style:o,children:[n(),a(),r()]})}return i()}function $e(e){F(`
|
|
31
31
|
.cards{
|
|
32
32
|
padding: 10px;
|
|
33
33
|
box-shadow: 0 1px 6px rgba( 0, 0, 0 , 0.16 );
|
|
@@ -104,7 +104,7 @@ import{j as t,c as Y,r as I,R as Be}from"./react.min.js";const p={colors:{primar
|
|
|
104
104
|
.scheduler .hidden{
|
|
105
105
|
display: none;
|
|
106
106
|
}
|
|
107
|
-
`);function y(g){const N=document.getElementsByName(e.data.input_name)[0].closest("form");var O=N?Q(e.data.url,N,e.data.input_name):e.data.url,L=O.indexOf("?")>0?"&":"?";O=O+L+"week="+(g||m),R("GET",O,function(Z){console.log(Z),h(Z)})}function j(){m>1&&(y(m-1),w(m-1))}function q(){y(m+1),w(m+1)}I.useEffect(()=>{document.getElementById(n).querySelector(".input-periodo-2").checked=!0,document.getElementById(n).querySelector(".input-periodo-3").checked=!0,window["reload-"+e.data.input_name+"-field"]=y},[]);function k(g,N){return l.readonly?g==null?r:i:g==null?l.selectable==null?r:l.selectable.indexOf(N)>=0?s:r:g.text==null?i:o}function
|
|
107
|
+
`);function y(g){const N=document.getElementsByName(e.data.input_name)[0].closest("form");var O=N?Q(e.data.url,N,e.data.input_name):e.data.url,L=O.indexOf("?")>0?"&":"?";O=O+L+"week="+(g||m),R("GET",O,function(Z){console.log(Z),h(Z)})}function j(){m>1&&(y(m-1),w(m-1))}function q(){y(m+1),w(m+1)}I.useEffect(()=>{document.getElementById(n).querySelector(".input-periodo-2").checked=!0,document.getElementById(n).querySelector(".input-periodo-3").checked=!0,window["reload-"+e.data.input_name+"-field"]=y},[]);function k(g,N){return l.readonly?g==null?r:i:g==null?l.selectable==null?r:l.selectable.indexOf(N)>=0?s:r:g.text==null?i:o}function A(g){a=!0}function D(g){a=!1,document.getElementById("input"+n).value=JSON.stringify({select:d,deselect:c})}function v(g){if(!l.readonly&&!(e.data.single_selection&&S().length>0&&g.target.style.backgroundColor!=i)&&a&&g.target.tagName!="I"&&g.target.style.backgroundColor!=o){const N=g.target.dataset.day.split("/"),O=g.target.dataset.time.split(":"),L=g.target.dataset.day+" "+g.target.dataset.time;if(new Date(parseInt(N[2],10),parseInt(N[1],10)-1,parseInt(N[0],10),parseInt(O[0],10),parseInt(O[1],10))>new Date||e.data.weekly){if(e.data.single_selection){for(;c.length>0;)c.pop();for(;d.length>0;)d.pop()}(g.target.style.backgroundColor==r||g.target.style.backgroundColor==s)&&(l.selectable==null||l.selectable.indexOf(L)>=0)?(g.target.style.backgroundColor=i,console.log("MARCOU",g.target.dataset.day,g.target.dataset.time),d.push([g.target.dataset.day,g.target.dataset.time])):(l.selectable==null?g.target.style.backgroundColor=r:g.target.style.backgroundColor=l.selectable.indexOf(L)>=0?s:r,console.log("DEMARCOU",g.target.dataset.day,g.target.dataset.time),c.push([g.target.dataset.day,g.target.dataset.time]))}}}function E(g){const N=g.split("/");return u[new Date(parseInt(N[2],10),parseInt(N[1],10)-1,parseInt(N[0],10)).getDay()]}function S(){const g=[];return document.getElementById(n).querySelectorAll("td").forEach(function(N){N.style.backgroundColor==i&&g.push(N.dataset.day,N.dataset.time)}),g}function f(g){if(g=parseInt(g.split(":")[0]),g>=0&&g<6)return 1;if(g>=6&&g<12)return 2;if(g>=12&&g<18)return 3;if(g>=18&&g<24)return 4}function b(g){const N=f(g);var O="period-"+N;return _(N)||(O+=" hidden"),O}function M(g,N){document.getElementById(n).querySelectorAll(".period-"+g).forEach(function(O){O.style.display=N?"table-row":"none"})}function _(g){return g==2||g==3}function B(){const g={overflowX:"auto"},N={width:"100%",borderSpacing:0,borderCollapse:"collapse",marginTop:15,marginBottom:15},O={border:"solid 4px white",userSelect:"none"};return t.jsxs("div",{id:n,style:g,className:"scheduler",children:[e.data.title&&t.jsx("h2",{children:e.data.title}),t.jsx("input",{id:"input"+n,type:"hidden",name:e.data.input_name}),t.jsx("table",{style:{width:"100%"},children:t.jsx("tbody",{children:t.jsxs("tr",{children:[e.data.url&&m>1&&t.jsx("td",{align:"left",width:10,children:t.jsx(W,{primary:!0,icon:"chevron-left",onClick:()=>j()})}),t.jsx("td",{align:"center",children:t.jsxs("div",{className:"periods",children:[t.jsx("input",{className:"input-periodo-1",type:"checkbox","data-label":"madrugada",onChange:L=>M(1,L.target.checked)})," ",t.jsx("span",{children:"Madrugada"}),t.jsx("input",{className:"input-periodo-2",type:"checkbox","data-label":"manha",onChange:L=>M(2,L.target.checked)})," ",t.jsx("span",{children:"Manhã"}),t.jsx("input",{className:"input-periodo-3",type:"checkbox","data-label":"tarde",onChange:L=>M(3,L.target.checked)})," ",t.jsx("span",{children:"Tarde"}),t.jsx("input",{className:"input-periodo-4",type:"checkbox","data-label":"noite",onChange:L=>M(4,L.target.checked)})," ",t.jsx("span",{children:"Noite"})]})}),e.data.url&&t.jsx("td",{align:"right",width:10,children:t.jsx(W,{primary:!0,icon:"chevron-right",onClick:()=>q()})})]})})}),t.jsxs("table",{style:N,onMouseDown:A,onMouseUp:D,children:[t.jsx("thead",{children:t.jsx("tr",{children:l.matrix[0].map(function(L){return t.jsxs("th",{className:"bold",style:O,children:[E(L.text),!e.data.weekly&&t.jsx("br",{}),!e.data.weekly&&L.text]},Math.random())})})}),t.jsx("tbody",{children:l.matrix.map(function(L,Z){if(Z>0)return t.jsx("tr",{className:b(L[0].text),children:L.map(function(J,se){if(se==0)return t.jsx("th",{className:"bold",align:"center",style:O,children:J.text},Math.random());{const ve=l.matrix[0][se].text+" "+L[0].text,qe={backgroundColor:k(J,ve),border:"solid 4px white",cursor:"pointer"};return t.jsx("td",{align:"center",style:qe,onMouseDown:v,onMouseLeave:v,onMouseUp:v,"data-day":l.matrix[0][se].text,"data-time":L[0].text,"data-label":ve,children:J&&J.text&&t.jsx(wt,{text:J.text,children:t.jsx(C,{icon:J.icon||"x",style:{color:"white",cursor:"help"}})})},Math.random())}})},Math.random())})})]})]})}return B()}function wt(e){function n(){return F(`
|
|
108
108
|
.tooltip {
|
|
109
109
|
position: relative;
|
|
110
110
|
display: inline-block;
|
|
@@ -127,7 +127,7 @@ import{j as t,c as Y,r as I,R as Be}from"./react.min.js";const p={colors:{primar
|
|
|
127
127
|
.tooltip:hover .tooltiptext {
|
|
128
128
|
visibility: visible;
|
|
129
129
|
}
|
|
130
|
-
`),t.jsxs("div",{className:"tooltip",children:[e.children,t.jsx("div",{className:"tooltiptext",children:G(e.text)})]})}return n()}const pt=["text","password","email","number","date","datetime-local","file","image","range","search","tel","time","url","week","hidden","color"],te={padding:15,border:"solid 1px #d9d9d9",borderRadius:5,backgroundColor:"white"};function jt(e,n){const a=new FormData(e);for(let[r,i]of Array.from(a.entries())){const o=e[r];n!=r&&(o.tagName=="SELECT"&&i!==""||o.tagName==null&&i!==""||o.type=="radio"&&i!==""||o.type=="checkbox"&&i!==""||a.delete(r))}return new URLSearchParams(a).toString()}function Q(e,n,a){const r=e.indexOf("?")<0?"?":"&",i=jt(n,a);return e=e+(i?r+i:""),e}function ce(e){if(e){const a=[".png",".jpeg",".jpeg",".gif"];for(var n=0;n<a.length;n++)if(e.toLowerCase().indexOf(a[n])>0)return!0}}function ne(e,n){R("GET",Q(n,e.closest("form"),e.name),De)}function kt(e){if(e){var n=document.querySelector(".form-fieldset."+e);n&&(n.style.display="none");var a=document.querySelector(".form-group."+e);a&&(a.style.display="none")}}function St(e){if(e){var n=document.querySelector(".form-fieldset."+e);n&&(n.style.display="block");var a=document.querySelector(".form-group."+e);a&&(a.style.display="block")}}function Ct(e){const n="reload-"+e+"-field";window[n]&&window[n]()}function Mt(e,n){var a=document.querySelector(".form-group."+e),r=a.querySelector('*[name="'+e+'"]');if(r.tagName=="INPUT")r.value=n;else if(r.tagName=="SELECT"){if(r.style.display!="none")r.dispatchEvent(new CustomEvent("customchange",{detail:{value:n}}));else for(var i=0;i<r.options.length;i++)if(r.options[i].value==n){r.selectedIndex=i;break}}}function De(e){if(e){for(var n=0;n<e.hide.length;n++)kt(e.hide[n]);for(var n=0;n<e.show.length;n++)St(e.show[n]);for(var n=0;n<e.reload.length;n++)Ct(e.reload[n]);for(var a in e.set)Mt(a,e.set[a])}}function Et(e){function n(){const a={color:p.colors.info,backgroundColor:p.background.info,padding:20,display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10};return t.jsxs("div",{style:a,children:[t.jsxs("div",{children:[t.jsx(C,{icon:"circle-check",style:{color:p.colors.info,marginRight:20}}),e.data.text]}),e.children&&t.jsx("div",{children:e.children})]})}return n()}function Tt(e){function n(){const a={color:"white",display:"none",backgroundColor:"#e52207",marginTop:2,marginBottom:2,padding:8};return t.jsxs("div",{style:a,id:e.id,className:"error",children:[t.jsx(C,{icon:"xmark-circle",style:{marginRight:5}}),t.jsx("span",{})]})}return n()}function It(e){function n(){const a={marginTop:2,marginBottom:2,fontStyle:"italic"};return t.jsx("div",{style:a,children:t.jsx("span",{children:e.text})})}return n()}function ie(e){const n=e.data.name+Math.random();function a(){const d={display:"flex",justifyContent:"space-between",alignItems:"baseline"};return e.data.action&&(e.data.action.icon=null,e.data.action.modal=!0,e.data.action.urlfunc=function(){return Q(e.data.action.url,document.getElementById(n).closest("form"))}),t.jsxs("div",{style:d,children:[t.jsxs("label",{className:"bold",children:[e.data.label," ",e.data.label&&e.data.required?"*":""]}),e.data.action&&t.jsx(H,{data:e.data.action,style:{padding:0,margin:0}})]})}function r(){return e.data.type=="datetime"&&(e.data.type="datetime-local"),pt.indexOf(e.data.type)>=0?t.jsx(pe,{data:e.data}):e.data.type=="choice"&&Array.isArray(e.data.choices)?e.data.pick?Array.isArray(e.data.value)?t.jsx(je,{data:e.data}):t.jsx(ue,{data:e.data}):t.jsx(Lt,{data:e.data}):e.data.type=="choice"?e.data.pick?Array.isArray(e.data.value)?t.jsx(je,{data:e.data}):t.jsx(ue,{data:e.data}):t.jsx(Le,{data:e.data}):e.data.type=="decimal"?t.jsx(pe,{data:e.data}):e.data.type=="boolean"?t.jsx(Dt,{data:e.data}):e.data.type=="textarea"?t.jsx(Nt,{data:e.data}):e.data.type=="scheduler"?(e.data.scheduler.input_name=e.data.name,t.jsx(Ne,{data:e.data.scheduler})):t.jsx("span",{children:e.data.name})}function i(){return t.jsx("div",{children:t.jsx(Tt,{id:e.data.name+"_error"})})}function o(){return e.data.help_text&&t.jsx(It,{text:e.data.help_text})}function s(){const d={display:e.data.type=="hidden"?"none":"flex",flexDirection:"column",padding:5,width:"calc(100%-5px)"};return t.jsxs("div",{id:n,style:d,children:[a(),r(),o(),i()]})}return s()}function pe(e){var n="";const a=e.data.name+Math.random();e.data.mask=="decimal"&&(n="decimal",e.data.value&&(e.data.value=Math.round(parseFloat(e.data.value)).toFixed(2).replace(".",","))),I.useEffect(()=>{function s(u,l,h){var m=h.target,w=m.value.replace(/\D/g,""),y=m.value.length>l?1:0;VMasker(m).unMask(),VMasker(m).maskPattern(u[y]),m.value=VMasker.toPattern(w,u[y])}if(e.data.mask){var d=document.getElementById(a);if(e.data.mask=="decimal")VMasker(d).maskMoney({precision:2,separator:",",delimiter:"."});else if(e.data.mask.indexOf("|")>0){var c=e.data.mask.split("|");VMasker(d).maskPattern(c[0]),d.addEventListener("input",s.bind(void 0,c,14),!1)}else VMasker(d).maskPattern(e.data.mask)}},[]);function r(s){ne(s.target,e.data.onchange)}function i(s){if(e.data.type=="file"&&s.target.files){let c=s.target.files[0];var d=new FileReader;d.onload=function(u){if(ce(c.name)){const w="display"+a;var l=document.createElement("img");l.id=s.target.id+"img",l.style.width="200px",l.style.display="block",l.style.margin="auto",l.style.marginTop="20px",l.onload=function(y){const j=e.data.width>e.data.height?e.data.width/l.width:e.data.height/l.height;var q=document.createElement("canvas");const k=q.getContext("2d");q.height=q.width*(l.height/l.width);const B=document.createElement("canvas"),D=B.getContext("2d");B.width=l.width*j,B.height=l.height*j,D.drawImage(l,0,0,B.width,B.height),k.drawImage(B,0,0,B.width*j,B.height*j,0,0,q.width,q.height),B.toBlob(function(M){const S=new DataTransfer;S.items.add(new File([M],c.name)),s.target.files=S.files});var v=document.getElementById(w);v==null?(v=document.createElement("div"),v.id=w):v.removeChild(v.childNodes[0]),v.appendChild(l),s.target.parentNode.appendChild(v)},l.src=u.target.result}const h=document.getElementById("fileinfo"+a);var m=c.size/1024;m<1024?m=parseInt(m)+" Kb":m=(m/1024).toFixed(2)+" Mb",h.innerHTML=c.name+" / "+m,e.data.max_size&&c.size/1024/1024>e.data.max_size&&alert("O limite de tamanho é "+e.data.max_size+"Mb. O arquivo informado possui "+m+". Por favor, adicione um arquivo menor.")},d.readAsDataURL(c)}}function o(){var s=e.data.type;if(s=="datetime"&&(s="datetime-regional"),s=="decimal"&&(s="text"),s=="file"){const u={alignContent:"center",minHeight:75,padding:5,maxWidth:"100%",margin:"auto"};var d=null;return e.data.extensions&&e.data.extensions.length>0&&(d=e.data.extensions.map(l=>"."+l).join(", ")),t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:window.innerWidth<800?"block":"flex",justifyContent:"space-between",backgroundColor:"rgba(15, 145, 210, 0.05)",border:"1px dashed rgba(15, 145, 210, 0.4)",borderRadius:10,textAlign:"center"},children:[t.jsx("div",{style:u,children:t.jsx(C,{icon:"cloud-upload",style:{fontSize:"2.5rem",color:p.colors.primary}})}),t.jsxs("div",{style:u,children:[e.data.value&&ce(e.data.value)&&t.jsx("div",{style:{textAlign:"center"},children:t.jsx("img",{src:e.data.value,height:50})}),e.data.value&&!ce(e.data.value)&&t.jsx("div",{style:{textAlign:"center"},children:e.data.value}),"Selecione um arquivo clicando no botão ao lado.",t.jsxs("div",{className:"bold",id:"fileinfo"+a,children:["O arquivo",e.data.max_size&&"deve possuir até "+e.data.max_size+" Mb e ","deve ter extensão"," ",e.data.extensions.map(l=>"."+l).join(" ou "),"."]})]}),t.jsx("div",{style:u,align:"center",children:t.jsx(W,{label:"Selecionar Arquivo",onClick:()=>document.getElementById(a).click()})})]}),t.jsx("input",{className:"form-control "+n,type:s,name:e.data.name,id:a,"data-label":T(e.data.label),readOnly:e.data.read_only,onBlur:e.data.onchange?r:null,onChange:i,style:{zIndex:"-1",marginTop:-20},accept:d})]})}else{var c=te;return s=="color"&&(c={...te},c.width="100%",c.backgroundColor="white",c.height=47.5),t.jsx("input",{className:"form-control "+n,type:s,name:e.data.name,id:a,defaultValue:e.data.value,"data-label":T(e.data.label),readOnly:e.data.read_only,onBlur:e.data.onchange?r:null,onChange:i,style:c})}}return o()}function Le(e){var n=[];Array.isArray(e.data.value)?e.data.value.forEach(function(v,M){n.push({id:v.id,value:v.label})}):e.data.value!=null&&n.push({id:e.data.value.id,value:e.data.value.label}),e.data.id==null&&(e.data.id=Math.random()),e.data.id2==null&&(e.data.id2=e.data.id+"__autocomplete");const a=e.data.id,r=e.data.id2,i=Array.isArray(e.data.value),[o,s]=I.useState(!1),[d,c]=I.useState(null);var u=!1;let l;I.useEffect(()=>{k(n,!0),document.getElementById(a).addEventListener("customchange",function(v){k(v.detail.value);const M=document.getElementById(e.data.name);M&&reactTriggerChange(M)})},[]);function h(){const v=document.getElementById(a);if(i){const M={padding:5,display:"inline"},S={cursor:"pointer",marginRight:5},f={fontSize:"0.8rem"};return t.jsxs("div",{children:[v==null&&n.map((b,E)=>t.jsxs("div",{style:M,children:[t.jsx("span",{onClick:()=>B(E),style:S,children:t.jsx(C,{icon:"trash-can",style:f})}),b.value]},Math.random())),v!=null&&Array.from(v.options).map((b,E)=>t.jsxs("div",{style:M,children:[t.jsx("span",{onClick:()=>B(E),style:S,children:t.jsx(C,{icon:"trash-can",style:f})}),b.innerHTML]},Math.random()))]})}}function m(){return t.jsx("select",{id:a,name:e.data.name,multiple:i,readOnly:!0,style:{display:"contents"}})}function w(){const v={...te,...e.style||{}},M={padding:0,margin:0,border:"solid 1px #d9d9d9",marginTop:-1,borderRadius:5,maxHeight:150,overflowY:"auto",zIndex:99999};M.position="absolute",M.backgroundColor="white";const S=document.getElementById(r);if(e.data.icon&&(v.paddingLeft=30),S){let A=null,g=S,N=null;for(;!N&&(g=g.parentElement)instanceof HTMLElement;)g.matches("dialog")&&(N=g);A=N;const O=S.getBoundingClientRect();var f=O.top+O.height,b=O.left;if(A){const L=A.getBoundingClientRect();f=f-L.top,b=b-L.left}else f+=window.scrollY,b+=window.scrollX;M.width=O.width,M.top=f,M.left=b}const E={cursor:"pointer",padding:10},_=!i&&n.length>0&&n[0].value||"";return t.jsxs(t.Fragment,{children:[e.data.icon&&t.jsx(C,{icon:e.data.icon,style:{position:"absolute",margin:13,color:"#d9d9d9"}}),t.jsx("input",{id:r,name:e.data.name+"__autocomplete",type:"text",className:"form-control",onFocus:A=>{A.target.select(),q(A)},onChange:q,onMouseLeave:y,onBlur:y,defaultValue:_,style:v,"data-label":T(e.data.label)}),d&&o&&t.jsxs("ul",{style:M,onMouseLeave:j,onMouseEnter:function(A){u=!0},children:[d.length==0&&t.jsx("li",{style:E,children:"Nenhuma opção encontrada."}),d.map(A=>t.jsx("li",{onClick:()=>{s(!1),e.onSelect?e.onSelect(A):k(A)},style:E,className:"autocomplete-item","data-label":T(A.value),children:A.value},Math.random()))]})]})}function y(v){u=!1,setTimeout(function(){u||j(v)},250)}function j(v){const M=document.getElementById(a);if(M){const S=document.getElementById(r);i||M.options.length>0&&S.value!=M.options[0].innerHTML&&(M.innerHTML="",S.value="",s(!1),e.data.onchange&&ne(S,e.data.onchange)),v.target.tagName=="UL"?s(!1):u||s(!1)}}function q(v){clearTimeout(l),l=setTimeout(function(){const M=v.target.closest("form"),S=e.data.choices.indexOf("?")<0?"?":"&";s(!0),R("GET",Q(e.data.choices+S+"term="+v.target.value,M),function(b){c(b)})},1e3)}function k(v,M=!1){const S=document.getElementById(a),f=document.getElementById(r);S.innerHTML==null&&(S.innerHTML=""),Array.isArray(v)?S.innerHTML=v.map(b=>`<option selected value="${b.id}">${b.value}</option>`).join(""):v?i?(S.innerHTML+=`<option selected value="${v.id}">${v.value}</option>`,f.value=""):(S.innerHTML=`<option selected value="${v.id}">${v.value}</option>`,f.value=v.value):(S.innerHTML="",f.value=""),e.data.onchange&&!M&&ne(f,e.data.onchange)}function B(v){const M=document.getElementById(a);var S=Array.from(M.options);M.innerHTML=S.slice(0,v).concat(S.slice(v+1)).map(f=>`<option selected value="${f.value}">${f.innerHTML}</option>`).join(""),c([])}function D(){return t.jsxs(t.Fragment,{children:[h(),m(),w()]})}return D()}function Nt(e){function n(){var a={...te};return a.height=100,t.jsx("textarea",{id:e.data.name,name:e.data.name,"data-label":T(e.data.label),style:a,defaultValue:e.data.value||"",className:"form-control"})}return n()}function Dt(e){var n=e.data;return n.choices=[{id:!0,value:"Sim"},{id:!1,value:"Não"}],t.jsx(ue,{data:n})}function ue(e){const[n,a]=I.useState(e.data.choices);var r=Math.random(),i=e.data;function o(u){return i.value!=null?i.value==u.id?!0:i.value.id==u.id:!1}function s(u){var l=document.getElementById(u);i.checked&&(l.checked=!1),e.data.onchange&&ne(l,e.data.onchange)}function d(u){var l=document.getElementById(u);i.checked=l.checked}function c(){return window["reload-"+i.name+"-field"]=function(){R("GET",Q(e.data.pick,document.querySelector(".radio-group."+i.name).closest("form")),function(l){a(l)})},n.length>0?t.jsx("div",{className:"radio-group "+i.name,children:n.map((u,l)=>(u.id||u.id===!1)&&t.jsxs("div",{style:{paddingTop:10,display:"inline-block",marginRight:25,width:window.innerWidth>800?"auto":"100%"},children:[t.jsx("input",{id:i.name+r+l,type:"radio",name:i.name,defaultValue:u.id,defaultChecked:o(u),"data-label":T(u.value),onClick:function(){s(i.name+r+l)},onMouseEnter:function(){d(i.name+r+l)}}),t.jsx("label",{htmlFor:i.name+r+l,children:u.value})]},r+l))}):t.jsx("div",{className:"radio-group empty "+i.name,children:t.jsx(ae,{data:{text:"Nenhuma opção disponível para seleção."}})})}return c()}function je(e){const[n,a]=I.useState(e.data.choices);var r=Math.random(),i=e.data;function o(c){var u=!1;if(i.value)for(var l=0;l<i.value.length;l++){var h=i.value[l];(h==c.id||h.id==c.id)&&(u=!0)}return u}function s(c){e.data.onchange&&ne(c.target,e.data.onchange)}function d(){return window["reload-"+i.name+"-field"]=function(){R("GET",Q(e.data.pick,document.querySelector(".checkbox-group."+i.name).closest("form")),function(u){a(u)})},n.length>0?t.jsx("div",{className:"checkbox-group "+i.name,children:n.map((c,u)=>(c.id||c.id===!1)&&t.jsxs("div",{style:{paddingTop:10,display:"inline-block",marginRight:25,width:window.innerWidth>800?"auto":"100%"},children:[t.jsx("input",{id:i.name+r+u,type:"checkbox",name:i.name,onClick:s,defaultValue:c.id,defaultChecked:o(c),"data-label":T(c.value)}),t.jsx("label",{htmlFor:i.name+r+u,children:c.value})]},r+u))}):t.jsx("div",{className:"checkbox-group empty "+i.name,children:t.jsx(ae,{data:{text:"Nenhuma opção disponível para seleção."}})})}return d()}function Lt(e){var n=e.data;return t.jsx(t.Fragment,{children:t.jsx("select",{className:"form-control",id:n.name,name:n.name,"data-label":T(n.label),defaultValue:n.value,style:te,children:n.choices.map(a=>t.jsx("option",{value:a.id,children:a.value},Math.random()))})})}function qt(e){const n=Math.random(),a=e.data.value[0],r=a.fields?a.fields[0]:a.fieldsets[0].fields[0][0];function i(){return!e.data.required&&t.jsx("div",{id:"info-"+n,children:t.jsxs(ae,{data:{text:"Esta informação é opcional. Controle seu preenchimento com o botão ao lado."},children:[t.jsx(W,{primary:!0,icon:"pen-clip",onClick:()=>o(!0),id:"show-"+n,display:r.value?"none":"inline"}),t.jsx(W,{primary:!0,icon:"trash",onClick:()=>o(!1),id:"hide-"+n,display:r.value?"inline":"none"})]})})}function o(c){const u=document.querySelector("input[name="+r.name+"]"),l=document.getElementById("inline-form-"+n),h=document.getElementById("show-"+n),m=document.getElementById("hide-"+n);l.style.display=c?"block":"none",h.style.display=c?"none":"inline",m.style.display=c?"inline":"none",c?u.value===""?u.value=0:u.value=-parseInt(u.value):parseInt(u.value)==0?u.value="":u.value=-parseInt(u.value)}function s(){const c={display:r.value?"block":"none"};return e.data.required&&(c.display="block",r.value===""&&(r.value=0)),t.jsx("div",{className:"fieldset-inline-forms",style:c,id:"inline-form-"+n,children:e.data.value.map(function(u){return t.jsx(ge,{data:u},Math.random())})})}function d(){const c={margin:0};return t.jsxs("div",{className:"form-fieldset",children:[t.jsx("h2",{style:c,"data-label":T(e.data.label),children:e.data.label}),i(),s()]})}return d()}function Bt(e){var n=0;const a=Math.random();e.data.template==null&&(e.data.template=e.data.value.pop());function r(l,h){const m=n;return n+=1,t.jsxs("div",{style:{display:"block"},id:"form-"+m+"-"+a,children:[t.jsx(ge,{data:l}),t.jsxs("div",{style:{textAlign:"center",marginTop:10,marginBottom:10},children:[t.jsx(W,{primary:!0,icon:"plus",onClick:()=>o(),id:"extra-add-"+m+"-",display:h}),t.jsx(W,{primary:!0,icon:"trash",onClick:()=>s(m),display:"inline"})]})]},Math.random())}function i(){const l=d(),h=l.length>0?"none":"inline";document.getElementById("add-"+a).style.display=h;for(var m=0;m<n;m++){var w=document.getElementById("extra-add-"+m+"-");w.style.display="none"}if(l.length>0){var w=document.getElementById("extra-add-"+l[l.length-1]+"-");w.style.display="inline"}}function o(){i();var l=JSON.parse(JSON.stringify(e.data.template));l.fields?(l.fields.map(function(h){h.name=h.name.replace("__n__","__"+n+"__")}),l.fields[0].value=0):l.fieldsets.map(function(h){h.fields.map(function(m){m.map(function(w){w.name=w.name.replace("__n__","__"+n+"__")}),m[0].value=0})}),Y.createRoot(document.getElementById(a).appendChild(document.createElement("div"))).render(r(l,"inline")),setTimeout(i,100)}function s(l){const h=e.data.template,w=(h.fields?h.fields[0]:h.fieldsets[0].fields[0][0]).name.replace("__n__","__"+l+"__"),y=document.querySelector("input[name="+w+"]");parseInt(y.value)==0?y.value="":y.value=-parseInt(y.value),document.getElementById("form-"+l+"-"+a).style.display="none",i()}function d(){for(var l=[],h=0;h<n;h++)document.getElementById("form-"+h+"-"+a).style.display=="block"&&l.push(h);return l}function c(){return t.jsx("div",{id:"info-"+a,children:t.jsx(ae,{data:{text:'Clique no botão com o ícone de "+" para adicionar e com o ícone da "lixeira" para remover.'},children:t.jsx(W,{primary:!0,icon:"add",onClick:()=>o(),id:"add-"+a,display:e.data.value.length>0?"none":"inline"})})})}function u(){const l={margin:0};return t.jsxs("div",{className:"form-fieldset",children:[t.jsx("h2",{style:l,"data-label":T(e.data.label),children:e.data.label}),t.jsx("div",{children:!1}),t.jsxs("div",{id:a,className:"fieldset-inline-forms",children:[c(),e.data.value.map(function(h,m){return r(h,m==e.data.value.length-1?"inline":"none")})]})]})}return u()}function ge(e){I.useEffect(()=>{e.data.controls&&De(e.data.controls)},[]);function n(r){return r.type=="inline"?r.max==r.min==1?t.jsx(qt,{data:r},Math.random()):t.jsx(Bt,{data:r},Math.random()):t.jsx(ie,{data:r},Math.random())}function a(){return e.data.fields?t.jsx("div",{className:"form-fields",children:e.data.fields.map(r=>n(r))}):e.data.fieldsets.map(r=>t.jsx("div",{className:"form-fieldset",children:r.type=="inline"?n(r):t.jsxs(t.Fragment,{children:[t.jsx("h2",{"data-label":T(r.title),style:{margin:0},children:r.title}),r.fields.map(i=>t.jsx("div",{children:i.map(o=>t.jsx("div",{className:"form-group "+o.name,style:{verticalAlign:"bottom",width:100/i.length+"%",display:o.type=="hidden"?"none":"inline-block"},children:n(o)},Math.random()))},Math.random()))]})},Math.random()))}return a()}function At(e){const n=Math.random();I.useEffect(()=>{e.data.autosubmit&&setInterval(h,e.data.autosubmit*1e3)},[]);function a(){const m={margin:0,color:p.colors.primary};return t.jsx("h1",{style:m,children:e.data.title})}function r(){return e.data.info&&t.jsx(Et,{data:{text:e.data.info}})}function i(){if(e.data.display)return t.jsxs(t.Fragment,{children:[e.data.display.map(m=>t.jsx(x,{data:m},Math.random())),t.jsx("div",{style:{marginTop:30}})]})}function o(){return t.jsx(ge,{data:e.data})}function s(){return t.jsxs("div",{style:{marginTop:20,textAlign:"right"},children:[t.jsx(W,{onClick:l,label:"Cancelar",default:!0,display:"inline"}),t.jsx(W,{onClick:h,label:e.data.submit_label,primary:!0,display:"inline",icon:e.data.submit_icon,spin:!0})]})}function d(){return t.jsx("div",{id:"output",style:{marginTop:30}})}function c(){if(e.data.image)return t.jsx("div",{style:{margin:"auto",width:"100%",textAlign:"center"},children:t.jsx("img",{src:e.data.image})})}function u(){return t.jsxs("form",{id:n,className:e.data.key,action:e.data.url,style:{margin:"auto",backgroundColor:"white"},method:e.data.method,children:[t.jsx("div",{children:!1}),t.jsxs("div",{style:{padding:5},children:[a(),c(),r(),i(),o(),s(),d()]})]})}function l(){K()}function h(m){m&&m.preventDefault();var w=e.data.url,y=document.getElementById(n),j=new FormData(y);if(y.method.toUpperCase()=="GET"){const q=w.indexOf("?")>=0?"&":"?";w=w+q+"form="+e.data.key+"&"+new URLSearchParams(j).toString(),j=null}e.data.autosubmit&&m==null&&(w+="&autosubmit=1"),R(y.method.toUpperCase(),w,function(k){if(y.querySelectorAll(".error").forEach(D=>D.style.display="none"),m&&m.target.dataset.spinning&&(m.target.querySelector("i.fa-spin").style.display="none",m.target.querySelector("i.fa-"+m.target.dataset.spinning).style.display="inline-block"),k.type=="response")if(k.store&&Ce(k.store),k.redirect&&k.redirect.length>2)k.message&&localStorage.setItem("message",k.message),document.location.href=X(k.redirect);else if(k.message&&U(k.message),k.task){let D=function(){R("GET","/api/job/progress/"+k.task+"/",function(S){S==null||S.progress==100?m.target.innerHTML=v:(m.target.innerHTML="Aguarde... ("+(S.progress||0)+"%)",setTimeout(D,5e3))})};const v=m.target.innerHTML;m.target.innerHTML="Aguarde... (0%)",D()}else k.redirect==".."&&(document.getElementsByTagName("dialog").length==0?history.back():K()),k.redirect=="."&&y.reset(),k.dispose&&(y.style.display="none"),rt();else if(k.type=="error"){var B=k.text;console.log(k),Object.keys(k.errors).map(function(D){if(D=="__all__")B=k.errors[D];else{const v=y.querySelector("#"+D+"_error");v==null?B=D+":"+k.errors[D]:(v.querySelector("span").innerHTML=k.errors[D],v.style.display="block")}}),U(B,!0)}else if(k.type!="redirect"){const D=document.querySelector("#output");D.innerHTML="",Y.createRoot(D.appendChild(document.createElement("div"))).render(t.jsx(x,{data:k}))}},j)}return u()}function Ot(e){F(`
|
|
130
|
+
`),t.jsxs("div",{className:"tooltip",children:[e.children,t.jsx("div",{className:"tooltiptext",children:G(e.text)})]})}return n()}const pt=["text","password","email","number","date","datetime-local","file","image","range","search","tel","time","url","week","hidden","color"],te={padding:15,border:"solid 1px #d9d9d9",borderRadius:5,backgroundColor:"white"};function jt(e,n){const a=new FormData(e);for(let[r,i]of Array.from(a.entries())){const o=e[r];n!=r&&(o.tagName=="SELECT"&&i!==""||o.tagName==null&&i!==""||o.type=="radio"&&i!==""||o.type=="checkbox"&&i!==""||a.delete(r))}return new URLSearchParams(a).toString()}function Q(e,n,a){const r=e.indexOf("?")<0?"?":"&",i=jt(n,a);return e=e+(i?r+i:""),e}function ce(e){if(e){const a=[".png",".jpeg",".jpeg",".gif"];for(var n=0;n<a.length;n++)if(e.toLowerCase().indexOf(a[n])>0)return!0}}function ne(e,n){R("GET",Q(n,e.closest("form"),e.name),De)}function kt(e){if(e){var n=document.querySelector(".form-fieldset."+e);n&&(n.style.display="none");var a=document.querySelector(".form-group."+e);a&&(a.style.display="none")}}function St(e){if(e){var n=document.querySelector(".form-fieldset."+e);n&&(n.style.display="block");var a=document.querySelector(".form-group."+e);a&&(a.style.display="block")}}function Ct(e){const n="reload-"+e+"-field";window[n]&&window[n]()}function Et(e,n){var a=document.querySelector(".form-group."+e),r=a.querySelector('*[name="'+e+'"]');if(r.tagName=="INPUT")r.value=n;else if(r.tagName=="TEXTAREA")r.innerHTML=n;else if(r.tagName=="SELECT"){if(r.style.display!="none")r.dispatchEvent(new CustomEvent("customchange",{detail:{value:n}}));else for(var i=0;i<r.options.length;i++)if(r.options[i].value==n){r.selectedIndex=i;break}}}function De(e){if(e){for(var n=0;n<e.hide.length;n++)kt(e.hide[n]);for(var n=0;n<e.show.length;n++)St(e.show[n]);for(var n=0;n<e.reload.length;n++)Ct(e.reload[n]);for(var a in e.set)Et(a,e.set[a])}}function Mt(e){function n(){const a={color:p.colors.info,backgroundColor:p.background.info,padding:20,display:"flex",justifyContent:"space-between",marginTop:10,marginBottom:10};return t.jsxs("div",{style:a,children:[t.jsxs("div",{children:[t.jsx(C,{icon:"circle-check",style:{color:p.colors.info,marginRight:20}}),e.data.text]}),e.children&&t.jsx("div",{children:e.children})]})}return n()}function Tt(e){function n(){const a={color:"white",display:"none",backgroundColor:"#e52207",marginTop:2,marginBottom:2,padding:8};return t.jsxs("div",{style:a,id:e.id,className:"error",children:[t.jsx(C,{icon:"xmark-circle",style:{marginRight:5}}),t.jsx("span",{})]})}return n()}function It(e){function n(){const a={marginTop:2,marginBottom:2,fontStyle:"italic"};return t.jsx("div",{style:a,children:t.jsx("span",{children:e.text})})}return n()}function ie(e){const n=e.data.name+Math.random();function a(){const d={display:"flex",justifyContent:"space-between",alignItems:"baseline"};return e.data.action&&(e.data.action.icon=null,e.data.action.modal=!0,e.data.action.urlfunc=function(){return Q(e.data.action.url,document.getElementById(n).closest("form"))}),t.jsxs("div",{style:d,children:[t.jsxs("label",{className:"bold",children:[e.data.label," ",e.data.label&&e.data.required?"*":""]}),e.data.action&&t.jsx(H,{data:e.data.action,style:{padding:0,margin:0}})]})}function r(){return e.data.type=="datetime"&&(e.data.type="datetime-local"),pt.indexOf(e.data.type)>=0?t.jsx(pe,{data:e.data}):e.data.type=="choice"&&Array.isArray(e.data.choices)?e.data.pick?Array.isArray(e.data.value)?t.jsx(je,{data:e.data}):t.jsx(ue,{data:e.data}):t.jsx(Lt,{data:e.data}):e.data.type=="choice"?e.data.pick?Array.isArray(e.data.value)?t.jsx(je,{data:e.data}):t.jsx(ue,{data:e.data}):t.jsx(Le,{data:e.data}):e.data.type=="decimal"?t.jsx(pe,{data:e.data}):e.data.type=="boolean"?t.jsx(Dt,{data:e.data}):e.data.type=="textarea"?t.jsx(Nt,{data:e.data}):e.data.type=="scheduler"?(e.data.scheduler.input_name=e.data.name,t.jsx(Ne,{data:e.data.scheduler})):t.jsx("span",{children:e.data.name})}function i(){return t.jsx("div",{children:t.jsx(Tt,{id:e.data.name+"_error"})})}function o(){return e.data.help_text&&t.jsx(It,{text:e.data.help_text})}function s(){const d={display:e.data.type=="hidden"?"none":"flex",flexDirection:"column",padding:5,width:"calc(100%-5px)"};return t.jsxs("div",{id:n,style:d,children:[a(),r(),o(),i()]})}return s()}function pe(e){var n="";const a=e.data.name+Math.random();e.data.mask=="decimal"&&(n="decimal",e.data.value&&(e.data.value=Math.round(parseFloat(e.data.value)).toFixed(2).replace(".",","))),I.useEffect(()=>{function s(u,l,h){var m=h.target,w=m.value.replace(/\D/g,""),y=m.value.length>l?1:0;VMasker(m).unMask(),VMasker(m).maskPattern(u[y]),m.value=VMasker.toPattern(w,u[y])}if(e.data.mask){var d=document.getElementById(a);if(e.data.mask=="decimal")VMasker(d).maskMoney({precision:2,separator:",",delimiter:"."});else if(e.data.mask.indexOf("|")>0){var c=e.data.mask.split("|");VMasker(d).maskPattern(c[0]),d.addEventListener("input",s.bind(void 0,c,14),!1)}else VMasker(d).maskPattern(e.data.mask)}},[]);function r(s){ne(s.target,e.data.onchange)}function i(s){if(e.data.type=="file"&&s.target.files){let c=s.target.files[0];var d=new FileReader;d.onload=function(u){if(ce(c.name)){const w="display"+a;var l=document.createElement("img");l.id=s.target.id+"img",l.style.width="200px",l.style.display="block",l.style.margin="auto",l.style.marginTop="20px",l.onload=function(y){const j=e.data.width>e.data.height?e.data.width/l.width:e.data.height/l.height;var q=document.createElement("canvas");const k=q.getContext("2d");q.height=q.width*(l.height/l.width);const A=document.createElement("canvas"),D=A.getContext("2d");A.width=l.width*j,A.height=l.height*j,D.drawImage(l,0,0,A.width,A.height),k.drawImage(A,0,0,A.width*j,A.height*j,0,0,q.width,q.height),A.toBlob(function(E){const S=new DataTransfer;S.items.add(new File([E],c.name)),s.target.files=S.files});var v=document.getElementById(w);v==null?(v=document.createElement("div"),v.id=w):v.removeChild(v.childNodes[0]),v.appendChild(l),s.target.parentNode.appendChild(v)},l.src=u.target.result}const h=document.getElementById("fileinfo"+a);var m=c.size/1024;m<1024?m=parseInt(m)+" Kb":m=(m/1024).toFixed(2)+" Mb",h.innerHTML=c.name+" / "+m,e.data.max_size&&c.size/1024/1024>e.data.max_size&&alert("O limite de tamanho é "+e.data.max_size+"Mb. O arquivo informado possui "+m+". Por favor, adicione um arquivo menor.")},d.readAsDataURL(c)}}function o(){var s=e.data.type;if(s=="datetime"&&(s="datetime-regional"),s=="decimal"&&(s="text"),s=="file"){const u={alignContent:"center",minHeight:75,padding:5,maxWidth:"100%",margin:"auto"};var d=null;return e.data.extensions&&e.data.extensions.length>0&&(d=e.data.extensions.map(l=>"."+l).join(", ")),t.jsxs(t.Fragment,{children:[t.jsxs("div",{style:{display:window.innerWidth<800?"block":"flex",justifyContent:"space-between",backgroundColor:"rgba(15, 145, 210, 0.05)",border:"1px dashed rgba(15, 145, 210, 0.4)",borderRadius:10,textAlign:"center"},children:[t.jsx("div",{style:u,children:t.jsx(C,{icon:"cloud-upload",style:{fontSize:"2.5rem",color:p.colors.primary}})}),t.jsxs("div",{style:u,children:[e.data.value&&ce(e.data.value)&&t.jsx("div",{style:{textAlign:"center"},children:t.jsx("img",{src:e.data.value,height:50})}),e.data.value&&!ce(e.data.value)&&t.jsx("div",{style:{textAlign:"center"},children:e.data.value}),"Selecione um arquivo clicando no botão ao lado.",t.jsxs("div",{className:"bold",id:"fileinfo"+a,children:["O arquivo",e.data.max_size&&"deve possuir até "+e.data.max_size+" Mb e ","deve ter extensão"," ",e.data.extensions.map(l=>"."+l).join(" ou "),"."]})]}),t.jsx("div",{style:u,align:"center",children:t.jsx(W,{label:"Selecionar Arquivo",onClick:()=>document.getElementById(a).click()})})]}),t.jsx("input",{className:"form-control "+n,type:s,name:e.data.name,id:a,"data-label":T(e.data.label),readOnly:e.data.read_only,onBlur:e.data.onchange?r:null,onChange:i,style:{zIndex:"-1",marginTop:-20},accept:d})]})}else{var c=te;return s=="color"&&(c={...te},c.width="100%",c.backgroundColor="white",c.height=47.5),t.jsx("input",{className:"form-control "+n,type:s,name:e.data.name,id:a,defaultValue:e.data.value,"data-label":T(e.data.label),readOnly:e.data.read_only,onBlur:e.data.onchange?r:null,onChange:i,style:c})}}return o()}function Le(e){var n=[];Array.isArray(e.data.value)?e.data.value.forEach(function(v,E){n.push({id:v.id,value:v.label})}):e.data.value!=null&&n.push({id:e.data.value.id,value:e.data.value.label}),e.data.id==null&&(e.data.id=Math.random()),e.data.id2==null&&(e.data.id2=e.data.id+"__autocomplete");const a=e.data.id,r=e.data.id2,i=Array.isArray(e.data.value),[o,s]=I.useState(!1),[d,c]=I.useState(null);var u=!1;let l;I.useEffect(()=>{k(n,!0),document.getElementById(a).addEventListener("customchange",function(v){k(v.detail.value);const E=document.getElementById(e.data.name);E&&reactTriggerChange(E)})},[]);function h(){const v=document.getElementById(a);if(i){const E={padding:5,display:"inline"},S={cursor:"pointer",marginRight:5},f={fontSize:"0.8rem"};return t.jsxs("div",{children:[v==null&&n.map((b,M)=>t.jsxs("div",{style:E,children:[t.jsx("span",{onClick:()=>A(M),style:S,children:t.jsx(C,{icon:"trash-can",style:f})}),b.value]},Math.random())),v!=null&&Array.from(v.options).map((b,M)=>t.jsxs("div",{style:E,children:[t.jsx("span",{onClick:()=>A(M),style:S,children:t.jsx(C,{icon:"trash-can",style:f})}),b.innerHTML]},Math.random()))]})}}function m(){return t.jsx("select",{id:a,name:e.data.name,multiple:i,readOnly:!0,style:{display:"contents"}})}function w(){const v={...te,...e.style||{}},E={padding:0,margin:0,border:"solid 1px #d9d9d9",marginTop:-1,borderRadius:5,maxHeight:150,overflowY:"auto",zIndex:99999};E.position="absolute",E.backgroundColor="white";const S=document.getElementById(r);if(e.data.icon&&(v.paddingLeft=30),S){let B=null,g=S,N=null;for(;!N&&(g=g.parentElement)instanceof HTMLElement;)g.matches("dialog")&&(N=g);B=N;const O=S.getBoundingClientRect();var f=O.top+O.height,b=O.left;if(B){const L=B.getBoundingClientRect();f=f-L.top,b=b-L.left}else f+=window.scrollY,b+=window.scrollX;E.width=O.width,E.top=f,E.left=b}const M={cursor:"pointer",padding:10},_=!i&&n.length>0&&n[0].value||"";return t.jsxs(t.Fragment,{children:[e.data.icon&&t.jsx(C,{icon:e.data.icon,style:{position:"absolute",margin:13,color:"#d9d9d9"}}),t.jsx("input",{id:r,name:e.data.name+"__autocomplete",type:"text",className:"form-control",onFocus:B=>{B.target.select(),q(B)},onChange:q,onMouseLeave:y,onBlur:y,defaultValue:_,style:v,"data-label":T(e.data.label)}),d&&o&&t.jsxs("ul",{style:E,onMouseLeave:j,onMouseEnter:function(B){u=!0},children:[d.length==0&&t.jsx("li",{style:M,children:"Nenhuma opção encontrada."}),d.map(B=>t.jsx("li",{onClick:()=>{s(!1),e.onSelect?e.onSelect(B):k(B)},style:M,className:"autocomplete-item","data-label":T(B.value),children:B.value},Math.random()))]})]})}function y(v){u=!1,setTimeout(function(){u||j(v)},250)}function j(v){const E=document.getElementById(a);if(E){const S=document.getElementById(r);i||E.options.length>0&&S.value!=E.options[0].innerHTML&&(E.innerHTML="",S.value="",s(!1),e.data.onchange&&ne(S,e.data.onchange)),v.target.tagName=="UL"?s(!1):u||s(!1)}}function q(v){clearTimeout(l),l=setTimeout(function(){const E=v.target.closest("form"),S=e.data.choices.indexOf("?")<0?"?":"&";s(!0),R("GET",Q(e.data.choices+S+"term="+v.target.value,E),function(b){c(b)})},1e3)}function k(v,E=!1){const S=document.getElementById(a),f=document.getElementById(r);S.innerHTML==null&&(S.innerHTML=""),Array.isArray(v)?S.innerHTML=v.map(b=>`<option selected value="${b.id}">${b.value}</option>`).join(""):v?i?(S.innerHTML+=`<option selected value="${v.id}">${v.value}</option>`,f.value=""):(S.innerHTML=`<option selected value="${v.id}">${v.value}</option>`,f.value=v.value):(S.innerHTML="",f.value=""),e.data.onchange&&!E&&ne(f,e.data.onchange)}function A(v){const E=document.getElementById(a);var S=Array.from(E.options);E.innerHTML=S.slice(0,v).concat(S.slice(v+1)).map(f=>`<option selected value="${f.value}">${f.innerHTML}</option>`).join(""),c([])}function D(){return t.jsxs(t.Fragment,{children:[h(),m(),w()]})}return D()}function Nt(e){function n(){var a={...te};return a.height=100,t.jsx("textarea",{id:e.data.name,name:e.data.name,"data-label":T(e.data.label),style:a,defaultValue:e.data.value||"",className:"form-control"})}return n()}function Dt(e){var n=e.data;return n.choices=[{id:!0,value:"Sim"},{id:!1,value:"Não"}],t.jsx(ue,{data:n})}function ue(e){const[n,a]=I.useState(e.data.choices);var r=Math.random(),i=e.data;function o(u){return i.value!=null?i.value==u.id?!0:i.value.id==u.id:!1}function s(u){var l=document.getElementById(u);i.checked&&(l.checked=!1),e.data.onchange&&ne(l,e.data.onchange)}function d(u){var l=document.getElementById(u);i.checked=l.checked}function c(){return window["reload-"+i.name+"-field"]=function(){R("GET",Q(e.data.pick,document.querySelector(".radio-group."+i.name).closest("form")),function(l){a(l)})},n.length>0?t.jsx("div",{className:"radio-group "+i.name,children:n.map((u,l)=>(u.id||u.id===!1)&&t.jsxs("div",{style:{paddingTop:10,display:"inline-block",marginRight:25,width:window.innerWidth>800?"auto":"100%"},children:[t.jsx("input",{id:i.name+r+l,type:"radio",name:i.name,defaultValue:u.id,defaultChecked:o(u),"data-label":T(u.value),onClick:function(){s(i.name+r+l)},onMouseEnter:function(){d(i.name+r+l)}}),t.jsx("label",{htmlFor:i.name+r+l,children:u.value})]},r+l))}):t.jsx("div",{className:"radio-group empty "+i.name,children:t.jsx(ae,{data:{text:"Nenhuma opção disponível para seleção."}})})}return c()}function je(e){const[n,a]=I.useState(e.data.choices);var r=Math.random(),i=e.data;function o(c){var u=!1;if(i.value)for(var l=0;l<i.value.length;l++){var h=i.value[l];(h==c.id||h.id==c.id)&&(u=!0)}return u}function s(c){e.data.onchange&&ne(c.target,e.data.onchange)}function d(){return window["reload-"+i.name+"-field"]=function(){R("GET",Q(e.data.pick,document.querySelector(".checkbox-group."+i.name).closest("form")),function(u){a(u)})},n.length>0?t.jsx("div",{className:"checkbox-group "+i.name,children:n.map((c,u)=>(c.id||c.id===!1)&&t.jsxs("div",{style:{paddingTop:10,display:"inline-block",marginRight:25,width:window.innerWidth>800?"auto":"100%"},children:[t.jsx("input",{id:i.name+r+u,type:"checkbox",name:i.name,onClick:s,defaultValue:c.id,defaultChecked:o(c),"data-label":T(c.value)}),t.jsx("label",{htmlFor:i.name+r+u,children:c.value})]},r+u))}):t.jsx("div",{className:"checkbox-group empty "+i.name,children:t.jsx(ae,{data:{text:"Nenhuma opção disponível para seleção."}})})}return d()}function Lt(e){var n=e.data;return t.jsx(t.Fragment,{children:t.jsx("select",{className:"form-control",id:n.name,name:n.name,"data-label":T(n.label),defaultValue:n.value,style:te,children:n.choices.map(a=>t.jsx("option",{value:a.id,children:a.value},Math.random()))})})}function qt(e){const n=Math.random(),a=e.data.value[0],r=a.fields?a.fields[0]:a.fieldsets[0].fields[0][0];function i(){return!e.data.required&&t.jsx("div",{id:"info-"+n,children:t.jsxs(ae,{data:{text:"Esta informação é opcional. Controle seu preenchimento com o botão ao lado."},children:[t.jsx(W,{primary:!0,icon:"pen-clip",onClick:()=>o(!0),id:"show-"+n,display:r.value?"none":"inline"}),t.jsx(W,{primary:!0,icon:"trash",onClick:()=>o(!1),id:"hide-"+n,display:r.value?"inline":"none"})]})})}function o(c){const u=document.querySelector("input[name="+r.name+"]"),l=document.getElementById("inline-form-"+n),h=document.getElementById("show-"+n),m=document.getElementById("hide-"+n);l.style.display=c?"block":"none",h.style.display=c?"none":"inline",m.style.display=c?"inline":"none",c?u.value===""?u.value=0:u.value=-parseInt(u.value):parseInt(u.value)==0?u.value="":u.value=-parseInt(u.value)}function s(){const c={display:r.value?"block":"none"};return e.data.required&&(c.display="block",r.value===""&&(r.value=0)),t.jsx("div",{className:"fieldset-inline-forms",style:c,id:"inline-form-"+n,children:e.data.value.map(function(u){return t.jsx(ge,{data:u},Math.random())})})}function d(){const c={margin:0};return t.jsxs("div",{className:"form-fieldset",children:[t.jsx("h2",{style:c,"data-label":T(e.data.label),children:e.data.label}),i(),s()]})}return d()}function At(e){var n=0;const a=Math.random();e.data.template==null&&(e.data.template=e.data.value.pop());function r(l,h){const m=n;return n+=1,t.jsxs("div",{style:{display:"block"},id:"form-"+m+"-"+a,children:[t.jsx(ge,{data:l}),t.jsxs("div",{style:{textAlign:"center",marginTop:10,marginBottom:10},children:[t.jsx(W,{primary:!0,icon:"plus",onClick:()=>o(),id:"extra-add-"+m+"-",display:h}),t.jsx(W,{primary:!0,icon:"trash",onClick:()=>s(m),display:"inline"})]})]},Math.random())}function i(){const l=d(),h=l.length>0?"none":"inline";document.getElementById("add-"+a).style.display=h;for(var m=0;m<n;m++){var w=document.getElementById("extra-add-"+m+"-");w.style.display="none"}if(l.length>0){var w=document.getElementById("extra-add-"+l[l.length-1]+"-");w.style.display="inline"}}function o(){i();var l=JSON.parse(JSON.stringify(e.data.template));l.fields?(l.fields.map(function(h){h.name=h.name.replace("__n__","__"+n+"__")}),l.fields[0].value=0):l.fieldsets.map(function(h){h.fields.map(function(m){m.map(function(w){w.name=w.name.replace("__n__","__"+n+"__")}),m[0].value=0})}),Y.createRoot(document.getElementById(a).appendChild(document.createElement("div"))).render(r(l,"inline")),setTimeout(i,100)}function s(l){const h=e.data.template,w=(h.fields?h.fields[0]:h.fieldsets[0].fields[0][0]).name.replace("__n__","__"+l+"__"),y=document.querySelector("input[name="+w+"]");parseInt(y.value)==0?y.value="":y.value=-parseInt(y.value),document.getElementById("form-"+l+"-"+a).style.display="none",i()}function d(){for(var l=[],h=0;h<n;h++)document.getElementById("form-"+h+"-"+a).style.display=="block"&&l.push(h);return l}function c(){return t.jsx("div",{id:"info-"+a,children:t.jsx(ae,{data:{text:'Clique no botão com o ícone de "+" para adicionar e com o ícone da "lixeira" para remover.'},children:t.jsx(W,{primary:!0,icon:"add",onClick:()=>o(),id:"add-"+a,display:e.data.value.length>0?"none":"inline"})})})}function u(){const l={margin:0};return t.jsxs("div",{className:"form-fieldset",children:[t.jsx("h2",{style:l,"data-label":T(e.data.label),children:e.data.label}),t.jsx("div",{children:!1}),t.jsxs("div",{id:a,className:"fieldset-inline-forms",children:[c(),e.data.value.map(function(h,m){return r(h,m==e.data.value.length-1?"inline":"none")})]})]})}return u()}function ge(e){I.useEffect(()=>{e.data.controls&&De(e.data.controls)},[]);function n(r){return r.type=="inline"?r.max==r.min==1?t.jsx(qt,{data:r},Math.random()):t.jsx(At,{data:r},Math.random()):t.jsx(ie,{data:r},Math.random())}function a(){return e.data.fields?t.jsx("div",{className:"form-fields",children:e.data.fields.map(r=>n(r))}):e.data.fieldsets.map(r=>t.jsx("div",{className:"form-fieldset",children:r.type=="inline"?n(r):t.jsxs(t.Fragment,{children:[t.jsx("h2",{"data-label":T(r.title),style:{margin:0},children:r.title}),r.fields.map(i=>t.jsx("div",{children:i.map(o=>t.jsx("div",{className:"form-group "+o.name,style:{verticalAlign:"bottom",width:100/i.length+"%",display:o.type=="hidden"?"none":"inline-block"},children:n(o)},Math.random()))},Math.random()))]})},Math.random()))}return a()}function Bt(e){const n=Math.random();I.useEffect(()=>{e.data.autosubmit&&setInterval(h,e.data.autosubmit*1e3)},[]);function a(){const m={margin:0,color:p.colors.primary};return t.jsx("h1",{style:m,children:e.data.title})}function r(){return e.data.info&&t.jsx(Mt,{data:{text:e.data.info}})}function i(){if(e.data.display)return t.jsxs(t.Fragment,{children:[e.data.display.map(m=>t.jsx(x,{data:m},Math.random())),t.jsx("div",{style:{marginTop:30}})]})}function o(){return t.jsx(ge,{data:e.data})}function s(){return t.jsxs("div",{style:{marginTop:20,textAlign:"right"},children:[t.jsx(W,{onClick:l,label:"Cancelar",default:!0,display:"inline"}),t.jsx(W,{onClick:h,label:e.data.submit_label,primary:!0,display:"inline",icon:e.data.submit_icon,spin:!0})]})}function d(){return t.jsx("div",{id:"output",style:{marginTop:30}})}function c(){if(e.data.image)return t.jsx("div",{style:{margin:"auto",width:"100%",textAlign:"center"},children:t.jsx("img",{src:e.data.image})})}function u(){return t.jsxs("form",{id:n,className:e.data.key,action:e.data.url,style:{margin:"auto",backgroundColor:"white"},method:e.data.method,children:[t.jsx("div",{children:!1}),t.jsxs("div",{style:{padding:5},children:[a(),c(),r(),i(),o(),s(),d()]})]})}function l(){K()}function h(m){m&&m.preventDefault();var w=e.data.url,y=document.getElementById(n),j=new FormData(y);if(y.method.toUpperCase()=="GET"){const q=w.indexOf("?")>=0?"&":"?";w=w+q+"form="+e.data.key+"&"+new URLSearchParams(j).toString(),j=null}e.data.autosubmit&&m==null&&(w+="&autosubmit=1"),R(y.method.toUpperCase(),w,function(k){if(y.querySelectorAll(".error").forEach(D=>D.style.display="none"),m&&m.target.dataset.spinning&&(m.target.querySelector("i.fa-spin").style.display="none",m.target.querySelector("i.fa-"+m.target.dataset.spinning).style.display="inline-block"),k.type=="response")if(k.store&&Ce(k.store),k.redirect&&k.redirect.length>2)k.message&&localStorage.setItem("message",k.message),document.location.href=X(k.redirect);else if(k.message&&U(k.message),k.task){let D=function(){R("GET","/api/job/progress/"+k.task+"/",function(S){S==null||S.progress==100?m.target.innerHTML=v:(m.target.innerHTML="Aguarde... ("+(S.progress||0)+"%)",setTimeout(D,5e3))})};const v=m.target.innerHTML;m.target.innerHTML="Aguarde... (0%)",D()}else k.redirect==".."&&(document.getElementsByTagName("dialog").length==0?history.back():K()),k.redirect=="."&&y.reset(),k.dispose&&(y.style.display="none"),rt();else if(k.type=="error"){var A=k.text;console.log(k),Object.keys(k.errors).map(function(D){if(D=="__all__")A=k.errors[D];else{const v=y.querySelector("#"+D+"_error");v==null?A=D+":"+k.errors[D]:(v.querySelector("span").innerHTML=k.errors[D],v.style.display="block")}}),U(A,!0)}else if(k.type!="redirect"){const D=document.querySelector("#output");D.innerHTML="",Y.createRoot(D.appendChild(document.createElement("div"))).render(t.jsx(x,{data:k}))}},j)}return u()}function Ot(e){F(`
|
|
131
131
|
.calendar table{
|
|
132
132
|
width: 100%;
|
|
133
133
|
border-spacing: 0px;
|
|
@@ -216,7 +216,7 @@ import{j as t,c as Y,r as I,R as Be}from"./react.min.js";const p={colors:{primar
|
|
|
216
216
|
font-weight: active ? bold : normal;
|
|
217
217
|
text-decoration: none;
|
|
218
218
|
}
|
|
219
|
-
`),e.data.id==null&&(e.data.id=Math.random());const[n,a]=I.useState(e.data);function r(){return n.attrname?t.jsx("h2",{"data-label":T(n.title),children:n.title}):t.jsxs("h1",{"data-label":T(n.title),children:[n.title," ",n.total>10&&"("+n.total+")"]})}function i(){return t.jsxs("div",{className:"title",children:[r(),t.jsx("i",{id:"loader-"+e.data.id,className:"fa-solid fa-circle-notch fa-spin fa-1x"})]})}function o(f){const b=document.getElementById("loader-"+e.data.id);b&&(b.style.display=f?"block":"none")}function s(){return n.subsets&&t.jsx("div",{className:"tabs",children:n.subsets.map(function(f,b){var E=n.subset===f.name||!n.subset&&b==0;return t.jsxs(P,{href:"#",style:{borderBottom:E?"solid 3px #2670e8":0,color:"#0c326f"},onClick:function(_){_.preventDefault(),d(f.name)},dataLabel:T(f.label),children:[f.label," ",t.jsx(_t,{total:f.count})]},Math.random())})})}function d(f){const b=document.getElementById("subset-"+e.data.id);b.value=f||"",D()}function c(f,b,E){const _=document.getElementById("form-"+e.data.id);_.querySelector("input[name="+n.calendar.field+"__day]").value=f||"",_.querySelector("input[name="+n.calendar.field+"__month]").value=b||"",_.querySelector("input[name="+n.calendar.field+"__year]").value=E||"",y(1)}function u(){if(n.calendar)return t.jsx(Ot,{data:n.calendar,onChange:c})}function l(f){const b={textAlign:"left",verticalAlign:"top",lineHeight:"1.2rem",color:p.colors.primary,padding:5};if(!(window.innerWidth<800))return t.jsxs("tr",{children:[f.map(function(E){return E.label!="ID"&&t.jsx("th",{style:b,className:"bold",children:E.label},Math.random())}),t.jsx("th",{style:b})]})}function h(f){const b={borderBottom:"solid 1px #DDD",padding:5},E={borderBottom:"solid 1px #DDD",lineHeight:"3rem",textAlign:"right"};return window.innerWidth<800?t.jsxs("tr",{children:[t.jsx("td",{style:b,children:f.title},Math.random()),t.jsx("td",{style:E,children:t.jsx("div",{style:{verticalAlign:"center"},children:t.jsx(C,{icon:"chevron-right",onClick:()=>He(f.actions),style:{cursor:"pointer",marginRight:20}})})})]},Math.random()):t.jsxs("tr",{children:[f.data.map(function(_){return _.label!="ID"&&t.jsx("td",{style:b,children:G(_.value)},Math.random())}),t.jsx("td",{style:E,children:t.jsx("div",{style:{verticalAlign:"center"},children:f.actions.map(function(_){return t.jsx(H,{data:_,default:!0},Math.random())})})})]},Math.random())}function m(){return n.data.length>0?(n.render==null&&window.innerWidth<800&&(n.renderer="rows"),n.renderer?n.renderer=="cards"?t.jsx(V,{width:300,alignItems:"start",children:n.data.map(function(f){return f.type=n.renderer,t.jsx(x,{data:f},Math.random())})}):t.jsx("div",{style:{marginBottom:15},children:n.data.map(function(f){return f.type=n.renderer,t.jsx(x,{data:f},Math.random())})}):w()):t.jsx(ae,{data:{text:"Nenhum registro encontrado."}})}function w(){const f={width:"100%",overflowX:"auto"},b={width:"100%",lineHeight:"2rem",borderSpacing:0};return t.jsx("div",{style:f,children:t.jsxs("table",{style:b,children:[t.jsx("thead",{children:l(n.data[0].data)}),t.jsx("tbody",{children:n.data.map(function(E){return h(E)})})]})})}function y(f){const E=document.getElementById("form-"+e.data.id).querySelector("input[name=page]");E&&(E.value=f),D(),k()}function j(){const f=document.getElementById("form-"+e.data.id);if(f){const b=f.querySelector("input[name=page]");b&&(b.value=n.pagination.page.current)}return t.jsx(Rt,{data:n.pagination,onChange:y,total:n.total})}function q(){return t.jsx("div",{align:"right",style:{marginTop:20,marginBottom:20},children:n.actions.map(function(f){return t.jsx(H,{data:f,primary:!0},Math.random())})})}function k(){const f=document.getElementById(e.data.id).getBoundingClientRect().top+window.scrollY;console.log(f),console.log(e.data.id),window.scrollTo({top:f,behavior:"smooth"})}function B(){const f={backgroundColor:"#f8f8f8",borderBottom:"solid 1px #DDD",marginBottom:10,padding:10},b=n.search.length>0,E=n.filters.length>0;if((n.bi||n.data.length>=0)&&(b||E)){const _={name:"q",mask:null,type:"text",label:"Palavras-chaves",value:n.q};return t.jsxs("div",{style:f,children:[t.jsxs(V,{width:250,children:[b&&t.jsx("div",{children:t.jsx(ie,{data:_})}),E&&n.filters.map(function(A){return A.type!="hidden"&&t.jsx("div",{children:t.jsx(ie,{data:A})},Math.random())}),t.jsx("div",{children:t.jsx(W,{onClick:D,label:"Filtrar",icon:"filter"})})]}),E&&n.filters.map(function(A){return A.type=="hidden"&&t.jsx("div",{children:t.jsx(ie,{data:A})},Math.random())})]})}}function D(){o(!0);var f;const b=new URLSearchParams(new FormData(document.getElementById("form-"+e.data.id))).toString();e.data.url.indexOf("?")>0?f=e.data.url+"&"+b:f=e.data.url+"?"+b,R("GET",f,function(E){a(E),o(!1)})}function v(){const f={color:p.colors.primary};return e.data.reloadable&&t.jsxs("div",{align:"center",children:[t.jsxs("i",{children:["Ultima atualização em ",new Date().toLocaleTimeString()]}),t.jsx("div",{children:t.jsx(P,{style:f,onClick:b=>{b.preventDefault(),D()},children:"Atualizar agora"})})]})}function M(){return n.bi?t.jsxs(t.Fragment,{children:[B(),n.bi.map(function(f){return t.jsx(V,{width:300,alignItems:"start",children:f.map(function(b){return t.jsx("div",{children:t.jsx(x,{data:b})},Math.random())})},Math.random())})]}):t.jsxs("div",{className:"content",children:[v(),q(),s(),B(),u(),m(),j()]})}function S(){window[e.data.id]=()=>D();const f={backgroundColor:"white",padding:20};return t.jsx("div",{className:"reloadable queryset",id:e.data.id,sytle:f,children:t.jsxs("form",{id:"form-"+e.data.id,children:[t.jsx("div",{children:!1}),t.jsx("input",{type:"hidden",name:"subset",id:"subset-"+e.data.id}),i(),M()]})})}return S()}function de(e){var n=Math.random();function a(){var r=document.getElementById(n);if(r){var i=echarts.init(r);i.setOption(e.option)}else setTimeout(a,1e3)}return setTimeout(a,1e3),t.jsx("div",{id:n,style:{width:"100%",height:300}})}function xe(e){var n=[["70%","78%"],["60%","68%"],["50%","58%"],["40%","48%"],["30%","48%"],["20%","28%"],["10%","18%"]];function a(){return e.headers?e.headers.slice(1).map(function(i,o){return{name:i,type:"pie",radius:n[o],emphasis:{label:{show:!0,formatter:function(s){return s.value.toLocaleString("pt-BR")},fontWeight:"bold"}},roseType:null,data:e.rows.map(function(s){return{name:s[0],value:s[o+1]}})}}):{name:null,type:"pie",radius:e.donut?["25%","65%"]:["0%","75%"],emphasis:{label:{show:!0,formatter:function(i){return i.value.toLocaleString("pt-BR")},fontWeight:"bold"}},roseType:e.area?"area":null,data:e.rows.map(function(i,o){return{name:i[0],value:i[1]}})}}function r(){var i={tooltip:{trigger:"item",formatter:function(o){return`${o.name}: <b>${o.data.value.toLocaleString("pt-BR")}</b> (${o.percent.toLocaleString("pt-BR")}%)`}},legend:{},label:{show:!0,formatter(o){return o.name+" ("+o.percent.toLocaleString("pt-BR")+"%)"}},series:a()};return t.jsx(de,{option:i})}return r()}function Wt(e){return t.jsx(xe,{donut:!0,headers:e.headers,rows:e.rows})}function zt(e){return t.jsx(xe,{area:!0,headers:e.headers,rows:e.rows})}function $(e){var n=e.invert||!1,a=e.type||"bar",r=e.stack,i={type:"value"},o={show:!0,feature:{mark:{show:!0},saveAsImage:{show:!0}}},s=e.area?{}:null;function d(){return e.headers?{type:"category",data:e.headers.slice(1)}:{type:"category",data:e.rows.map(function(l){return l[0]})}}function c(){return e.headers?e.rows.map(function(l){return{name:l[0],data:l.slice(1),type:a,stack:r,areaStyle:s}}):[{name:null,data:e.rows.map(function(l){return l[1]}),type:a,stack:r,areaStyle:s}]}function u(){var l={toolbox:o,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(h){return`${h[0].name}: <b>${h[0].value.toLocaleString("pt-BR")}</b>`}},legend:{},label:{show:!0,formatter:function(h){return h.value.toLocaleString("pt-BR")}},xAxis:n?i:d(),yAxis:n?d():i,series:c()};return t.jsx(de,{option:l})}return u()}function Ht(e){return t.jsx($,{headers:e.headers,rows:e.rows})}function Pt(e){return t.jsx($,{type:"line",headers:e.headers,rows:e.rows})}function Ut(e){return t.jsx($,{area:!0,type:"line",headers:e.headers,rows:e.rows})}function Gt(e){return t.jsx($,{stack:"1",headers:e.headers,rows:e.rows})}function Yt(e){return t.jsx($,{invert:!0,headers:e.headers,rows:e.rows})}function Vt(e){return t.jsx($,{invert:!0,stack:"1",headers:e.headers,rows:e.rows})}function Xt(e){function n(){return e.headers?[{type:"treemap",roam:"move",nodeClick:!0,data:e.headers.slice(1).map(function(r,i){return{name:r,type:"pie",children:e.rows.map(function(o){return{name:o[0],value:o[i+1]}})}})}]:[{type:"treemap",roam:"move",nodeClick:!1,data:e.rows.map(function(r){return{name:r[0],value:r[1]}})}]}function a(){var r={tooltip:{trigger:"item"},legend:{},label:{show:!0,formatter(i){return i.name+" ("+i.value.toLocaleString("pt-BR")+")"}},series:n()};return t.jsx(de,{option:r})}return a()}function $t(e){function n(){var a={series:[{type:"gauge",startAngle:0,endAngle:360,min:0,max:100,progress:{show:!0,width:38},pointer:null,axisTick:null,splitLine:{length:0},axisLine:{lineStyle:{width:38}},axisLabel:null,detail:{backgroundColor:"#fff",fontSize:"2.5rem",width:"60%",lineHeight:40,height:40,borderRadius:8,offsetCenter:[0,"0%"],valueAnimation:!0,formatter:function(r){return r.toFixed(0)+"%"}},data:[{value:e.value}]}]};return t.jsx(de,{option:a})}return n()}function ke(e){function n(){switch(e.type){case"pie":return t.jsx(xe,{headers:e.headers,rows:e.rows});case"polar":return t.jsx(zt,{headers:e.headers,rows:e.rows});case"donut":return t.jsx(Wt,{headers:e.headers,rows:e.rows});case"bar":return t.jsx(Ht,{headers:e.headers,rows:e.rows});case"stacked_bar":return t.jsx(Gt,{headers:e.headers,rows:e.rows});case"column":return t.jsx(Yt,{headers:e.headers,rows:e.rows});case"stacked_column":return t.jsx(Vt,{headers:e.headers,rows:e.rows});case"tree_map":return t.jsx(Xt,{headers:e.headers,rows:e.rows});case"line":return t.jsx(Pt,{headers:e.headers,rows:e.rows});case"area":return t.jsx(Ut,{headers:e.headers,rows:e.rows});case"progress":return t.jsx($t,{headers:e.headers,rows:e.rows});default:return t.jsx($,{headers:e.headers,rows:e.rows})}}function a(){return t.jsxs("div",{style:{width:"100%",margin:"auto"},children:[e.title&&t.jsx("h2",{className:"title",children:e.title}),n()]})}return a()}function Jt(e){F(`
|
|
219
|
+
`),e.data.id==null&&(e.data.id=Math.random());const[n,a]=I.useState(e.data);function r(){return n.attrname?t.jsx("h2",{"data-label":T(n.title),children:n.title}):t.jsxs("h1",{"data-label":T(n.title),children:[n.title," ",n.total>10&&"("+n.total+")"]})}function i(){return t.jsxs("div",{className:"title",children:[r(),t.jsx("i",{id:"loader-"+e.data.id,className:"fa-solid fa-circle-notch fa-spin fa-1x"})]})}function o(f){const b=document.getElementById("loader-"+e.data.id);b&&(b.style.display=f?"block":"none")}function s(){return n.subsets&&t.jsx("div",{className:"tabs",children:n.subsets.map(function(f,b){var M=n.subset===f.name||!n.subset&&b==0;return t.jsxs(P,{href:"#",style:{borderBottom:M?"solid 3px #2670e8":0,color:"#0c326f"},onClick:function(_){_.preventDefault(),d(f.name)},dataLabel:T(f.label),children:[f.label," ",t.jsx(_t,{total:f.count})]},Math.random())})})}function d(f){const b=document.getElementById("subset-"+e.data.id);b.value=f||"",D()}function c(f,b,M){const _=document.getElementById("form-"+e.data.id);_.querySelector("input[name="+n.calendar.field+"__day]").value=f||"",_.querySelector("input[name="+n.calendar.field+"__month]").value=b||"",_.querySelector("input[name="+n.calendar.field+"__year]").value=M||"",y(1)}function u(){if(n.calendar)return t.jsx(Ot,{data:n.calendar,onChange:c})}function l(f){const b={textAlign:"left",verticalAlign:"top",lineHeight:"1.2rem",color:p.colors.primary,padding:5};if(!(window.innerWidth<800))return t.jsxs("tr",{children:[f.map(function(M){return M.label!="ID"&&t.jsx("th",{style:b,className:"bold",children:M.label},Math.random())}),t.jsx("th",{style:b})]})}function h(f){const b={borderBottom:"solid 1px #DDD",padding:5},M={borderBottom:"solid 1px #DDD",lineHeight:"3rem",textAlign:"right"};return window.innerWidth<800?t.jsxs("tr",{children:[t.jsx("td",{style:b,children:f.title},Math.random()),t.jsx("td",{style:M,children:t.jsx("div",{style:{verticalAlign:"center"},children:t.jsx(C,{icon:"chevron-right",onClick:()=>He(f.actions),style:{cursor:"pointer",marginRight:20}})})})]},Math.random()):t.jsxs("tr",{children:[f.data.map(function(_){return _.label!="ID"&&t.jsx("td",{style:b,children:G(_.value)},Math.random())}),t.jsx("td",{style:M,children:t.jsx("div",{style:{verticalAlign:"center"},children:f.actions.map(function(_){return t.jsx(H,{data:_,default:!0},Math.random())})})})]},Math.random())}function m(){return n.data.length>0?(n.render==null&&window.innerWidth<800&&(n.renderer="rows"),n.renderer?n.renderer=="cards"?t.jsx(V,{width:300,alignItems:"start",children:n.data.map(function(f){return f.type=n.renderer,t.jsx(x,{data:f},Math.random())})}):t.jsx("div",{style:{marginBottom:15},children:n.data.map(function(f){return f.type=n.renderer,t.jsx(x,{data:f},Math.random())})}):w()):t.jsx(ae,{data:{text:"Nenhum registro encontrado."}})}function w(){const f={width:"100%",overflowX:"auto"},b={width:"100%",lineHeight:"2rem",borderSpacing:0};return t.jsx("div",{style:f,children:t.jsxs("table",{style:b,children:[t.jsx("thead",{children:l(n.data[0].data)}),t.jsx("tbody",{children:n.data.map(function(M){return h(M)})})]})})}function y(f){const M=document.getElementById("form-"+e.data.id).querySelector("input[name=page]");M&&(M.value=f),D(),k()}function j(){const f=document.getElementById("form-"+e.data.id);if(f){const b=f.querySelector("input[name=page]");b&&(b.value=n.pagination.page.current)}return t.jsx(Rt,{data:n.pagination,onChange:y,total:n.total})}function q(){return t.jsx("div",{align:"right",style:{marginTop:20,marginBottom:20},children:n.actions.map(function(f){return t.jsx(H,{data:f,primary:!0},Math.random())})})}function k(){const f=document.getElementById(e.data.id).getBoundingClientRect().top+window.scrollY;console.log(f),console.log(e.data.id),window.scrollTo({top:f,behavior:"smooth"})}function A(){const f={backgroundColor:"#f8f8f8",borderBottom:"solid 1px #DDD",marginBottom:10,padding:10},b=n.search.length>0,M=n.filters.length>0;if((n.bi||n.data.length>=0)&&(b||M)){const _={name:"q",mask:null,type:"text",label:"Palavras-chaves",value:n.q};return t.jsxs("div",{style:f,children:[t.jsxs(V,{width:250,children:[b&&t.jsx("div",{children:t.jsx(ie,{data:_})}),M&&n.filters.map(function(B){return B.type!="hidden"&&t.jsx("div",{children:t.jsx(ie,{data:B})},Math.random())}),t.jsx("div",{children:t.jsx(W,{onClick:D,label:"Filtrar",icon:"filter"})})]}),M&&n.filters.map(function(B){return B.type=="hidden"&&t.jsx("div",{children:t.jsx(ie,{data:B})},Math.random())})]})}}function D(){o(!0);var f;const b=new URLSearchParams(new FormData(document.getElementById("form-"+e.data.id))).toString();e.data.url.indexOf("?")>0?f=e.data.url+"&"+b:f=e.data.url+"?"+b,R("GET",f,function(M){a(M),o(!1)})}function v(){const f={color:p.colors.primary};return e.data.reloadable&&t.jsxs("div",{align:"center",children:[t.jsxs("i",{children:["Ultima atualização em ",new Date().toLocaleTimeString()]}),t.jsx("div",{children:t.jsx(P,{style:f,onClick:b=>{b.preventDefault(),D()},children:"Atualizar agora"})})]})}function E(){return n.bi?t.jsxs(t.Fragment,{children:[A(),n.bi.map(function(f){return t.jsx(V,{width:300,alignItems:"start",children:f.map(function(b){return t.jsx("div",{children:t.jsx(x,{data:b})},Math.random())})},Math.random())})]}):t.jsxs("div",{className:"content",children:[v(),q(),s(),A(),u(),m(),j()]})}function S(){window[e.data.id]=()=>D();const f={backgroundColor:"white",padding:20};return t.jsx("div",{className:"reloadable queryset",id:e.data.id,sytle:f,children:t.jsxs("form",{id:"form-"+e.data.id,children:[t.jsx("div",{children:!1}),t.jsx("input",{type:"hidden",name:"subset",id:"subset-"+e.data.id}),i(),E()]})})}return S()}function de(e){var n=Math.random();function a(){var r=document.getElementById(n);if(r){var i=echarts.init(r);i.setOption(e.option)}else setTimeout(a,1e3)}return setTimeout(a,1e3),t.jsx("div",{id:n,style:{width:"100%",height:300}})}function xe(e){var n=[["70%","78%"],["60%","68%"],["50%","58%"],["40%","48%"],["30%","48%"],["20%","28%"],["10%","18%"]];function a(){return e.headers?e.headers.slice(1).map(function(i,o){return{name:i,type:"pie",radius:n[o],emphasis:{label:{show:!0,formatter:function(s){return s.value.toLocaleString("pt-BR")},fontWeight:"bold"}},roseType:null,data:e.rows.map(function(s){return{name:s[0],value:s[o+1]}})}}):{name:null,type:"pie",radius:e.donut?["25%","65%"]:["0%","75%"],emphasis:{label:{show:!0,formatter:function(i){return i.value.toLocaleString("pt-BR")},fontWeight:"bold"}},roseType:e.area?"area":null,data:e.rows.map(function(i,o){return{name:i[0],value:i[1]}})}}function r(){var i={tooltip:{trigger:"item",formatter:function(o){return`${o.name}: <b>${o.data.value.toLocaleString("pt-BR")}</b> (${o.percent.toLocaleString("pt-BR")}%)`}},legend:{},label:{show:!0,formatter(o){return o.name+" ("+o.percent.toLocaleString("pt-BR")+"%)"}},series:a()};return t.jsx(de,{option:i})}return r()}function Wt(e){return t.jsx(xe,{donut:!0,headers:e.headers,rows:e.rows})}function zt(e){return t.jsx(xe,{area:!0,headers:e.headers,rows:e.rows})}function $(e){var n=e.invert||!1,a=e.type||"bar",r=e.stack,i={type:"value"},o={show:!0,feature:{mark:{show:!0},saveAsImage:{show:!0}}},s=e.area?{}:null;function d(){return e.headers?{type:"category",data:e.headers.slice(1)}:{type:"category",data:e.rows.map(function(l){return l[0]})}}function c(){return e.headers?e.rows.map(function(l){return{name:l[0],data:l.slice(1),type:a,stack:r,areaStyle:s}}):[{name:null,data:e.rows.map(function(l){return l[1]}),type:a,stack:r,areaStyle:s}]}function u(){var l={toolbox:o,tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(h){return`${h[0].name}: <b>${h[0].value.toLocaleString("pt-BR")}</b>`}},legend:{},label:{show:!0,formatter:function(h){return h.value.toLocaleString("pt-BR")}},xAxis:n?i:d(),yAxis:n?d():i,series:c()};return t.jsx(de,{option:l})}return u()}function Ht(e){return t.jsx($,{headers:e.headers,rows:e.rows})}function Pt(e){return t.jsx($,{type:"line",headers:e.headers,rows:e.rows})}function Ut(e){return t.jsx($,{area:!0,type:"line",headers:e.headers,rows:e.rows})}function Gt(e){return t.jsx($,{stack:"1",headers:e.headers,rows:e.rows})}function Yt(e){return t.jsx($,{invert:!0,headers:e.headers,rows:e.rows})}function Vt(e){return t.jsx($,{invert:!0,stack:"1",headers:e.headers,rows:e.rows})}function Xt(e){function n(){return e.headers?[{type:"treemap",roam:"move",nodeClick:!0,data:e.headers.slice(1).map(function(r,i){return{name:r,type:"pie",children:e.rows.map(function(o){return{name:o[0],value:o[i+1]}})}})}]:[{type:"treemap",roam:"move",nodeClick:!1,data:e.rows.map(function(r){return{name:r[0],value:r[1]}})}]}function a(){var r={tooltip:{trigger:"item"},legend:{},label:{show:!0,formatter(i){return i.name+" ("+i.value.toLocaleString("pt-BR")+")"}},series:n()};return t.jsx(de,{option:r})}return a()}function $t(e){function n(){var a={series:[{type:"gauge",startAngle:0,endAngle:360,min:0,max:100,progress:{show:!0,width:38},pointer:null,axisTick:null,splitLine:{length:0},axisLine:{lineStyle:{width:38}},axisLabel:null,detail:{backgroundColor:"#fff",fontSize:"2.5rem",width:"60%",lineHeight:40,height:40,borderRadius:8,offsetCenter:[0,"0%"],valueAnimation:!0,formatter:function(r){return r.toFixed(0)+"%"}},data:[{value:e.value}]}]};return t.jsx(de,{option:a})}return n()}function ke(e){function n(){switch(e.type){case"pie":return t.jsx(xe,{headers:e.headers,rows:e.rows});case"polar":return t.jsx(zt,{headers:e.headers,rows:e.rows});case"donut":return t.jsx(Wt,{headers:e.headers,rows:e.rows});case"bar":return t.jsx(Ht,{headers:e.headers,rows:e.rows});case"stacked_bar":return t.jsx(Gt,{headers:e.headers,rows:e.rows});case"column":return t.jsx(Yt,{headers:e.headers,rows:e.rows});case"stacked_column":return t.jsx(Vt,{headers:e.headers,rows:e.rows});case"tree_map":return t.jsx(Xt,{headers:e.headers,rows:e.rows});case"line":return t.jsx(Pt,{headers:e.headers,rows:e.rows});case"area":return t.jsx(Ut,{headers:e.headers,rows:e.rows});case"progress":return t.jsx($t,{headers:e.headers,rows:e.rows});default:return t.jsx($,{headers:e.headers,rows:e.rows})}}function a(){return t.jsxs("div",{style:{width:"100%",margin:"auto"},children:[e.title&&t.jsx("h2",{className:"title",children:e.title}),n()]})}return a()}function Jt(e){F(`
|
|
220
220
|
.statistics .odd {
|
|
221
221
|
background-color: #EEE;
|
|
222
222
|
}
|
|
@@ -237,4 +237,4 @@ import{j as t,c as Y,r as I,R as Be}from"./react.min.js";const p={colors:{primar
|
|
|
237
237
|
height: 100%;
|
|
238
238
|
border: none;
|
|
239
239
|
}
|
|
240
|
-
`);function n(){const r=`/zoom/?token=${e.data.token}&username=${e.data.username}`;return t.jsx("div",{className:"container",children:t.jsx("iframe",{onLoad:a,className:"responsive-iframe",src:r})})}function a(r){r.target.contentWindow.location.href.indexOf("/zoom/")<0&&(r.target.parentNode.style.display="none")}return n()}function on(e){const n={color:e.data.color};function a(){return t.jsx("div",{style:n,children:e.data.text})}return a()}var oe,ye={};const ln="/api/application/",Se=localStorage.getItem("application");function x(e){if(e.data){const n=ye[e.data.type];return n?
|
|
240
|
+
`);function n(){const r=`/zoom/?token=${e.data.token}&username=${e.data.username}`;return t.jsx("div",{className:"container",children:t.jsx("iframe",{onLoad:a,className:"responsive-iframe",src:r})})}function a(r){r.target.contentWindow.location.href.indexOf("/zoom/")<0&&(r.target.parentNode.style.display="none")}return n()}function on(e){const n={color:e.data.color};function a(){return t.jsx("div",{style:n,children:e.data.text})}return a()}var oe,ye={};const ln="/api/application/",Se=localStorage.getItem("application");function x(e){if(e.data){const n=ye[e.data.type];return n?Ae.createElement(n,{data:e.data}):t.jsx("div",{children:JSON.stringify(e.data)})}}x.register=function(e,n){ye[n.toLowerCase()]=e};x.render=function(e){oe=e,document.location.pathname=="/"?localStorage.getItem("token")?window.reload("/app/dashboard/"):window.reload("/app/home/"):document.location.pathname=="/app/auth/login/"&&(localStorage.getItem("token")||localStorage.getItem("application"))?(localStorage.removeItem("token"),localStorage.removeItem("application"),document.location.reload()):window.reload(document.location.href)};x.register(bt,"Counter");x.register(Bt,"Form");x.register(Ft,"QuerySet");x.register(Qe,"Fieldset");x.register(ee,"Field");x.register(et,"Object");x.register(tt,"Section");x.register(at,"Group");x.register(Jt,"Statistics");x.register(lt,"Image");x.register(ot,"Banner");x.register(dt,"Map");x.register(st,"Steps");x.register(xt,"QrCode");x.register(Ie,"Badge");x.register(ut,"Status");x.register(ct,"Progress");x.register(Be,"Color");x.register(ht,"Boxes");x.register(yt,"Indicators");x.register(mt,"Shell");x.register(ft,"FileLink");x.register(gt,"FilePreview");x.register(We,"Response");x.register(nn,"Application");x.register(Oe,"IconSet");x.register(vt,"Grid");x.register(Xe,"Rows");x.register($e,"Cards");x.register(Je,"Timeline");x.register(Ne,"Scheduler");x.register(an,"WebConf");x.register(on,"Text");x.register(it,"Html");x.register(rn,"ZoomMeet");window.addEventListener("popstate",e=>{window.reload(e.currentTarget.location.href)});window.reload=function(e){e==null&&(e=document.location.href);const n=e.split("/app/")[1].split("/")[0];ye[n]?R("GET",z(e),function(a){oe.render(t.jsx(x,{data:{type:n,data:a}}))}):(e!=document.location.href&&window.history.pushState({url:e},"",e),Se?(window.application=JSON.parse(Se),R("GET",z(e),function(a){window.application.content=a,oe.render(t.jsx(x,{data:window.application},Math.random()))})):R("GET",ln,function(r){window.application=r,localStorage.setItem("application",JSON.stringify(window.application)),R("GET",z(e),function(i){window.application.content=i,oe.render(t.jsx(x,{data:window.application},Math.random()))})}))};window.load=function(e){e.indexOf(window.origin)>=0||e.startsWith("/")?R("GET",z(e),function(n){e!=document.location.href&&e!=document.location.pathname&&window.history.pushState({url:e},"",e),window.loaddata(n),window.scrollTo({top:0,behavior:"smooth"})}):document.location.href=e};x.render(Y.createRoot(document.getElementById("root")));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{slthcore-0.4.6 → slthcore-0.4.7}/slth/cmd/init/boilerplate/backend/api/endpoints/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0003_rename_photo_profile_alter_profile_options.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0008_alter_deletion_datetime_alter_log_datetime.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{slthcore-0.4.6 → slthcore-0.4.7}/slth/migrations/0012_timezone_remove_usertimezone_key_and_more.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|